Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #258217 > unrolled thread
| Started by | "Tom Reed" <tom@dkinbox.com> |
|---|---|
| First post | 2023-05-13 12:50 +0200 |
| Last post | 2023-05-13 13:00 +0200 |
| Articles | 5 — 3 participants |
Back to article view | Back to linux.debian.user
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
| From | "Tom Reed" <tom@dkinbox.com> |
|---|---|
| Date | 2023-05-13 12:50 +0200 |
| Subject | iptables 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]
| From | "Tom Reed" <tom@dkinbox.com> |
|---|---|
| Date | 2023-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]
| From | jeremy ardley <jeremy@ardley.org> |
|---|---|
| Date | 2023-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]
| From | "Tom Reed" <tom@dkinbox.com> |
|---|---|
| Date | 2023-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]
| From | Jeremy Ardley <jeremy@ardley.org> |
|---|---|
| Date | 2023-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