0
rated 0 times
[
0]
[
0]
/ answers: 1 / hits: 481
/ 1 Year ago, mon, february 6, 2023, 2:44:19
I installed iptables and iptables-persistent in order to save the rules and apply them after reboot, however whenever I try to restore or save I get this errors:
- with
sudo netfilter-persistent save
:usr/share/netfilter-persistent/plugins.d/15-ip4tables: 45: /usr/share/netfilter-persistent/plugins.d/15-ip4tables: /sbin/modprobe: not found
- with
sudo netfilter-persistent reload
after reboot: the rules were not saved so it does not block with my rule:sudo iptables -I INPUT -p icmp --icmp-type 8 -i eno1 -j DROP
- I've tried to save with
iptables-save > /etc/iptables/rules.v4 && ip6tables-save > /etc/iptables/rules.v6
but it doesn't seem to add the rule, and after reboot sudo iptables-restore < /etc/iptables/rules.v4
sends:Bad argument '[unsupported' Error occurred at line: 30
my Ubuntu version is 18, please help save rules after reboot
EDIT: my error on 2: /usr/share/netfilter-persistent/plugins.d/25-ip6tables: 45: /usr/share/netfilter-persistent/plugins.d/25-ip6tables: /sbin/modprobe: not found
More From » networking