I have an ADSL modem in bridge mode between the RT-N66U and the internet, it has a mangement IP of 184.108.40.206. The RT-N66U has both the public IP and 220.127.116.11 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 18.104.22.168 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 22.214.171.124. 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 126.96.36.199/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