I have an ADSL modem in bridge mode between the RT-N66U and the internet, it has a mangement IP of 1.1.1.1. The RT-N66U has both the public IP and 1.1.1.254 address on the WAN interface so I can get to the modems status page. I have a NAT rule set up on outbound connections to the 1.1.1.0 network. When the internet is down it is like I lose this NAT rule as I can no longer get to the ADSL modem. When internet comes back up I can again get to 1.1.1.1. I have the following in the nat-start script:
Should I have the NAT rule in a different script ?
Any ideas ?
Sent from my iPad using Tapatalk HD
admin@(none):/tmp/home/root# cat /jffs/scripts/nat-start
#!/bin/sh
/usr/sbin/iptables -I POSTROUTING -t nat -o $(nvram get wan0_ifname) -d 1.1.1.0/24 -j MASQUERADE
sleep 10
ntpclient -h au.pool.ntp.org -s
admin@(none):/tmp/home/root#
Should I have the NAT rule in a different script ?
Any ideas ?
Sent from my iPad using Tapatalk HD
Last edited: