Answer the question
In order to leave comments, you need to log in
How to forward ssh through mikrotik?
Hey!
Scheme: Internet router mikrotik-server on centos
sshd on the server is running, a static ip is set in the interface config.
in iptables input, forward and output on accept
Forwarding in Mikrotik is written:
/ip firewall filter
add chain=forward dst-port=10010 protocol=tcp
/ip firewall nat
add action=dst-nat chain=dstnat dst-address=xxx.xxx .xxx.xxx dst-port=10010 protocol=tcp to-addresses=192.168.8.210 to-ports=22
Access from inside, not from outside. A similar rule for another (windows) machine works. What could be left out?)
(when trying to access from outside, packets go according to the nat rule, according to the firewall rule - no)
Answer the question
In order to leave comments, you need to log in
/ip firewall filter
add chain=forward dst-port=10010 protocol=tcp
error here. Before filter, packets arrive from dst-nat already, do dst-port=22
Built-in SSHd on Mikrotik itself? :)
/ip service disable ssh
or
/ip service edit ssh address 10.0.0.0/30
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question