Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nftables with systemd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
foo_lish
n00b
n00b


Joined: 20 Apr 2015
Posts: 2

PostPosted: Mon Apr 20, 2015 1:21 am    Post subject: nftables with systemd Reply with quote

It seems that only sysvinit service come with package: net-firewall/nftables.
One may need to create /usr/lib/systemd/system/nftables.service that contain

Code:
[Unit]
Description=Netfilter Tables
Documentation=man:nft(8)
Wants=network-pre.target
Before=network-pre.target

[Service]
Type=oneshot
ExecStart=/sbin/nft -f /etc/nftables.rules
ExecStop=/sbin/nft flush ruleset
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target


I wonder if the systemd service will be included in the future?

Best Regards
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9678
Location: almost Mile High in the USA

PostPosted: Mon Apr 20, 2015 6:31 am    Post subject: Reply with quote

You could try filing an enhancement bug against bugs.gentoo.org or ask upstream to include it ...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum