diff --git a/bundles/pppd/files/ip-down b/bundles/pppd/files/ip-down index cb23a63..6bdf74c 100644 --- a/bundles/pppd/files/ip-down +++ b/bundles/pppd/files/ip-down @@ -1,5 +1,6 @@ #!/bin/bash rm /etc/iptables-rules.d/90-pppd +rm /etc/sysctl.d/90-pppd.conf /usr/local/sbin/iptables-enforce diff --git a/bundles/pppd/files/ip-up b/bundles/pppd/files/ip-up index faec9fe..98d3f1f 100644 --- a/bundles/pppd/files/ip-up +++ b/bundles/pppd/files/ip-up @@ -3,5 +3,6 @@ INTERFACE=$1 echo "iptables -t nat -A POSTROUTING -o $INTERFACE -j MASQUERADE" > /etc/iptables-rules.d/90-pppd +echo "net.ipv6.conf.$INTERFACE.accept_ra=2" > /etc/sysctl.d/90-pppd.conf /usr/local/sbin/iptables-enforce diff --git a/bundles/pppd/items.py b/bundles/pppd/items.py index ff8378d..03b79e6 100644 --- a/bundles/pppd/items.py +++ b/bundles/pppd/items.py @@ -32,6 +32,9 @@ directories = { } files = { + '/etc/iptables-rules.d/90-pppd': { + 'content_type': 'any', + }, '/etc/ppp/chap-secrets': { 'source': 'secrets', 'content_type': 'mako',