wireguard_game_ubuntu.sh两处报错
Closed this issue · 1 comments
vps 1 buyvm 双网卡,eth0 和eth1,eth1默认未启用。
输入你客户端电脑的默认网关,打开cmd,使用ipconfig命令查看
比如192.168.1.1 :10.98.22.254
Warning: /etc/wireguard/wg0.conf' is world accessible [#] ip link add wg0 type wireguard [#] wg setconf wg0 /dev/fd/63 Line unrecognized:
eth1-jMASQUERADE'
Configuration parsing error
[#] ip link delete dev wg0
vps 2 cloudcone
输入你客户端电脑的默认网关,打开cmd,使用ipconfig命令查看
比如192.168.1.1 :10.98.22.254
Warning: `/etc/wireguard/wg0.conf' is world accessible
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip address add 10.0.0.1/24 dev wg0
[#] ip link set mtu 1420 up dev wg0
[#] resolvconf -a tun.wg0 -m 0 -x
Too few arguments.
Too few arguments.
[#] iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
同遇到双网卡问题,修复方法是把脚本中的 $eth
变量直接替换成 eth0
两行都要改
wireguard/wireguard_install_ubuntu.sh
Lines 45 to 46 in f2892a1