notiz:iptables-save
iptables speichern
Regeln speichern:
iptables-save > /etc/iptables/rules.v4 ip6tables-save > /etc/iptables/rules.v6
Regeln laden:
iptables-restore < /etc/iptables/rules.v4 ip6tables-restore < /etc/iptables/rules.v6
Regeln bei Neustart automatisch einspielen:
- /etc/network/if-pre-up.d/iptables
#!/bin/bash iptables-restore < /etc/iptables/rules.v4 ip6tables-restore < /etc/iptables/rules.v6
notiz/iptables-save.txt · Zuletzt geändert: 2020/02/21 20:05 von clerie