- create bridge vpn-bridge and tap device connected to this bridge vpn-server:
nmcli con add ifname vpn-bridge type bridge con-name vpn-bridge-server
nmcli con modify vpn-bridge-server bridge.stp no
nmcli con add type tun ifname vpn-server con-name vpn-server-slave mode tap master vpn-bridge
- add systemd service in such format:
openvpn-server.conf
; make sure you fix path for ovpn profile directory - create openvpn server file like
server.conf
- update isc dhcpd server configuration with sections in
dhcpd.conf
- create client configuration like in
client.ovpn
For making dhcpd client work for such kind of connection, required a bit special systemd service definition:
New service require openvpn-dhclient
to be started after OpenVPN Client which assigning proper address.
!!!! Be aware, this setup require VPN Interface and and VPN Profile to be exact same names !!!!