Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #191411
| From | Karol Augustin <karol@augustin.pl> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Iptables at boot |
| Date | 2018-01-22 17:00 +0100 |
| Message-ID | <vaMFQ-6IF-7@gated-at.bofh.it> (permalink) |
| References | <vaa7v-6Lo-5@gated-at.bofh.it> <vaciZ-8in-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2018-01-21 1:02, Dejan Jocic wrote: > On 20-01-18, Jacques Rodary wrote: >> Hi >> How can I start iptables at boot. I don't find an equivalent to " service >> iptables start" with systemd and does'nt know how to create a new >> iptables.service. The manpages aren't quite clear for me. Thanks for any >> help. >> Jacques >> > > There are two options. One would be to learn to write systemd service > units. There are many tutorials on net for how to write those with > examples. Other would be to install iptables-persistent package. You can > find more about using iptables-persistent package if you google it, you > will surly run on few quick howtos. If you don't want to learn systemd at this stage you can put your iptables lines in /etc/rc.local (before exit 0 line). It will be run during boot and add your iptables config. I know it's not elegant solution by any means but it works if you don't want to play with services at this stage. -- Karol Augustin karol@augustin.pl http://karolaugustin.pl/ +353 85 775 5312
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
Iptables at boot Jacques Rodary <rodaryj@free.fr> - 2018-01-20 23:50 +0100
Re: Iptables at boot Dejan Jocic <jodejka@gmail.com> - 2018-01-21 02:10 +0100
Re: Iptables at boot Mark Fletcher <mark27q1@gmail.com> - 2018-01-21 04:20 +0100
Re: Iptables at boot Dejan Jocic <jodejka@gmail.com> - 2018-01-21 10:10 +0100
Re: Iptables at boot Ben Caradoc-Davies <ben@transient.nz> - 2018-01-21 21:00 +0100
Re: Iptables at boot Alessandro Vesely <vesely@tana.it> - 2018-01-25 10:20 +0100
Re: Iptables at boot Karol Augustin <karol@augustin.pl> - 2018-01-22 17:00 +0100
csiph-web