Re: Iptables at boot
On Sun 21/Jan/2018 20:53:43 +0100 Ben Caradoc-Davies wrote:
> On 21/01/18 16:05, Mark Fletcher wrote:
>> To get you started [addressing the OP], here is the service file I use:
>
> Mine is slightly different and has the commands inline:
>
>
> $ cat /etc/iptables/iptables.service
> [Unit]
> Description=iptables rules
> After=network.target
Shouldn't that be /network-pre.target/? I'm not familiar with systemd (I use
sysvinit) but I read "It's primary purpose is for usage with firewall services
that want to establish a firewall before any network interface is up" in:
https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
Best
Ale
Reply to: