Configure openvpn server to Layer2

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
yopol
OpenVpn Newbie
Posts: 1
Joined: Tue Nov 22, 2022 5:04 pm

Configure openvpn server to Layer2

Post by yopol » Tue Nov 22, 2022 5:13 pm

I have install openvpn server on raspberry-pi following that tutorial.
https://openvpn.net/vpn-server-resource ... pberry-pi/

I have access to server web page.
How can I configure the server to work as Layer2? (So the client can send broadcast?)

User avatar
ordex
OpenVPN Inc.
Posts: 444
Joined: Wed Dec 28, 2016 2:32 am
Location: IRC #openvpn-devel @ libera.chat

Re: Configure openvpn server to Layer2

Post by ordex » Tue Nov 29, 2022 9:57 pm

In order to switch to layer 2 you have to change the tunnel type. Please check the manpage for --dev-type. You want to set it to "tap".
This has to be done on both client and server.

Post Reply