bundlewrap/bundles/pppd/files/ip-up
Franziska Kunsmann 877744b0ba
All checks were successful
bundlewrap/pipeline/head This commit looks good
bundles/pppd: send out a Router Solicitation on ifup
2020-11-14 12:11:51 +01:00

10 lines
251 B
Bash

#!/bin/bash
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
rdisc6 $INTERFACE