Reply
New Member
Posts: 3
Registered: ‎10-19-2016
Accepted Solution

Open port for 2 WAN ( One for normal use and other one for backup ) (SOLVED)

[ Edited ]

Hello guys !

 

I have a question, It is possible to open the same port of the same IP for two WAN´s ? Because I have configurate the router with two WAN. So when the backup line starts working have the same ports opened and can get acces from outside.

 

It is possible ?

Thank very much

Captura de pantalla 2018-05-19 a las 9.16.39.png

Accepted Solutions
SuperUser
Posts: 8,478
Registered: ‎01-05-2012
Kudos: 2236
Solutions: 1130

Re: Open port for 2 WAN ( One for normal use and other one for backup )

With these commands

cli

Spoiler
configure
set service nat rule 10 type destination
set service nat rule 10 inbound-interface eth+
set service nat rule 10 destination port 8080
set service nat rule 10 protocol tcp
set service nat rule 10 inside-address address 192.168.1.10
commit

gui

Spoiler
gui_1.JPG

Incoming connections, on tcp 8080 port and on all ethernet interfaces, will be redirected to the ip address 192.168.1.10:8080 (based on your config, this applies only on eth0 and eth1, since eth2-3-4 belong to switch0, so, on these switchports the DNAT rule has no effect). You may need to allow incoming connections even in the WAN_IN ruleset, if exists.
Cheers,
jonatha

 

View solution in original post


All Replies
SuperUser
Posts: 8,478
Registered: ‎01-05-2012
Kudos: 2236
Solutions: 1130

Re: Open port for 2 WAN ( One for normal use and other one for backup )

With these commands

cli

Spoiler
configure
set service nat rule 10 type destination
set service nat rule 10 inbound-interface eth+
set service nat rule 10 destination port 8080
set service nat rule 10 protocol tcp
set service nat rule 10 inside-address address 192.168.1.10
commit

gui

Spoiler
gui_1.JPG

Incoming connections, on tcp 8080 port and on all ethernet interfaces, will be redirected to the ip address 192.168.1.10:8080 (based on your config, this applies only on eth0 and eth1, since eth2-3-4 belong to switch0, so, on these switchports the DNAT rule has no effect). You may need to allow incoming connections even in the WAN_IN ruleset, if exists.
Cheers,
jonatha

 

Highlighted
New Member
Posts: 3
Registered: ‎10-19-2016

Re: Open port for 2 WAN ( One for normal use and other one for backup )

Thanks very much ! It works perfectly
Reply