/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
We use essential cookies to make this site work, and optional cookies to enhance your experience.