15 lines
317 B
Bash
15 lines
317 B
Bash
#!/bin/bash
|
|
|
|
INTERFACE=$1
|
|
|
|
echo "add rule nat postrouting oif $INTERFACE masquerade" > /etc/nftables-rules.d/90-pppd
|
|
echo "net.ipv6.conf.$INTERFACE.accept_ra=2" > /etc/sysctl.d/90-pppd.conf
|
|
|
|
if systemctl is-active nftables;
|
|
then
|
|
systemctl reload nftables
|
|
else
|
|
systemctl restart nftables
|
|
fi
|
|
|
|
rdisc6 $INTERFACE
|