2020-11-13 22:04:43 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
INTERFACE=$1
|
|
|
|
|
|
|
|
echo "iptables -t nat -A POSTROUTING -o $INTERFACE -j MASQUERADE" > /etc/iptables-rules.d/90-pppd
|
2020-11-13 22:56:59 +00:00
|
|
|
echo "net.ipv6.conf.$INTERFACE.accept_ra=2" > /etc/sysctl.d/90-pppd.conf
|
2020-11-13 22:04:43 +00:00
|
|
|
|
|
|
|
/usr/local/sbin/iptables-enforce
|
2020-11-14 11:11:51 +00:00
|
|
|
|
|
|
|
rdisc6 $INTERFACE
|