secure-wireguard-implementation
secure-wireguard-implementation copied to clipboard
Double VPN is not working
I followed your Tutorials but it seems not working Here is what I have done. VPS1: Subnet: 10.26.26.0/24 Local Client IP: 10.26.26.2/24
VPS2: Subnet: 10.26.27.0/24 VPS1 WG1 Client IP: 10.26.27.2/24
FwMark = 51280 was added in both wg configs of VPS1.
After that I started following
VPS2 wg0 started
VPS1 wg0 started
VPS1-
echo "1 wg1" >> /etc/iproute2/rt_tables
ip route add 0.0.0.0/0 dev wg0 table wg1
ip rule add from 10.26.27.0/24 lookup wg1
finally
VPS1- wg-quick up wg1
and I lost SSH access and no internet access after connecting Local WG client of VPS1. Got this msg in SSH
[#] ip link add wg1 type wireguard
[#] wg setconf wg1 /dev/fd/63
[#] ip -4 address add 10.26.27.2/24 dev wg1
[#] ip link set mtu 1380 up dev wg1
[#] resolvconf -a tun.wg1 -m 0 -x
[#] ip -4 route add 0.0.0.0/0 dev wg1 table 51280
[#] ip -4 rule add not fwmark 51280 table 51280
Any idea?