目前我的 openvpn 服务器的 IP 地址是 10.8.0.1。我想将其更改为 10.9.0.1。我尝试在 server.conf 中更改以下几行
# Configure server mode and supply a VPN subnet
# for OpenVPN to draw client addresses from.
# The server will take 10.8.0.1 for itself,
# the rest will be made available to clients.
# Each client will be able to reach the server
# on 10.8.0.1. Comment this line out if you are
# ethernet bridging. See the man page for more info.
server 10.9.0.0 255.255.255.0
但当我重新启动 OpenVPN 时,它仍然获取地址 10.8.0.1。这是正确的做法吗?
答案1
你做得对。请确保稍后在配置文件中不会覆盖此地址。
您应该通过执行以下操作来重新启动 openVPN:
sudo /etc/init.d/openvpn restart
server.conf
仅可通过以下方式重新启动:
sudo /etc/init.d/openvpn restart server