Custom Firewall Rules Lost on Reboot
Posted: Mon Mar 02, 2020 11:39 pm
I tried following the instructions as outlined here:
http://wiki.pistar.uk/Adding_custom_fir ... to_Pi-Star
The following is the rule that I need to add:
iptables -A OUTPUT -p udp --dport 62036 -j ACCEPT
I looked under /root and the file 'ipv4.fw' does not exist. I looked at the 'pistar-firewall' script and it looks like it's supposed to check for the presence of that file and incorporate any rules, so I manually created the file and added that rule. Then I rebooted Pi-Star.
I ran 'sudo iptables -S | grep 62036' and I do not see any rules there.
I also tried running 'sudo pistar-firewall' after creating the ipv4.fw file, then ran 'sudo iptables -S | grep 62036' and I do see the rule is there, but if I reboot Pi-Star, the rule is gone.
What am I missing here?
http://wiki.pistar.uk/Adding_custom_fir ... to_Pi-Star
The following is the rule that I need to add:
iptables -A OUTPUT -p udp --dport 62036 -j ACCEPT
I looked under /root and the file 'ipv4.fw' does not exist. I looked at the 'pistar-firewall' script and it looks like it's supposed to check for the presence of that file and incorporate any rules, so I manually created the file and added that rule. Then I rebooted Pi-Star.
I ran 'sudo iptables -S | grep 62036' and I do not see any rules there.
I also tried running 'sudo pistar-firewall' after creating the ipv4.fw file, then ran 'sudo iptables -S | grep 62036' and I do see the rule is there, but if I reboot Pi-Star, the rule is gone.
What am I missing here?