Community discussions

MUM Europe 2020
 
timp
just joined
Topic Author
Posts: 3
Joined: Fri Dec 29, 2017 12:48 pm

Port forwarding from one router to another

Fri Dec 29, 2017 1:02 pm

Hello!
Here is my situatuon.
I have two RB951 routers in my local network.
Router1 has dynamic IP1 from ISP1 on ether1 and 192.168.88.1 (static) on bridge
Router2 has dynamic IP2 from ISP2 on ether1 and 192.168.88.2 (static DHCP from router1) on bridge
I'd like forward port 20022 from router1 to port 22 on router2 to have remote access to router2 from internet using ISP1 IP.

On router1 I added the following rule
/ip firewall nat add chain=dstnat in-interface=ether1 protocol=tcp dst-port=20022 action=dst-nat to-address=192.168.88.2 to-ports=22
But forwarding in working only if ISP2 link (on router2) is down.
Looks like router2 needs some extra routing rules? How to configure it correctly?
 
User avatar
matiaszon
Member
Member
Posts: 305
Joined: Mon Jul 09, 2012 9:26 am

Re: Port forwarding from one router to another

Fri Dec 29, 2017 2:35 pm

Did you try to add the rule on router 2?
/ip firewall filter add action=accept chain=input comment="ssh" connection-state=established,related,new dst-port=22 protocol=tcp
 
timp
just joined
Topic Author
Posts: 3
Joined: Fri Dec 29, 2017 12:48 pm

Re: Port forwarding from one router to another

Fri Dec 29, 2017 4:01 pm

Default rule for input is accept for now.
Anyway I've added separate rule as recommended and I see packets on this rule when I'm trying to use this port forward.
But still no connection...
Port forward works well only when router2 loses his ISP2 connection.
 
timp
just joined
Topic Author
Posts: 3
Joined: Fri Dec 29, 2017 12:48 pm

Re: Port forwarding from one router to another

Fri Dec 29, 2017 4:27 pm

Update - Found an answer here - viewtopic.php?t=72471

Who is online

Users browsing this forum: autopilot191, Google [Bot] and 62 guests