Date: Fri, 29 Mar 2024 07:18:05 +0000 (UTC) Message-ID: <537008717.69.1711696685705@fa0ec5443aab> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_68_865464534.1711696685704" ------=_Part_68_865464534.1711696685704 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
ip-tables is a firewall implemented by def= ault in many Linux distributions. However, by default, ip-table rules= are not persistent - that is, rules will not survive reboots etc.
Below is one method for saving / restoring and making implemented ip-tab= le rules persistent on several popular distributions of Linux.
sudo ch= kconfig iptables on sudo service iptables save
Install iptables-persistent<=
/span>
and the netfilter-persistent
pac=
kages:
sudo ap= t-get install iptables-persistent sudo apt-get install netfilter-persistent
To save current iptable rules to these files, run the following:
sudo su iptables-save > /etc/iptables/rules.v4 ip6tables-save > /etc/iptables/rules.v6 exit
Any ip-table rules added to below files will be persistent (on reboots e= tc.):
/etc/ip= tables/rules.v4 /etc/iptables/rules.v6 # for ip6 rules
You can reload from these files with to ip-tables by:
sudo ip= tables-restore < /etc/iptables/rules.v4 sudo ip6tables-restore < /etc/iptables/rules.v6
The netfilter-persistent
package has the actual =
init.d service which reloads the last saved iptables configuration. S=
o, once saved (see above) start and enable the service by:
sudo sy= stemctl start netfilter-persistent sudo systemctl enable netfilter-persistent
There is no content with the specified labels