mad_ady
Regular Contributor
Currently openvpn binds all interfaces when listening on a port:
I'd like to start the server and have it listen on a specific IP (ppp0). The purpose is I want to run openvpn on 443 on the external interface and pixelserv-tls on 443 on a internal interface. I know I can use the "listen 1.2.3.4" configuration option, but:
1. /etc/openvpn/* seems to be generated on the fly on server startup. Is there a startup script I can modify to do my own thing? (find the ip on ppp0 and write it in the config before server startup)
2. I think that the server isn't restarted when an interface/ip gets reconfigured. The socket API handles it transparently when bound to 0.0.0.0. I will probably need to do manual restarts on wan changes, right?
Thanks!
Code:
tcp 0 0 :::443 :::* LISTEN 967/vpnserver1
I'd like to start the server and have it listen on a specific IP (ppp0). The purpose is I want to run openvpn on 443 on the external interface and pixelserv-tls on 443 on a internal interface. I know I can use the "listen 1.2.3.4" configuration option, but:
1. /etc/openvpn/* seems to be generated on the fly on server startup. Is there a startup script I can modify to do my own thing? (find the ip on ppp0 and write it in the config before server startup)
2. I think that the server isn't restarted when an interface/ip gets reconfigured. The socket API handles it transparently when bound to 0.0.0.0. I will probably need to do manual restarts on wan changes, right?
Thanks!