iptables:save_iptable_rules
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
iptables:save_iptable_rules [2016/10/07 11:06] – created peter | iptables:save_iptable_rules [2019/11/29 17:43] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== IPTables - Save IPTable rules ====== | ||
- | |||
- | The generic method of saving iptables rules is to use the command **iptables-save**, | ||
- | |||
- | <code bash> | ||
- | iptables-save > / | ||
- | </ | ||
- | |||
- | |||
- | |||
- | ===== Restore the iptables rules ===== | ||
- | |||
- | The output created by **iptables-save** can then by read on stdin by **iptables-restore**. | ||
- | |||
- | If on a server, without NetworkManager, | ||
- | |||
- | <file / | ||
- | iface eth0 inet static | ||
- | .... | ||
- | pre-up iptables-restore < / | ||
- | </ | ||
- | |||
- | |||
- | **NOTE**: | ||
iptables/save_iptable_rules.1475838406.txt.gz · Last modified: 2020/07/15 09:30 (external edit)