In my /var/ipfire/ovpn/scripts/server.conf.local I had
[root@cf-fw ~]# cat /var/ipfire/ovpn/scripts/server.conf.local #+ #local added by mike #this is /var/ipfire/ovpn/scripts/server.conf.local #- #log /var/log/openvpn.log script-security 2 client-connect /root/client-connect.py client-disconnect /root/client-disconnect.sh
My client-connect and client-disconnect are being ignored and for the IPFire delivered ones.
How do I run my script?
I need to push a route out for a website that is hosted on AWS and the ip address changes.
My script does some stuff that could be removed but I need
www_hosts = socket.gethostbyname_ex(www)
routes.write(‘push “route %s 255.255.255.255”\n’ %www_hosts[i])
I could change the client end but would rather not.
Be good if the IPFire script could call a local script as well.