Using Debian. Unfortunately Fedora is quite different.
After more testing, it appears that these two lines are at fault:
[ "$IFACE" = "lo" ] || exit 0
[ "$IFACE" = "eth0" ] || exit 0
When I comment them out, the script then runs.
It doesn't make sense, as the script is run for each interface. When I shut down wlan0 and bring it back up, lo and eth0 are not being brought up. wlan0 should be the interface in $IFACE.
Also, when running it tries to set up reverse tunnels for IPP (port 631) but fails with 'no route to host'. Only subsequent tunnels show the normal setup, including MythTV, Squid, and MySQL. I guess this is because of the delay in association of the wlan interface with the router, although I put a wait 3 at the beginning of the tunnel script and it didn't help. So it's a mystery...
Last edited by Quantumstate; 01-19-2012 at 01:16 PM.