I’ve just discovered mikrotik and routeros so i am very new to them. My friend highly recommended them. I’ve been a cisco + linux guy for a while now so routeros feels very nice to use.
I have a very obscure problem with my setup. I am trying to simply creat a nat rule for a host on my LAN for ssh but i am failing for some reason. Heres my details:
What i’m finding is that i have a dst-nat rule setup and if i ssh to my wan interface (from an external server) it hits the rule but then times out. Now the wierd thing is i move the rule one time to the first position and then it started to work. I thought great it was a preference thing. so i changed the dst address to another ssh host on my LAN and then it broke again… same symptoms, rule is being hit but it never establishes the connection.
my current NAT config is as follows:
0 ;;; Lan Masq
chain=srcnat action=masquerade src-address=10.1.1.0/24
out-interface=pppoe-out1
1 ;;; SSH to Deb
chain=dstnat action=dst-nat to-addresses=10.1.1.242 to-ports=22
protocol=tcp in-interface=pppoe-out1 port=22
and my firewall:
0 ;;; Added by webbox
chain=input action=accept protocol=icmp
1 ;;; Allow established connections
chain=input action=accept connection-state=established
in-interface=pppoe-out1
2 ;;; Added by webbox
chain=input action=accept connection-state=related
in-interface=pppoe-out1
3 chain=forward action=accept protocol=tcp in-interface=pppoe-out1
dst-port=22
4 ;;; Added by webbox
chain=input action=drop in-interface=pppoe-out1
Any ideas anyone ? I’m using a routerboard 750g 2.25 firmware and all my packages are 4.5 for what it’s worth.
I have a similar problem with an RB3011 (RouterOS 6.40.5).
I’ve several dst nat rules. All of them are doing fine except the rules to forward access to port 22.
When trying to connect from outside using port 22, a timeout occurs.
I’ve added a separate rule forwarding port 222 to 22 for testing purposes. Access to port 222 works fine.
The logs didn’t show any information. It seems, that the request will be handled by the router board before getting DST-NATed.