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


Groups > linux.debian.user > #258217 > unrolled thread

iptables and system reboot

Started by"Tom Reed" <tom@dkinbox.com>
First post2023-05-13 12:50 +0200
Last post2023-05-13 13:00 +0200
Articles 5 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  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

#258217 — iptables and system reboot

From"Tom Reed" <tom@dkinbox.com>
Date2023-05-13 12:50 +0200
Subjectiptables and system reboot
Message-ID<GuUZ3-8BcE-15@gated-at.bofh.it>
Hello

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.

Thanks

[toc] | [next] | [standalone]


#258218

From"Tom Reed" <tom@dkinbox.com>
Date2023-05-13 13:00 +0200
Message-ID<GuV8J-8Bg2-7@gated-at.bofh.it>
In reply to#258217
>
> 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.

[toc] | [prev] | [next] | [standalone]


#258219

Fromjeremy ardley <jeremy@ardley.org>
Date2023-05-13 13:00 +0200
Message-ID<GuV8J-8Bg2-5@gated-at.bofh.it>
In reply to#258218
On 13/5/23 18:56, Tom Reed wrote:
> for iptables-save, after system rebooting, does it know where to locate
> the file?

Yes. That's all taken care of by the iptables-persistent package

Also I made a typo. correction;

sudo nano /etc/iptables/rules.v4

sudo nano /etc/iptables/rules.v6

-- 

Jeremy

[toc] | [prev] | [next] | [standalone]


#258222

From"Tom Reed" <tom@dkinbox.com>
Date2023-05-13 13:30 +0200
Message-ID<GuVBM-8BEN-3@gated-at.bofh.it>
In reply to#258219
>
> On 13/5/23 18:56, Tom Reed wrote:
>> for iptables-save, after system rebooting, does it know where to locate
>> the file?
>
> Yes. That's all taken care of by the iptables-persistent package
>
> Also I made a typo. correction;
>
> sudo nano /etc/iptables/rules.v4
>
> sudo nano /etc/iptables/rules.v6
>

That's all right. Thanks for helps.

tom.

[toc] | [prev] | [next] | [standalone]


#258220

FromJeremy Ardley <jeremy@ardley.org>
Date2023-05-13 13:00 +0200
Message-ID<GuV8J-8Bg2-3@gated-at.bofh.it>
In reply to#258217
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)

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web