1 README for SgtPepperKSU VPN build of Tomato Firmware
\r
3 The sources are available in the git repository at http://repo.or.cz/w/tomato.git
4 If you plan to redistribute, be sure to read the COPYING file.
\r
6 To have your VPN start automatically when the router is rebooted, add "service vpnserver1 start" (no quotes, replacing server with
\r
7 client and 2 for 1 if appropriate) to your init script. You will probably also need to add a delay before it with "sleep 10" (you
\r
8 can test to see if a shorter or longer delay is needed).
\r
10 The have the router periodically check if the VPN is running and restart it if it has stopped, add the following to your init
\r
11 script (replacing server1 or */30 as appropriate):
\r
12 ## Start VPN init script
\r
15 killall -0 vpn\$1 2> /dev/null
\r
18 logger \"\$0: Starting vpn\$1\"
\r
19 service vpn\$1 start
\r
21 logger \"\$0: vpn\$1 already running: \$(pidof vpn\$1)\"
\r
24 # Make vpnup.sh executable
\r
25 chmod +x /tmp/vpnup.sh
\r
26 # Schedule vpnup.sh to run every 30 minutes
\r
27 cru a CheckVPNServer "*/30 * * * * /tmp/vpnup.sh server1"
\r
28 ## End VPN init script
30 Then add the following to your WAN Up script to start it up the first time:
31 ## Start VPN wan-up script
32 # Wait 10 seconds and run vpnup.sh once
\r
35 ## End VPN wan-up script
\r
38 If you have any questions/comments/concerns, contact me at tomatovpn@keithmoyer.com
\r