Monday, April 29, 2013

Script:HMA startup script for routers

If your modem/router has the option to allow the execution of a custom startup script, you can use the following below to get Hidemyass configured.

Just add the whole script block to your startup script (adjust your userid/password and remote-address). You might also need to adjust the routing script (hidemyass-up.sh) to match your own network configs.




Code:
 
cd /tmp

/usr/sbin/echo "client
dev tun
proto tcp
script-security 2 execve
ifconfig-noexec
up /tmp/hidemyass-up.sh
resolv-retry infinite
ping 5
ping-exit 30


No comments:

Post a Comment