Skip to content

Socket bind error, trying to use with wireguard #494

Closed Answered by o-alquimista
o-alquimista asked this question in Q&A
Discussion options

You must be logged in to vote

I got it.

(hacker voice) I'm in.

In the client Wireguard configuration, Endpoint needs to point to localhost, which is where the udp2raw service is running.

[Interface]
PrivateKey=PRIVATE_KEY
Address=192.168.2.2/32,fd9d:238c:b159:2::/64
-ListenPort=55820
PreUp=udp2raw_amd64 -c -l 0.0.0.0:55820 -r IPV4_PUBLIC:4096 -k "password" --raw-mode faketcp -a &
PostDown=killall udp2raw_amd64

[Peer]
PublicKey=SERVER_PUBLICKEY
-Endpoint=IPV4_PUBLIC:55820
+Endpoint=127.0.0.1:55820
AllowedIPs=192.168.2.0/24,fd9d:238c:b159::/48

Now I understand how this works...

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@o-alquimista
Comment options

Answer selected by o-alquimista
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants