Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
15.7 Legacy Series
»
Howto bind outgoing traffic from opnsense (localhost) to specific WAN interface?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Howto bind outgoing traffic from opnsense (localhost) to specific WAN interface? (Read 21525 times)
pwretmo
Newbie
Posts: 3
Karma: 0
Howto bind outgoing traffic from opnsense (localhost) to specific WAN interface?
«
on:
January 24, 2016, 02:27:10 pm »
Hi,
I have a multi-WAN setup.
WAN with DHCP from my ISP
OpenVPN client
OpenVPN client 2
I've used outbound NAT rules and firewall rules to route outgoing traffic from subnets to the OpenVPN interfaces. This is working well.
However, I wish to setup dyndns to cloudns.net using the WAN IP. Cloudns.net is not one of the listed providers for setting up dyndns in opnsense, so I was planning to add it myself as a cron job or similar. Hence relying on that the correct WAN interface is used for outgoing traffic from the opnsense host itself. But localhost is using one of the VPN interfaces for outgoing traffic.
I have tried setting up similar firewall rules to make 127.0.0.1 use the WAN interface for outgoing traffic. I have tried putting this rule on all different interfaces, but outgoing traffic from localhost always go through one of the VPN interfaces.
How can I control which WAN interface opnsense (localhost) use for outgoing traffic?
Regards,
Peter
Logged
Alphabet Soup
Newbie
Posts: 47
Karma: 7
Re: Howto bind outgoing traffic from opnsense (localhost) to specific WAN interface?
«
Reply #1 on:
January 27, 2016, 02:28:42 pm »
I don't have much experience with OPNsense yet, but I do have a box doing multi-wan across two gateways (on OPT1 and OPT2) via Firewall rules. Works great for all clients passing through the box from LAN, but the box itself initially could not ntp sync or do package updates. Eventually surmised that box-generated traffic was directed to the Gateway that was marked as Default Gateway (WAN, disconnected in my case). Duh. I marked one of my OPT Gateways as Default and box-generated traffic has worked ever since.
Maybe your default gateway is not set, or set to the wrong gateway?
Logged
pwretmo
Newbie
Posts: 3
Karma: 0
Re: Howto bind outgoing traffic from opnsense (localhost) to specific WAN interface?
«
Reply #2 on:
January 27, 2016, 11:02:47 pm »
I thought of that as well, unfortunately it's not the case. My WAN gateway is set as the default gateway, but the box still use my second VPN gateway.
Logged
iosense
Newbie
Posts: 27
Karma: 1
Re: Howto bind outgoing traffic from opnsense (localhost) to specific WAN interface?
«
Reply #3 on:
January 29, 2016, 12:31:49 am »
I'm having the same problem, "LAN" port can not access the Internet via WAN.
I can not make any custom adjustment, WAN_DHCP is my default gateway and Device can access the Internet but clients can not!
Logged
franco
Administrator
Hero Member
Posts: 17653
Karma: 1610
Re: Howto bind outgoing traffic from opnsense (localhost) to specific WAN interface?
«
Reply #4 on:
January 29, 2016, 12:55:36 am »
https://redmine.pfsense.org/issues/5476
Logged
pwretmo
Newbie
Posts: 3
Karma: 0
Re: Howto bind outgoing traffic from opnsense (localhost) to specific WAN interface?
«
Reply #5 on:
March 10, 2016, 09:09:44 pm »
Late reply by me. Thanks for the link.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
15.7 Legacy Series
»
Howto bind outgoing traffic from opnsense (localhost) to specific WAN interface?