我有一台 OpenVPN 服务器和多个客户端。我的问题是,尽管我使用 server-bridge 指定了一个 DHCP 租约池,但我的客户端从该池获得租约,但最终(几分钟到几小时后)从 LAN 服务器端的 DHCP 服务器获得租约。为什么?
服务器配置:
port 1494
proto udp
dev tap0
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh.pem
tls-auth /etc/openvpn/keys/ta.key 0
mode server
tls-server
#server-bridge
server-bridge 192.168.1.128 255.255.255.0 192.168.1.80 192.168.1.90
ifconfig-pool-persist ipp.txt
client-to-client
keepalive 10 120
cipher AES-128-CBC
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
mute 20
user nobody
group nobody
auth SHA256
push "route 192.168.1.1"
客户端配置:
client
dev tap0
proto udp
remote home.chrisseto.com 7825
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
cipher AES-128-CBC
auth SHA256
key-direction 1
remote-cert-tls server
verb 3
mute 20
comp-lzo
(内联关键部分被剪切)