Page 1 of 1

How to use a Raspberry as Wireguard VPN gateway?

Posted: Sat Jun 27, 2020 9:19 pm
by javy97
Hello, I need to use Internet connection in a TV device and this have to be connected to a certain remote network. To achieve that, the remote network have a Wireguard server and I only need to connect it as a Wireguard client.

I completed the configuration as Wireguard client in my Raspberry Pi 3 Model B and I can navigate without problems using the Pi. But the idea is to transfer this 'client connection' to the other device. I have an Ethernet port USB adapter and I'm able to have 2 RJ45 ports in the Pi but I don't know how to get the connection in the adapter.

My Pi is connected to the main router using the built in Ethernet port and the other device will use the USB adapter. What do I need? Is it possible to create a bridge or due to the VPN connection (as a software into the Pi) do I need to find another solution?

Thanks!

Re: How to use a Raspberry as Wireguard VPN gateway?

Posted: Sun Jun 28, 2020 12:34 pm
by epoch1970
Wireguard does not support bridging. But you can route/masquerade.
If the certain remote network belongs to you, you can add an overlay network between the WG endpoints and that would give you a bridged network. There are some examples of wg+vxlan setups floating around the internet.