Live data from Hacker News

High Performance TCP Proxy Server

partow.net

61–62 of 62 posts

Re: High Performance TCP Proxy Server

#61
post #36

Why not just? Linux: iptables -t nat -A PREROUTING -p tcp -s 192.168.20.200/0 -d 192.168.0.100/0 --dport 8080 -j REDIRECT --to-ports 20000 Windows: netsh interface portproxy add v4tov4 listenaddress=192.168.20.200 listenport=8080 connectaddress=192.168.0.100 connectport=20000 protocol=tcp

-s 192.168.20.200/0 -d 192.168.0.100/0 That sounds wrong. You probably meant /24 or /32. Or you meant to not write anything to not filter it at all.

Yeah, sorry for that, was copy-pasting too quickly :-)

Re: High Performance TCP Proxy Server

#62
post #54

Earlier quoted context omitted.

Hey, I am looking for a way of packing multiple TCP streams over a single TCP connection to a backend server. I can unpack them in application logic if necessary. Do you know what that is called? Kinda like SCTP

The quick and dirty approach would be an ssh tunnel or vpn. There's also GRE tunnels which would be faster, but not encrypted. Any of these would work without having to change the application. Probably, though, it's best to start with why you would want to do that. You could be, for example, trying to solve something where a pub/sub model would work better. Or just two separate apps, on different ports. What's drivin…

Oh that's interesting, can we speak via email:- tom dot larkworthy at Google's popular email provider?
Post reply on HN