Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
How to choose gateway for connections originating from the opnsense itself?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to choose gateway for connections originating from the opnsense itself? (Read 353 times)
steven90
Newbie
Posts: 5
Karma: 0
How to choose gateway for connections originating from the opnsense itself?
«
on:
August 31, 2024, 01:47:27 pm »
Pretty much the title, how can i specify a particular gateway that the opnsense should use for connections from itself (like upstream dns requests or vpn connections)?
An example would be a setup with two physical WAN connections / gateways and a wireguard tunnel configured on the opnsense itself. Where could i set the physical WAN / ISP connection that should be used to establish the tunnel to the vpn server?
I know that for lan networks you can just create a firewall rule and then specify the gateway, but i couldnt find an interface / place to set firewall rules for traffic originating from the opnsense itself. And setting the rule on the wan interface doesnt really help ether bc this rule would have to be applied before the traffic hits the physical wan interface.
Thanks for any suggestions
Logged
Bob.Dig
Sr. Member
Posts: 257
Karma: 13
Re: How to choose gateway for connections originating from the opnsense itself?
«
Reply #1 on:
August 31, 2024, 02:34:11 pm »
Quote from: steven90 on August 31, 2024, 01:47:27 pm
Thanks for any suggestions
You can't.
Logged
steven90
Newbie
Posts: 5
Karma: 0
Re: How to choose gateway for connections originating from the opnsense itself?
«
Reply #2 on:
August 31, 2024, 02:49:26 pm »
Thanks,
can you elaborate a little bit?, is there any particular reason for it or is it just not implemented?
I kinda have to get this working somehow even if it is not a clean solution :/
Shouldnt it be possible to edit the routing table to allways use a particular interface / gateway for connections to the vpn servers public ip?
«
Last Edit: August 31, 2024, 02:52:03 pm by steven90
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
How to choose gateway for connections originating from the opnsense itself?