diff --git a/bundles/pppd/files/ip-down b/bundles/pppd/files/ip-down index 7cdcd09..a7198f0 100644 --- a/bundles/pppd/files/ip-down +++ b/bundles/pppd/files/ip-down @@ -3,4 +3,9 @@ rm /etc/nftables-rules.d/90-pppd rm /etc/sysctl.d/90-pppd.conf -systemctl reload nftables +if systemctl is-active nftables; +then + systemctl reload nftables +else + systemctl restart nftables +fi diff --git a/bundles/pppd/files/ip-up b/bundles/pppd/files/ip-up index fa00fe6..6d04d47 100644 --- a/bundles/pppd/files/ip-up +++ b/bundles/pppd/files/ip-up @@ -5,6 +5,11 @@ INTERFACE=$1 echo "add rule nat postrouting oif $INTERFACE masquerade" > /etc/nftables-rules.d/90-pppd echo "net.ipv6.conf.$INTERFACE.accept_ra=2" > /etc/sysctl.d/90-pppd.conf -systemctl reload nftables +if systemctl is-active nftables; +then + systemctl reload nftables +else + systemctl restart nftables +fi rdisc6 $INTERFACE