[resolved] OpenVPN Bridge assign IP to tap0

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
cortex3
OpenVpn Newbie
Posts: 2
Joined: Thu Jan 27, 2022 2:17 pm

[resolved] OpenVPN Bridge assign IP to tap0

Post by cortex3 » Thu Jan 27, 2022 2:34 pm

Hi everyone,
I'm currently trying to setup my first openVPN server.
It works using tun but I need a tap VPN for my keepalived LB.

I used the following guide since I couldn't find much about this online:
https://wiki.archlinux.org/title/OpenVP ... stallation

Openvpn starts if I comment out
ifconfig-pool-persist /var/log/openvpn/ipp.txt
and append the full paths to the up and down script.

But afterwards my tap interface has an ipv6 IP (APIPA) How do I configure a different IP?

Code: Select all

eth0             UP             49.../32 2a01:...::1/64 fe80::...:2aa8/64
tap0             UNKNOWN       fe80...
br0             UP              49...   fe80...
Last edited by cortex3 on Thu Jan 27, 2022 5:38 pm, edited 1 time in total.

cortex3
OpenVpn Newbie
Posts: 2
Joined: Thu Jan 27, 2022 2:17 pm

Re: OpenVPN Bridge assign IP to tap0

Post by cortex3 » Thu Jan 27, 2022 5:37 pm

okay in case anyone comes across this:

adding
server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100

did not help but adding
mode server
tls-server
ifconfig 10.8.0.4 255.255.255.0
ifconfig-pool 10.8.0.128 10.8.0.254 255.255.255.0
push "route-gateway 10.8.0.4"

resolved the issue.

Post Reply