Re: Error including file in nftables.conf

2022-10-04 Thread Dave Parker
On Tue, Oct 4, 2022 at 2:32 AM Anssi Saari wrote: > Dave Parker writes: > > > So, I copied /lib/systemd/system/nftables.service to > /etc/systemd/system/nftables.service, set > > ProtectHome=false, ran "systemctl daemon-reload", and now it works! > > Well, good, buy why not put configuration

Re: Error including file in nftables.conf

2022-10-04 Thread Andy Smith
Hello, On Mon, Oct 03, 2022 at 10:36:53PM -0400, Dave Parker wrote: > So, I copied /lib/systemd/system/nftables.service to > /etc/systemd/system/nftables.service, set ProtectHome=false, ran "systemctl > daemon-reload", and now it works! This overrides the entire file with your copy in /etc. That

Re: Error including file in nftables.conf

2022-10-04 Thread Anssi Saari
Dave Parker writes: > So, I copied /lib/systemd/system/nftables.service to > /etc/systemd/system/nftables.service, set > ProtectHome=false, ran "systemctl daemon-reload", and now it works! Well, good, buy why not put configuration data in /etc instead of /root where it belongs and keep the

Re: Error including file in nftables.conf

2022-10-03 Thread Dave Parker
On Mon, Oct 3, 2022 at 5:42 PM Andy Smith wrote: > Hello, > > On Mon, Oct 03, 2022 at 05:36:19PM -0400, Greg Wooledge wrote: > > On Mon, Oct 03, 2022 at 05:01:21PM -0400, Dave Parker wrote: > > > Oct 03 16:48:55 host systemd[1]: Starting nftables... > > > Oct 03 16:48:55 host nft[926]:

Re: Error including file in nftables.conf

2022-10-03 Thread Andy Smith
Hello, On Mon, Oct 03, 2022 at 05:36:19PM -0400, Greg Wooledge wrote: > On Mon, Oct 03, 2022 at 05:01:21PM -0400, Dave Parker wrote: > > Oct 03 16:48:55 host systemd[1]: Starting nftables... > > Oct 03 16:48:55 host nft[926]: /etc/nftables.conf:4:1-37: Error: File not > > found:

Re: Error including file in nftables.conf

2022-10-03 Thread Greg Wooledge
On Mon, Oct 03, 2022 at 05:01:21PM -0400, Dave Parker wrote: > Oct 03 16:48:55 host systemd[1]: Starting nftables... > Oct 03 16:48:55 host nft[926]: /etc/nftables.conf:4:1-37: Error: File not > found: /root/nftables/ruleset.txt Sounds like the service might be chrooted.

Error including file in nftables.conf

2022-10-03 Thread Dave Parker
Hi All! After using iptables for years, I'm using nftables on Debian 11 for the first time, and have encountered a weird issue which may just be due to my own lack of experience with this. FYI, I'm doing everything here as root. I have a valid ruleset stored in the file