Open ghazel opened 4 years ago
udp2raw itself doesn't implement the function of reverse tunnel, but you can use udp2raw together with a vpn or a tunnel which supports reverse tunnel.
For example, with udp2raw + openvpn, once the vpn connection is established, upper-level connection can be establish in any direction.
(openvpn maybe too heavy weight for your purpose, I am just using it as an example here. you can replace openvpn with anything that supports reverse tunnel)
Since just the client can accept inbound TCP connections, the only way to establish a vpn connection would be to set up a reverse tunnel. (Establishing a reverse connection over the vpn would therefore be too late)
the only way to establish a vpn connection would be to set up a reverse tunnel
no, you just run udp2raw server+vpn server on your client, and udp2raw client+vpn client on your server. Once vpn connection is established, upper level connection can be established in any direction
When trying to run udp2raw client on my server, I get [FATAL]socket bind error
, since the UDP port my VPN is listening on is already open.
reverse tunnel is a most required feature for a cutting edge application, please consider to implement in the next version.
reverse tunnel is a most required feature for a cutting edge application, please consider to implement in the next version.
I have already explained how to do reverse tunnel.
Yes but with other programs. That's not the point.
Hey! 1st of all, thanks for this nice software!! I have the same question. I need to initiate udp2raw-connection from udp2raw-server-side (i have my server behind NAT and gray ip). What i want to do is expose port from inside NAT area to internet. For now i am using ssh port porwarding to external VPC server, but sometimes its unstable and says "port already used". Looks like udp2raw would help here..
How can udp2raw be configured to run a reverse tunnel? For example, when the client can accept inbound TCP connections, but the server cannot.
The example shows how to forward UDP packets sent to client port
3333
over tcp port4096
tunnel to server port7777
:However, I would like the server to initiate the connection. Simply reversing the commands fails, since the server-side UDP port is already listening (so I get a bind error).