[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] Accessing variables in --up script on windows


  • Subject: [Openvpn-users] Accessing variables in --up script on windows
  • From: "Roland Pope" <rpope@xxxxxxxxxxxxx>
  • Date: Thu, 3 Nov 2005 16:28:56 +1300

Hi all,

Can anyone show me what I need to do in a windows batch file to get at the remote ip address after a tunnel comes up (I need to add a whole pile of routes on the client and I am out of space in the push buffer).
I have setup an --up script, but it appears that no parameters are passed to the <config>_up.bat file when it is executed? Is this expected? According to the openvpn MAN page, there should be parameters as well as environment variables being set (or is this just for Linux).
I have tried using %ifconfig_remote_ip% but it appears that environment variables are not being set either??


Thanks
Roland



____________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users