Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



I 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.


Oh or skip that abd just use pen ( http://siag.nu/pen/ ) to get the traffic from 53->whatever port (can’t remember if haproxy supports udp)


huh. 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?


shrug -- 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 :}




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: