javy97
Posts: 1
Joined: Sat Jun 27, 2020 9:10 pm

How to use a Raspberry as Wireguard VPN gateway?

Sat Jun 27, 2020 9:19 pm

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!

epoch1970
Posts: 5022
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

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

Sun Jun 28, 2020 12:34 pm

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.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

Return to “Beginners”