bundles/pppd: allow dynamic configuration of nftables rules
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-12-14 16:18:11 +01:00
parent 20bbb3eb8e
commit 2b06c77439
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 11 additions and 2 deletions

View file

@ -3,6 +3,9 @@
INTERFACE=$1
echo "add rule nat postrouting oif $INTERFACE masquerade" > /etc/nftables-rules.d/90-pppd
% for rule in sorted(nftables):
echo "add rule ${rule}" >> /etc/nftables-rules.d/90-pppd
% endfor
echo "net.ipv6.conf.$INTERFACE.accept_ra=2" > /etc/sysctl.d/90-pppd.conf
if systemctl is-active nftables;