What's new

nat-start NAT rule dropping off

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

ilium007

Regular Contributor
Hi - I have a bridged modem in front of an Asus RT-N16U running 3.0.0.4.374.33. I have a nat-start script in /jffs/scripts that has the one line:

Code:
iptables -t nat -I POSTROUTING -o `nvram get wan0_ifname` -j MASQUERADE

I also have a wan-start script:

Code:
ifconfig `nvram get wan0_ifname`:0 10.0.0.111 netmask 255.255.255.0

Now.... the WAN interface always seems to have its 10.0.0.111 address no worries. It is the NAT that seems to drop off. I find that sometimes I can't connect to the bridged modem on 10.0.0.138 but if I SSH onto the RT-N16U and run :

Code:
/jffs/scripts/nat-start

it all starts working again. Any ideas ?
 
Last edited:

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top