OPNsense Forum

English Forums => Virtual private networks => Topic started by: gigabyte on January 04, 2023, 05:40:35 AM

Title: Wireguard with selective routing
Post by: gigabyte on January 04, 2023, 05:40:35 AM
Are there any newer guides to setting up Wireguard on OPNsense?

I have Mullvad VPN. I successfully set it up in OPNsense. The guide on the website was wrong. It was almost no help. https://docs.opnsense.org/manual/how-tos/wireguard-client-mullvad.html

I need to get Mullvad VPN working with selective routing as I have devices I don't want to go through the VPN because they connect to providers that block VPN's (i.e. Disney+).

There is a guide here: https://docs.opnsense.org/manual/how-tos/wireguard-selective-routing.html

I tried and I can't get it working following that guide.  I tried searching the net for a decent guide I could follow to get it working and I'm didn't see any out there.
Title: Re: Wireguard with selective routing
Post by: dumbo on January 04, 2023, 08:19:25 AM
Hi,

yes. Documentation is not always as good as it should be. You can check pfSense documentation for some things as it's much better in documentation (but you have to adapt it to OPNsense).

But what I found concerning your point is:
https://gist.github.com/morningreis/eeda36e8bb07dcb750d77e9a744776e8

Maybe it does help.
Title: Re: Wireguard with selective routing
Post by: gigabyte on January 05, 2023, 10:52:58 PM
That guide was essentially the same as the one I leaked. I must being doing something wrong. It doesn't send any traffic over the VPN. Since no traffic is going through the VPN in the last step when I add the floating rule I then have no internet connection.