Sporadic OpenVPN node IP address changes
Posted: Fri Nov 18, 2022 1:09 pm
I've been having these very sporadic episodes of random IP changes with my OpenVPN nodes. It rarely happens, but when it does, it affects the monitoring tools that are pointing to those IPs. This issue usually affects 1 or 2 nodes out of 42.
I don't have any static IP set up or anything special on my config, when a node first joins, a random IP is assigned but these are very persistent so I have no idea what's going on here.
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-to-client
keepalive 10 120
compress lz4-v2
push "compress lz4-v2"
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 3
client
dev tun1
proto udp
remote foobarbaz.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca keys/ca.crt
cert keys/node.crt
key keys/node.key
ns-cert-type server
compress lz4-v2
verb 3
I don't have any static IP set up or anything special on my config, when a node first joins, a random IP is assigned but these are very persistent so I have no idea what's going on here.
Server Config
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-to-client
keepalive 10 120
compress lz4-v2
push "compress lz4-v2"
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 3
Node Config
client
dev tun1
proto udp
remote foobarbaz.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca keys/ca.crt
cert keys/node.crt
key keys/node.key
ns-cert-type server
compress lz4-v2
verb 3