OPNsense Forum

English Forums => Virtual private networks => Topic started by: FyreWall on December 02, 2024, 01:51:01 AM

Title: Which Wireguard guide to follow?
Post by: FyreWall on December 02, 2024, 01:51:01 AM
I am trying to set up OPNSense to route all traffic through a vpn via Wireguard.

I created a peer and an instance via this guide https://docs.opnsense.org/manual/how-tos/wireguard-client-proton.html
After enabling Wireguard in step 5 if I look in OPNSense at VPN>Wireguard>Status, I see the instance says up under Status but no handshake while the peer does not say up but shows a handshake.

Not sure what to do next as the guide says to setup Selective routing which Im not sure thats what I need if Im routing all traffic through the vpn.

Thanks for any advice

Title: Re: Which Wireguard guide to follow?
Post by: FyreWall on December 09, 2024, 10:07:56 PM
Maybe more info will help me get a reply.

I want to set up a router on a subnet and route all traffic for devices connected to it, via my Proton Wireguard vpn.
I can set up the instance and peer in Wireguard.
Not sure what to do after that.

Help or a guide would be appreciated.
Title: Re: Which Wireguard guide to follow?
Post by: cookiemonster on December 09, 2024, 11:18:23 PM
you need to continue from step 6 as it tells you how to configure the gateway to an external vpn provider.
Up to step 5 all you have is a peer to peer setup. You need next to configure the routing to it. That is from step 6.
Title: Re: Which Wireguard guide to follow?
Post by: FyreWall on December 10, 2024, 03:31:15 AM
Thanks for your reply.

By step 6, do you mean https://docs.opnsense.org/manual/how-tos/wireguard-selective-routing.html
It seems to repeat setting up the Instance and Peer again from the previous Road Warrior guide?






Title: Re: Which Wireguard guide to follow?
Post by: cookiemonster on December 10, 2024, 10:06:28 AM
But has creating an interface and gateway, then more, including routing, no ?
Title: Re: Which Wireguard guide to follow?
Post by: FyreWall on December 13, 2024, 06:25:16 PM
It does but why have a guide that  then links to another guide that repeats setting up the interface and peer?
Its a bit confusing.
I wanted to make sure I was reading it correctly before continuing.

If I want all traffic routed through the vpn, do I have to set up selective routing?

Thanks for your help