bundles/pppd: accept RA on ppp interface

This commit is contained in:
Franzi 2020-11-13 23:56:59 +01:00
parent 06f6e454e3
commit 00ba7e49d6
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -32,6 +32,9 @@ directories = {
}
files = {
'/etc/iptables-rules.d/90-pppd': {
'content_type': 'any',
},
'/etc/ppp/chap-secrets': {
'source': 'secrets',
'content_type': 'mako',