Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

What I want is to configure a computer in home with Windows and use it as a TCP proxy for connect and route packets from the 80 to port 23 in another server in the Internet

share|improve this question

closed as off-topic by Michael Hampton Jun 29 '13 at 14:56

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they tend to become obsolete quickly. Instead, describe your situation and the specific problem you're trying to solve." – Michael Hampton
If this question can be reworded to fit the rules in the help center, please edit the question.

5 Answers 5

up vote 12 down vote accepted

rinetd should do the job, and a Windows binary for it can be had from http://www.boutell.com/rinetd/ (for anyone looking for the same thing under Linux, rinetd is in the standard repositories of just about every distro so can be installed with "apt-get install rinetd" or "yum install rinetd" or similar)

share|improve this answer
    
Neat, didn't know about that one! –  skitzot33 Jun 2 '09 at 18:34

You're looking for a TCP proxy. There are a variety of free TCP proxies for Windows. I'm not going to recommend one because I don't have any good experience with any of them. Google for "Windows TCP proxy" and you'll come up with a boatload.

This one is cute and source is available, but I don't know how reliable: http://dposey.no-ip.com/Proxy/

It's a fairly trivial piece of code, though one could put some pretty neat features into a high-end TCP proxy (load balancing, logging of traffic, etc).

share|improve this answer
    
Also, make sure you understand that, depending on where the servers are, and what kind of connections are available, latency can be horrible. –  Joshua Nurczyk Jun 2 '09 at 18:18

Assuming it's http packets you could use one of the many windows proxies out there Like Squid NT or something similar.

But if you just wanna port forward any packets, SSH tunneling is the way to go. Check out sshwindows for the server piece and http://oldsite.precedence.co.uk/nc/putty.html for a quick howto on how to set up port forwarding in PuTTY.

There might be an easier way using Some built in Microsoft tool, but this is what came to the top of my head first.

share|improve this answer

3proxy is a small and flexible cross-platform multipurpose proxy which can act as a TCP proxy too.

share|improve this answer
    
3proxy is now here: 3proxy.ru –  Erel Segal Halevi Jan 6 '13 at 11:28

You can use the built-in netsh portproxy. In your case:

netsh interface portproxy add v4tov4 listenport=80 connectaddress=ip-of-server-on-internet connectport=23 listenaddress=ip-of-windows-machine protocol=tcp

You'll need Administrator privileges. No need to install additional software!

You are required to install IPv6 on your operating system before using this feature. On Vista and later this is a non-issue as IPv6 comes installed by default, but on XP/2003 you have to open up your network interface property panel, and add the Microsoft TCP/IP version 6 protocol first.

share|improve this answer
2  
Why isn't this the accepted answer?!? –  Hafthor Nov 9 '12 at 21:28
    
@Hafthor: probably just because it turned up a while after the other answers came in and one was already accepted. It is certainly something I'll try first next time I need such a server under Windows. –  David Spillett Jan 3 '13 at 15:29
    
+1 for explaining this won't work on xp/2003 without adding support for IPv6 to the network interface properties. –  dimir Apr 23 '13 at 15:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.