add ipv6
parent
300584bcaf
commit
cffb54dbfe
|
@ -37,9 +37,9 @@ install_wireguard() {
|
||||||
|
|
||||||
generate_keys() {
|
generate_keys() {
|
||||||
echo 1 > /proc/sys/net/ipv4/ip_forward
|
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.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
|
cd /etc/wireguard
|
||||||
# 生成WireGuard私钥和公钥
|
# 生成WireGuard私钥和公钥
|
||||||
echo "正在生成WireGuard私钥和公钥..."
|
echo "正在生成WireGuard私钥和公钥..."
|
||||||
|
|
Loading…
Reference in New Issue