Dear,

I want to forward webtraffic to a server to another server depending on the port used.

I'll explain what I want to do.

we have several customers who are a running a server from us.
Because they have dynamic IP's and using NAT we have setup reverse ssh tunnels to one internal server (with IP 10.0.0.1) in our netwerk. So we have tunnels like:

127.0.0.1 port 2001 is customer 1
127.0.0.1 port 2002 is customer 2
127.0.0.1 port 2003 is customer 3
etc......

Now I've setup a second tunnel for http

127.0.0.1 port 8001 is customer 1 (http)
127.0.0.1 port 8002 is customer 2 (http)
etc....

When I telnet to 127.0.0.1 8001 I can connect to the remote webserver.
So far so good.

Now I want to be able to surf to 10.0.0.1:8001 and being forwarded to customer 1 port 8001
to support the server.

I know it should work with one or two iptables rules but I'm stuck.
Who can help me?

thank you,
P.