View previous topic :: View next topic |
Author |
Message |
foo_lish n00b
Joined: 20 Apr 2015 Posts: 2
|
Posted: Mon Apr 20, 2015 1:21 am Post subject: nftables with systemd |
|
|
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 |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9678 Location: almost Mile High in the USA
|
Posted: Mon Apr 20, 2015 6:31 am Post subject: |
|
|
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 |
|
|
|