known good script not working on new router
Posted: Mon Jul 07, 2014 5:13 am
Hello,
Not sure if this is the correct forum to ask this but I thought it may be the best place. I'm currently using an Asus RT-N66u router with Shibby's tomato firmware which has openVPN integrated to the firmware. I replaced my old Asus-RT-N66u with a new N66u because it was having some issues, I think heat related. However, with my new N66u the script that has been working perfectly for months will not work. The script is as follows,
script-security 3 system
route-up "/tmp/mnt/4GB/scripts/route_tun11.sh"
and route_tun11.sh is as follows,
#!/bin/sh
gwtun11="$(/sbin/ifconfig tun11 | /usr/bin/awk '/P-t-P:/ { print $3 }' | /usr/bin/cut -d':' -f2)"
route del -net 192.168.10.0/24 gw $gwtun11 dev tun11
route add -net 192.168.20.0/24 gw $gwtun11 dev tun11
Basically, it deletes and adds routes after the tunnel is established, by using the tunnel gateway address, "gwtun11". For more info on how I got this script please visit http://www.linksysinfo.org/index.php?th ... t-p.69920/
This script has been working fine on my old N66u router with Shibby's version 116, which I think has openVPN 2.3.2. The new N66u has Shibby's version 120, which I think has openVPN 2.3.4
I have checked and double checked all settings, permissions, syntax but I'm not able to get the script running when the tunnel is established like before...
The VPN connection is made without any issues, it's just the script that doesn't run once the tunnel is up and running like before. Maybe the "route-up" command was changed? I tried to find out if there were some new commands but I couldn't find anything on openVPN forum and site.
Does anyone have an ideas as to why a this script will not run on the new N66u? Thank you in advance for your help.
Not sure if this is the correct forum to ask this but I thought it may be the best place. I'm currently using an Asus RT-N66u router with Shibby's tomato firmware which has openVPN integrated to the firmware. I replaced my old Asus-RT-N66u with a new N66u because it was having some issues, I think heat related. However, with my new N66u the script that has been working perfectly for months will not work. The script is as follows,
script-security 3 system
route-up "/tmp/mnt/4GB/scripts/route_tun11.sh"
and route_tun11.sh is as follows,
#!/bin/sh
gwtun11="$(/sbin/ifconfig tun11 | /usr/bin/awk '/P-t-P:/ { print $3 }' | /usr/bin/cut -d':' -f2)"
route del -net 192.168.10.0/24 gw $gwtun11 dev tun11
route add -net 192.168.20.0/24 gw $gwtun11 dev tun11
Basically, it deletes and adds routes after the tunnel is established, by using the tunnel gateway address, "gwtun11". For more info on how I got this script please visit http://www.linksysinfo.org/index.php?th ... t-p.69920/
This script has been working fine on my old N66u router with Shibby's version 116, which I think has openVPN 2.3.2. The new N66u has Shibby's version 120, which I think has openVPN 2.3.4
I have checked and double checked all settings, permissions, syntax but I'm not able to get the script running when the tunnel is established like before...
The VPN connection is made without any issues, it's just the script that doesn't run once the tunnel is up and running like before. Maybe the "route-up" command was changed? I tried to find out if there were some new commands but I couldn't find anything on openVPN forum and site.
Does anyone have an ideas as to why a this script will not run on the new N66u? Thank you in advance for your help.