Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Help with Multi WAN and port based routing, please.
« previous
next »
Print
Pages: [
1
]
Author
Topic: Help with Multi WAN and port based routing, please. (Read 726 times)
TUCUadam
Newbie
Posts: 2
Karma: 0
Help with Multi WAN and port based routing, please.
«
on:
October 02, 2023, 09:39:35 pm »
Hello,
I've already searched and while a few people have had similar issues, the threads all seem to trail off without a fix. Hoping someone can help.
I have a fairly simple setup with 2 1G fiber lines into separate WAN interfaces and a 10G LAN interface. I am trying to configure the firewall to route all https traffic out of WAN-2 and all other traffic out of WAN-1.
Both WANs are set up as single gateways and no groups for failover or load balance.
Each WAN has an independent NAT rule
I've created a firewall rule on LAN-In to use the WAN-2 gateway for all DEST https
The first connection to an outside https dest will use the correct WAN-2 outbound interface
Subsequent connections from the same source to the same dest will use the incorrect WAN-1 outbound interface
To elaborate on the above, visiting whatismyip.com will show the correct IP address of WAN-2
Refreshing the page will update the IP address to show that of WAN-1
but SHIFT + Refresh (clearing cache) will show WAN-2 again.
Is this a NAT problem with an established session or a firewall rule problem? I feel like it has to be NAT due to the shift+refresh cache clear showing the correct IP, right? I'm just having a hard time grokking the logic flow to find the fault right now.
Logged
TUCUadam
Newbie
Posts: 2
Karma: 0
Re: Help with Multi WAN and port based routing, please.
«
Reply #1 on:
October 03, 2023, 05:31:58 pm »
Alright, found the gremlin after a few hours sleep: My firewall rule was TCP:443 instead of TCP/UDP:443 here I was thinking that all HTTPS connections to web servers would be TCP. Enabling UDP in the firewall LAN-In rule sorted everything.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Help with Multi WAN and port based routing, please.