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


Groups > linux.debian.user > #258218

Re: iptables and system reboot

From "Tom Reed" <tom@dkinbox.com>
Newsgroups linux.debian.user
Subject Re: iptables and system reboot
Date 2023-05-13 13:00 +0200
Message-ID <GuV8J-8Bg2-7@gated-at.bofh.it> (permalink)
References <GuUZ3-8BcE-15@gated-at.bofh.it> <GuV8J-8Bg2-3@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
>

for iptables-save, after system rebooting, does it know where to locate
the file?

Thanks.

Back to linux.debian.user | Previous | NextPrevious in thread | Next 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