I am running a script that will register and remove my machines to my internal DNS. It runs fine with the up command but when I try to run the down with down-pre I notice that the script isn't working due to the routes being deleted prior to the script being run.
Is there any way to automate a script to run prior to the deleting of routes?
Thanks
Garrett
Running a down script prior to route del
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 1
- Joined: Thu Dec 16, 2010 8:34 pm
- krzee
- Forum Team
- Posts: 728
- Joined: Fri Aug 29, 2008 5:42 pm
Re: Running a down script prior to route del
if the client registers over the vpn, could you make it so the server registers / and unregisters the client? this would be in --client-connect and --client-disconnect scripts
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: Running a down script prior to route del
I fully agree with krzee's posting but if you must run a script before the tun/tap device is closed, use
HTH,
JJK
Code: Select all
down ..../script
down-pre
JJK
-
- OpenVPN Power User
- Posts: 57
- Joined: Fri Apr 15, 2011 12:05 pm
Re: Running a down script prior to route del
Hi
got little bit confused
script-security 2
client_disconnect script took lot of time before executing or never executed at all
how to work this disconnect script upon user get disconnected from user?
got little bit confused
script-security 2
got those 2 on server but the problem wasclient_connect ..../script
client_disconnect .../script
client_disconnect script took lot of time before executing or never executed at all
how to work this disconnect script upon user get disconnected from user?