Voxel
Part of the Furniture
@Voxel
When I change a firewall setting in the GUI (example; respond to ping or NAT Type to Open/Close), it seems that my custom rules in /root/firewall-start.sh are not applied. The script is executable and I have to run it each time I change some setting.
Any idea how to make it start automatically?
Well. I have similar necessity. I have to block a lot of IPs from China, Netherlands, Korea, German, Ukraine and Russia (of course) who are trying to hack my R7800… Also time-to-time changes in my Parental Control rules (e.g. blocking youtube). I do use iptables rules for that. So I need these rules are applied immediately.
Unfortunately I cannot control the firewall made by NG forcing it to apply my iptabes rules immediately and automatically after changing my script. But what I do:
1. (optional) Hint for you: change your /root/firewall-start.sh to /opt/scripts/firewall-start.sh. The same script but other location. More natural and /opt is existing, used by ReadyCLOUD.
2. When you change this script just run the following commands from telnet/ssh console:
Code:
net-wall rule
net-wall start
Code:
iptables –L –n | more
Or for example
Code:
iptables –L –n –t nas | more
3. If you are using USB dongle it is possible to start these rules immediately and automatically after reboot, w/o necessity in manual startup.
Script in /mnt/sda1/autorun/scripts/post-mount.sh:
Code:
#!/bin/sh
# Start firewall rules after boot if optional script exists
if [ -x /opt/scripts/firewall-start.sh ] || [ -x /root/firewall-start.sh ]; then
/usr/sbin/net-wall rule
/usr/sbin/net-wall start
fi
Voxel.