Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #258220

Re: iptables and system reboot

From Jeremy Ardley <jeremy@ardley.org>
Newsgroups linux.debian.user
Subject Re: iptables and system reboot
Date 2023-05-13 13:00 +0200
Message-ID <GuV8J-8Bg2-3@gated-at.bofh.it> (permalink)
References <GuUZ3-8BcE-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 13/5/23 18:48, Tom Reed wrote:
> How to recovery iptable rules after system rebooting?
> I know I can put a @reboot crontab for this but there is maybe the better
> way.


sudo apt install iptables-persistent

sudo iptables-save > /etc/iptables/rules.v4

sudo ip6tables-save > /etc/iptables/rules.v6

sudo nano /etc/rules.v4

sudo nano /etc/rules.v6

-- 
Jeremy
(Lists)

Back to linux.debian.user | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

iptables and system reboot "Tom Reed" <tom@dkinbox.com> - 2023-05-13 12:50 +0200
  Re: iptables and system reboot "Tom Reed" <tom@dkinbox.com> - 2023-05-13 13:00 +0200
    Re: iptables and system reboot jeremy ardley <jeremy@ardley.org> - 2023-05-13 13:00 +0200
      Re: iptables and system reboot "Tom Reed" <tom@dkinbox.com> - 2023-05-13 13:30 +0200
  Re: iptables and system reboot Jeremy Ardley <jeremy@ardley.org> - 2023-05-13 13:00 +0200

csiph-web