OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: jorgevisentini on February 10, 2017, 08:07:15 pm

Title: Port Redirection with 2 links
Post by: jorgevisentini on February 10, 2017, 08:07:15 pm
Hello everyone!

I'm having a problem doing port redirection.

I have 2 links, each with its gateway (WAN - GWWAN / WAN2 - GWWAN2).

For example, using WAN, when I make a target so that when a packet hits port 5555 of the WAN, it is routing to the IP 172.16.100.10 on port 22. That works fine there. I am using the Filter rule association = Add associated filter rule option.

When I create the same rule, but using WAN2, it does not work. Only works when Filter rule association = Passed

Note: The default gateway is GWWAN.

Below are the rules.

Code: [Select]
Firewall: NAT: Port Forward

If Proto Address Ports Address Ports IP Ports Description
WAN TCP * * This Firewall 5555 172.16.100.10 22 (SSH)
WAN2 TCP * * This Firewall 5555 172.16.100.10 22 (SSH)


Firewall: Rules

Tab WAN
Proto Source Port Destination Port Gateway Schedule Description
IPv4 TCP * * 172.16.100.10 22 (SSH) * NAT


Tab WAN2
Proto Source Port Destination Port Gateway Schedule Description
IPv4 TCP * * 172.16.100.10 22 (SSH) * NAT


Am I doing it wrong or having a problem?

Thank you all!