10 lines
236 B
Bash
10 lines
236 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
|
|
|
|
systemctl reload nftables
|
|
|
|
rdisc6 $INTERFACE
|