add ipv6
This commit is contained in:
+2
-2
@@ -37,9 +37,9 @@ install_wireguard() {
|
||||
|
||||
generate_keys() {
|
||||
echo 1 > /proc/sys/net/ipv4/ip_forward
|
||||
#echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
|
||||
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
|
||||
echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf
|
||||
#echo "net.ipv6.conf.all.forwarding=1" >> /etc/sysctl.conf
|
||||
echo "net.ipv6.conf.all.forwarding=1" >> /etc/sysctl.conf
|
||||
cd /etc/wireguard
|
||||
# 生成WireGuard私钥和公钥
|
||||
echo "正在生成WireGuard私钥和公钥..."
|
||||
|
||||
Reference in New Issue
Block a user