adamwalach / openvpn-web-ui

Web interface (with golang backend) for monitoring and administration of OpenVPN server
MIT License
673 stars 274 forks source link

Server Bridging #36

Open DeBaschdi opened 2 years ago

DeBaschdi commented 2 years ago

Hi, nice work, do u plan an Option to use TAP instead TUN for a Server Bridged Layer 2 VPN ?

bnhf commented 2 years ago

So I've done some work on this, and have openvpn-web-ui functioning with an external (non-Docker) OpenVPN TAP Server. I used the PiVPN script (not on Raspberry Pi though), modified as described in this post:

https://technologydragonslayer.com/2022/01/16/installing-an-openvpn-tap-server-on-a-raspberry-pi-using-pivpn/

Be aware that the name of your physical ethernet port, used in the openvpn-bridge file, is probably not eth0.

In my case I'm using Debian 11, and I believe the script also works with Ubuntu. Here's my fork:

https://github.com/bnhf/openvpn-tap-external-web-ui/

screenshot-brix-pc2_8080-2022 02 03-16_09_24

bnhf commented 2 years ago

Since my repo is significantly different now than this master, I decide to move it to a dedicated repository. I've left my fork in place for now -- but if you're interested in OpenVPN TAP (bridged) setups in particular, have a look. It uses a host based PiVPN installation (which works on Debian and Ubuntu as well). It's compatible with TUN setups too, and I plan on supporting combo TUN and TAP installs in the near future:

https://github.com/bnhf/pivpn-tap-web-ui