3 ms·
Is it possible to use Socat (or any utility) to redirect a UDP connection on a local Windows machine to TCP port 443/80 to a remote system listening on 443/80 t
by iJohnDoe 6y ago
Is it possible to use Socat (or any utility) to redirect a UDP connection on a local Windows machine to TCP port 443/80 to a remote system listening on 443/80 that will connect to the original intended UDP connection?
I can also do port redirects with iptables that can assist with solving the problem.
I need to host a microservice that uses UDP which won’t connect out on most corporate networks due to firewalls. I need to get the connection out via a standard TCP port.
Nothing malicious. It’s a basic corporate client/server app, but it’s bound to a UDP port that I can’t change.
- cyberpunk 6y agoI think your best bet is to setup a simple WireGuard for this, also udp but put the server on 53 or something it’s unlikely to be blocked.
- cyberpunk 6y agoOh or skip that abd just use pen ( http://siag.nu/pen/ http://siag.nu/pen/ ) to get the traffic from 53->whatever port (can’t remember if haproxy supports udp)
- alexeldeib 6y agohuh. I haven't heard of this one. Seems like it's been around a while? Why might I use this compared to something more well known? haproxy doesn't seem to do generic udp, but maybe linux virtual server or something like that?
- cyberpunk 6y agoshrug -- it's just something I've used to do it, if it's a single server then I guess a simple iptables rule would also do the trick :}