From 00ba7e49d63673fabef1855a1a432f19ac4916ff Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Fri, 13 Nov 2020 23:56:59 +0100 Subject: [PATCH] bundles/pppd: accept RA on ppp interface --- bundles/pppd/files/ip-down | 1 + bundles/pppd/files/ip-up | 1 + bundles/pppd/items.py | 3 +++ 3 files changed, 5 insertions(+) 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',