My config is computer to VPS, connection WiFi over WLAN (192.168.1.x
)
WireGuard config on server :
[Interface]
Address = 10.0.0.1/24
PrivateKey = key=+
ListenPort = 51120
#just iptables open ports..
PostUp = /etc/wireguard/up.sh
PostDown = /etc/wireguard/down.sh
[Peer]
PublicKey = key=+
AllowedIPs = 10.0.0.2/24
On the client:
[Interface]
Address = 10.0.0.2/24
PrivateKey = key=+
[Peer]
PublicKey = key=+
AllowedIPs = 0.0.0.0/0
Endpoint = 127.0.0.1:5666
PersistentKeepalive = 25
Case 1: just between Wireguard – work :
(Endpoint = vps-ip:51120 <–> Wireguard work great without udp2raw)
Case 2: just between udp2raw – connected:
On server
udp2raw -s -0.0.0.0:5111 -r 127.0.0.1:51120 -k "passpass" --raw-mode faketcp -a
On client:
udp2raw -c -l127.0.0.1:5666 -r vps-ip:5111 -k "passpass" --raw-mode faketcp -a
Case 3: all together with Endpoint = 127.0.0.1:5666 I lose connection
Endpoint = 127.0.0.1:5666 <–> wont work
WireGuard over udp2raw
won’t work, There is no handshake. Why does this happen and why doesn’t it work?