main
yanglc 2023-08-30 00:20:12 +08:00
parent 300584bcaf
commit cffb54dbfe
1 changed files with 2 additions and 2 deletions

View File

@ -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私钥和公钥..."