Netfilter (iptables) will do this:
>From the NAT howto:
## Send incoming port-80 web traffic to our squid (transparent) proxy
# iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 \
-j REDIRECT --to-port 3128
A basic port redirection, but other examples are here:
http://www.netfilter.org/documentation/HOWTO//NAT-HOWTO-6.html
Those should work fine for redirecting to virtual hosts based on IP,
hostname, or port.
--Alan
-----Original Message-----
From: Alberto Paris [mailto:albertoparis_at_hotmail.com]
Sent: Wednesday, March 15, 2006 1:45 PM
To: albertoparis_at_hotmail.com
Subject: HTTP proxy/redirector to a unique virtual host ....
Hi,
Does anyone on the list knows of any kind of software (for Windows,
Linux,
or anything) that I can set up as an HTTP/HTTPS proxy/redirector to
receive
requests on a specific TCP port, and then redirects them to another IP,
AND
to a scpecific Virtual Host ?
Something like what 'stunnel' does, but I also need the capability of
directing the traffic to a specific virtual host on the destination web
server .....
Any help will be greatly appreciated ....
Regards,
Alberto Paris
albertoparis_at_hotmail.com
Colombia
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how
to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
------------------------------------------------------------------------
-
This List Sponsored by: SpiDynamics
ALERT: "How A Hacker Launches A Web Application Attack!"
Step-by-Step - SPI Dynamics White Paper
Learn how to defend against Web Application Attacks with real-world
examples of recent hacking methods such as: SQL Injection, Cross Site
Scripting and Parameter Manipulation
https://download.spidynamics.com/1/ad/web.asp?Campaign_ID=701300000003gR
l
------------------------------------------------------------------------
--
-------------------------------------------------------------------------
This List Sponsored by: SpiDynamics
ALERT: "How A Hacker Launches A Web Application Attack!"
Step-by-Step - SPI Dynamics White Paper
Learn how to defend against Web Application Attacks with real-world
examples of recent hacking methods such as: SQL Injection, Cross Site
Scripting and Parameter Manipulation
https://download.spidynamics.com/1/ad/web.asp?Campaign_ID=701300000003gRl
--------------------------------------------------------------------------
Received on Mar 16 2006