Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up[feature request] One udp2raw client forwards wireguard packets to multiple udp2raw servers with automatically parsing wireguard UDP packet target ip #212
Comments
diyism
changed the title
[feature request]
[feature request] One udp2raw client forwards packets to multiple udp2raw server with parsing UDP packet target ip
Oct 2, 2018
diyism
changed the title
[feature request] One udp2raw client forwards packets to multiple udp2raw server with parsing UDP packet target ip
[feature request] One udp2raw client forwards wireguard packets to multiple udp2raw server with parsing UDP packet target ip
Oct 2, 2018
diyism
changed the title
[feature request] One udp2raw client forwards wireguard packets to multiple udp2raw server with parsing UDP packet target ip
[feature request] One udp2raw client forwards wireguard packets to multiple udp2raw servers with parsing UDP packet target ip
Oct 2, 2018
diyism
changed the title
[feature request] One udp2raw client forwards wireguard packets to multiple udp2raw servers with parsing UDP packet target ip
[feature request] One udp2raw client forwards wireguard packets to multiple udp2raw servers with automatically parsing UDP packet target ip
Oct 2, 2018
diyism
changed the title
[feature request] One udp2raw client forwards wireguard packets to multiple udp2raw servers with automatically parsing UDP packet target ip
[feature request] One udp2raw client forwards wireguard packets to multiple udp2raw servers with automatically parsing wireguard UDP packet target ip
Oct 2, 2018
This comment has been minimized.
This comment has been minimized.
|
I think that keeping p2p feature of wireguard in wireguard+udp2raw is more complex than Wireguard itself supports Fake TCP/Raw TCP packets |
This comment has been minimized.
This comment has been minimized.
butterl
commented
Dec 24, 2018
•
|
@diyism any update about your wireguard+udp2raw work? server configure like this seems recieving udp2raw packet from 2999 and redir to speederv2 port 8888, then forward to wiregurd server port 443
But I didn't get his client config ,seems we could use something like
the route table for wg will let all packet route to wireguard server( 127.0.0.1:2999) I'm not sure if this could work will ,but maybe a way to approch |
This comment has been minimized.
This comment has been minimized.
|
I have used wireguard+udp2raw for 3 month, it's very stable, need no speederv2: |
This comment has been minimized.
This comment has been minimized.
butterl
commented
Dec 24, 2018
|
@diyism Thanks for sharing your config I tried with your udp2raw config way : wireguard set endpoint to the udp2raw listerning port , and udp2raw connecting to remote udp2raw listerning port
and could got server and client ready
but when I
server wg0 config
|
This comment has been minimized.
This comment has been minimized.
|
I paste all my configs that i'm using now:
Did I miss something important in my gist? https://gist.github.com/diyism/1b80903a83776675031c73ae499438d8#file-wireguard_config-txt-L156 If you success, show me your configs. |
This comment has been minimized.
This comment has been minimized.
butterl
commented
Dec 25, 2018
•
|
@diyism I tried all the config and finnally I find a luci config and add this rule before
the main diffent seems that I do not add a just tried add |
This comment has been minimized.
This comment has been minimized.
|
I know the problem, "AllowedIPs = 0.0.0.0/0" shoud exclude the udp2raw server ip, do you know how? I commented "AllowedIPs = 0.0.0.0/0" in the gist, and add every foreigner IP into ip route through dns2https.php, so it's working on my side, but if i uncommentd it, the udp2raw traffic will be blocked. |
This comment has been minimized.
This comment has been minimized.
butterl
commented
Dec 25, 2018
•
|
allow ips is using for filter the connection in/out whitelist from my understanding ,so it's may hard to use this, I now using PostUp/PostDown to approach,
also in your client config ,these seems automatically done by wg it self
|
diyism commentedSep 30, 2018
•
edited
Now i'm using wireguard over udp2raw (https://gist.github.com/diyism/1b80903a83776675031c73ae499438d8#file-wireguard_config-txt-L155),
it's very stable, but the combination will lost the automatic p2p or automatic NAT traverse feature of Wireguard.
===========================
Currently i must manually start two udp2raw tunnel:
udp2raw_amd64 -c -l127.0.0.1:20001 -r --source-ip 192.168.0.3 -a
udp2raw_amd64 -c -l127.0.0.1:20002 -r --source-ip 192.168.0.3 -a
ping 10.0.0.1->wireguard node(127.0.0.1:40001, setconf Peer 10.0.0.1 Endpoint 127.0.0.1:20001)->udp packet with target ip 127.0.0.1->udp2raw client(127.0.0.1:20001) on my PC->raw tcp traffic->udp2raw server on my VPS1->udp traffic->wireguard on vps1->vps1
ping 10.0.0.2->wireguard node(127.0.0.1:40001, setconf Peer 10.0.0.2 Endpoint 127.0.0.1:20002)->udp packet with target ip 127.0.0.1->udp2raw client(127.0.0.1:20002) on my PC->raw tcp traffic->udp2raw server on my VPS2->udp traffic->wireguard on vps2->vps2
============================
I want: Only one udp2raw client is must, and need not set remote ip-port:
udp2raw_amd64 -c -l192.168.0.3:20001 --source-ip 192.168.0.3 --source-port 20001 -a
ping 10.0.0.1->wireguard node(127.0.0.1:40001, setconf Peer 10.0.0.1 Endpoint vps1 ip:port)->iptables -A OUTPUT -p udp --sport 40001 -j REDIRECT --to-port 20001->udp packet with target ip vps1 ip->udp2raw client(127.0.0.1:20001) on my PC->raw tcp traffic->udp2raw server on my VPS1->udp traffic->wireguard on vps1->vps1
ping 10.0.0.2->wireguard node(127.0.0.1:40001, setconf Peer 10.0.0.2 Endpoint vps2 ip:port)->iptables -A OUTPUT -p udp --sport 40001 -j REDIRECT --to-port 20001->udp packet with target ip vps2 ip->udp2raw client(127.0.0.1:20001) on my PC->raw tcp traffic->udp2raw server on my VPS2->udp traffic->wireguard on vps2->vps2
And udp2raw server should listen on the same port with udp2raw client:
udp2raw_amd64 -s -l 192.168.0.3:20001 -r 127.0.0.1:40001 -a