Page 1 of 1

control up script

Posted: Tue Oct 25, 2011 12:12 pm
by blackandyellow
hello here is a sample log

e Oct 25 20:10:25 2011 Notified TAP-Win32 driver to set a DHCP IP/netmask of 9.9.0.6/255.255.255.252 on interface {E444161E-CD78-4AA1-8609-31D953996D89} [DHCP-serv: 9.9.0.5, lease-time: 31536000]
Tue Oct 25 20:10:25 2011 Successful ARP Flush on interface [24] {E444161E-CD78-4AA1-8609-31D953996D89}
Tue Oct 25 20:10:25 2011 settings.bat Local Area Connection 2 2000 2026 9.9.0.6 9.9.0.5 init

how can i make settings.bat the last script to be executed?? i want all the routes first to be done, then after it, settings.bat will run

PS: settings.bat has only certain commands like running another exe program(no routes) tnx

Re: control up script

Posted: Wed Oct 26, 2011 12:46 pm
by janjust
use a 'route-up' script instead of an 'up' script:

Code: Select all

route-up settings.bat

Re: control up script

Posted: Wed Oct 26, 2011 1:58 pm
by blackandyellow
hmm. still the same problem

after successful arp flush, the script runs, but i lose internet connectivity (my pings timeout), then it resumes after completing the script

Image

how can i make it have it push through initialization seqeunce completed, then right after initialization sequence completed, the script will run.

Re: control up script

Posted: Wed Oct 26, 2011 2:23 pm
by janjust
the 'tun-mtu' inconsistency needs to be fixed first - if this is not fixed the VPN itself will never work properly.

Re: control up script

Posted: Thu Oct 27, 2011 10:42 am
by blackandyellow
fixed the tun mtu problem, but still, the problem persists

Re: control up script

Posted: Thu Oct 27, 2011 10:51 am
by janjust
Under normal circumstances the 'route-up' script is launched only AFTER all routes have been added.
Add

Code: Select all

verb 5
to the client config, make sure the 'up' line is change to 'route-up' and then reconnect the client; post the sanitized log file here so we can see what is going on.