I have an ADSL modem in bridge mode between the RT-N66U and the internet, it has a mangement IP of 220.127.116.11. The RT-N66U has both the public IP and 18.104.22.168 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 22.214.171.124 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 126.96.36.199. I have the following in the nat-start script:
admin@(none):/tmp/home/root# cat /jffs/scripts/nat-start
/usr/sbin/iptables -I POSTROUTING -t nat -o $(nvram get wan0_ifname) -d 188.8.131.52/24 -j MASQUERADE
ntpclient -h au.pool.ntp.org -s
Should I have the NAT rule in a different script ?
Any ideas ?
Sent from my iPad using Tapatalk HD