Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


help with wireguard over udp2raw
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

help with wireguard over udp2raw

nordinenordine Member
edited February 2022 in Help

hi, this my problem : wireguard over udp2raw won't work ,there is no handshake :(
my config
in 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

in 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:
in server
udp2raw -s -0.0.0.0:5111 -r 127.0.0.1:51120 -k "passpass" --raw-mode faketcp -a
in 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

at start ( wg-quick up wg0) I can see :
[#] ip link add wg0 type wireguard
[#] wg setconf wg0 /dev/fd/63
[#] ip -4 address add 10.0.0.2/24 dev wg0
[#] ip link set mtu 1420 up dev wg0
[#] wg set wg0 fwmark 51820
[#] ip -4 route add 0.0.0.0/0 dev wg0 table 51820
[#] ip -4 rule add not fwmark 51820 table 51820
[#] ip -4 rule add table main suppress_prefixlength 0
[#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
[#] iptables-restore -n
[#] ping -c1 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.

--- 10.0.0.1 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

[#] iptables-restore -n
[#] ip -4 rule delete table 51820
[#] ip -4 rule delete table main suppress_prefixlength 0
[#] ip link delete dev wg0

So I think there something with route table needed IN My COMPUTER , I'm not very good in routing,
thank you for your help...

Sign In or Register to comment.