-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Ability for client to specify destination to server #558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If you want to increase the VPN speed via the Internet, try this program starting with a bridge topology. If you want to create a (faketcp tunnel) gateway described in this issue, you can create DNAT with iptables per client source IP to per udpdeminer instance on a common gateway server. This is also firewall policy friendly for some company networks. If you really need a TCP rather than UDP connection, you can do DNAT for each wg client per udp2raw client per instance as a temporary solution. While the advantages of udpdeminer are:
Furthermore, if you are strong on programming, you can have one udpdeminer instance to achieve your goals with hookpath.cmd.sh Tutorial, sample, The steps are:
The ONLY thing to differentiate client is by STREAMID for udpdeminer hook script, which eaquals to source port, so you have to preconfig the client to bind to different port for wireguard, in case you get multiple result from conntrack. |
It'd be nice if it were possible by default on the server and client though, like the In the end I just used Trojan instead for this, as it's much easier |
So you need a tool that inspects your traffic. |
Instead of configuring the server with a fixed destination address with
-r
, it would be really useful if the client could tell the server which destination it wants, and the server would store this on a per client basis (e.g. by source IP - like NAT).So instead of having the current situation:
Where all connections are routed to the same
-r
destination on the udp2raw server, one could do:Where the server
-r
is now specified as--destination
on the client.So multiple clients could tunnel via the same udp2raw server simultaneously, but to different actual Wireguard endpoints.
The udp2raw client would need to send this desired destination address to the server when it first establishes the connection.
The text was updated successfully, but these errors were encountered: