Redirecting port 80 to another port on a single Windows computer?
Solution 1
This article from Microsoft ( http://support.microsoft.com/kb/819961 ) discusses configuring a proxyserver for the system. For other browsers, such as firefox, you may need to configure the proxy settings independently.
Solution 2
The shareware PC Port Forwarding is all there is for redirecting outgoing traffic with an easy to use GUI under Windows. Obtain it from http://www.verigio.com/products/pc-port-forwarding/
Solution 3
I recognize this doesn't answer your question, but you should really put a real firewall/router appliance in place to do this: I would recommend either pfSense or Smoothwall.
If it has to be a Windows box for whatever reason, your best bet is ISA Server - though typically it handles in-bound routing better so this may not even be possible. As far as I know, Microsoft has not exposed the IP stack in such a way you can add custom routes/translations without writing a custom driver to sit in the network stack.
Excellent ISA resource: http://www.isaserver.org/
Solution 4
I don't believe this can be done natively in windows. Why don't you just set Squid to listen on port 80?
Solution 5
The product you are looking for is NetCat and does exactly what you need. Check the Wikipedia page. The specific command line you want is
nc -l -p 80 | nc localhost 3128
Related videos on Youtube
Comments
-
Net Citizen over 1 year
Assuming my Windows (xp, vista, 2003, 2008, or windows 7) computer is connected directly to the internet and has no router in between...
Is there a way to filter all traffic going TO port 80, so that it instead goes to 3128 (squid HTTP proxy)?
I found this port mapping software, but you need another computer because it can't redirect outgoing requests.
-
Net Citizen over 14 yearsEven if not native, please let me know a program that can do it instead
-
EEAA over 14 yearsThere's this really sweet program called Linux that would fix this in a heartbeat. ;)
-
Fernando over 14 yearsIn this network arrangement, where does the proxy server live? Is the Windows machine the web server or client? BTW, there is always a router between you and the "Internet". Just as Soilent Green is made of people, the Internet is made of routers.
-
-
Net Citizen over 14 yearsBecause I want to transparently router all web page traffic through squid. I don't think setting squid to listen on port 80 has anything to do that. Am I maybe missing something in the understanding of squid?
-
Net Citizen over 14 yearsThis allows me to receive any traffic on port 80 (incoming). What I need to do is redirect any outgoing traffic on port to go to 127.0.0.1 3128.
-
Net Citizen over 14 yearsI need to do this in a transparent way
-
Scott Pack almost 11 yearsWelcome to Server Fault! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.