bundles/pppd: accept RA on ppp interface
This commit is contained in:
parent
06f6e454e3
commit
00ba7e49d6
3 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -32,6 +32,9 @@ directories = {
|
|||
}
|
||||
|
||||
files = {
|
||||
'/etc/iptables-rules.d/90-pppd': {
|
||||
'content_type': 'any',
|
||||
},
|
||||
'/etc/ppp/chap-secrets': {
|
||||
'source': 'secrets',
|
||||
'content_type': 'mako',
|
||||
|
|
Loading…
Reference in a new issue