Re: [Vserver] Iptables NAT & vservers

From: Marc Kalberer <Marc.Kalberer_at_programmers.ch>
Date: Mon 13 Mar 2006 - 16:37:08 GMT
Message-ID: <44159FB4.70705@programmers.ch>

.. it would explain why I didn't succeed ;-)

Do you think there is a other way to redirect all incoming connection to
a particular machine base on the "connection name" but not on the port
number ex:
ssh mymachine.example.com

Sebastian Harl a écrit :

>Hi,
>
>
>
>>iptables is suppose to handle the -d <hostname>
>>
>>(host is 10.0.0.160)
>>
>>-A PREROUTING -p tcp -m tcp -d test.example.com -j DNAT --to-destination
>>10.0.1.2
>>
>>... what's wrong with my approach, I didn't succeed to make it work.
>>
>>
>
>iptables does only support IP based routing. I guess, the -d <hostname> switch
>is only provided for convenience but will simply resolve the hostname to the
>appropriate IP.
>
>I don't think domainname based routing is available at all...
>
>Cheers,
>Sebastian
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Vserver mailing list
>Vserver@list.linux-vserver.org
>http://list.linux-vserver.org/mailman/listinfo/vserver
>
>

-- 
Programmers.ch
Solutions libres et Opensources
Tel: ++41 76 44 888 72
Site: http://www.programmers.ch
Site: http://openprojects.ch

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Mon Mar 13 16:38:21 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 13 Mar 2006 - 16:38:24 GMT by hypermail 2.1.8