Re: [Vserver] Iptables NAT & vservers

From: Sebastian Harl <sh_at_tokkee.org>
Date: Mon 13 Mar 2006 - 16:14:46 GMT
Message-ID: <20060313161446.GC17312@albany.tokkee.org>

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

-- 
Sebastian "tokkee" Harl
GnuPG-ID: 0x8501C7FC
http://tokkee.org/

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver

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