/jffs/scripts/nat-start appears to not load on reboot. If I manually run nat-start from SSH it loads up and puts rules in iptables, but on next reboot everything is gone until I manually run nat-start again.
How do I get this to run on reboot?
#!/bin/sh
touch /tmp/000nat-start
iptables -I FORWARD 1 -s 204.15.20.0/22 -j DROP
iptables -I FORWARD 1 -s 69.63.176.0/20 -j DROP
iptables -I FORWARD 1 -s 66.220.144.0/20 -j DROP
iptables -I FORWARD 1 -s 66.220.144.0/21 -j DROP
touch /tmp/000nat-stop
#!/bin/sh
touch /tmp/000nat-start
iptables -I FORWARD -s 204.15.20.0/22 -j DROP
iptables -I FORWARD -s 69.63.176.0/20 -j DROP
iptables -I FORWARD -s 66.220.144.0/20 -j DROP
iptables -I FORWARD -s 66.220.144.0/21 -j DROP
touch /tmp/000nat-stop
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!