adamwalach / openvpn-web-ui

Web interface (with golang backend) for monitoring and administration of OpenVPN server
MIT License
673 stars 274 forks source link

Server is always 10.8.0.0 255.255.255.0 #13

Open sublee opened 6 years ago

sublee commented 6 years ago

Even though I config the server as 10.99.0.0 255.255.0.0, the generated server.conf always says the server is 10.8.0.0 255.255.255.0.

image

server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 10.8.0.0 255.255.255.0"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"

The reason is hardcoding in openvpn-server-config.tpl:

https://github.com/adamwalach/openvpn-web-ui/blob/ef374aa0330ffc2ed60856c856742abf6aed893d/conf/openvpn-server-config.tpl#L17