netset: add nftables set support
Build / Build (push) Has been cancelled

This commit is contained in:
nadoo committed 2026-07-15 23:41:21 +08:00
1 parent 6a7fc56a5e
commit 43552b60c9
17 files changed
+504 -126

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
[Unit]
Description=Glider Service (%i)
After=network.target iptables.service ip6tables.service
After=network.target iptables.service ip6tables.service nftables.service
[Service]
Type=simple
@@ -13,7 +13,7 @@ ExecStart=/usr/bin/glider -config /etc/glider/%i.conf
# NOTE:
# work with systemd v229 or later, so glider can listen on port below 1024 with none-root user
# CAP_NET_ADMIN: ipset, setsockopt: IP_TRANSPARENT
# CAP_NET_ADMIN: ipset, nftables set, setsockopt: IP_TRANSPARENT
# CAP_NET_BIND_SERVICE: bind ports under 1024
# CAP_NET_RAW: bind raw socket and broadcasting (used by dhcpd)
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW