From mboxrd@z Thu Jan 1 00:00:00 1970 From: Blizzards Subject: Re: hostname forwarding Date: Thu, 12 Dec 2002 08:16:10 +0100 Sender: netfilter-admin@lists.netfilter.org Message-ID: <3DF837BA.5000908@libero.it> References: <1039671369.4125.12.camel@rayw.knowledgefactory.co.za> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: raymondl@knowledgefactory.co.za Cc: Patrick Maartense , bernard , Netfilter Mailing List The host A and Host B share the same ip address. In this case -s is no useful because resolving host a and host b return the same address, and the 1st match win. You can use APACHE name virtual host to handle this correctly. G. >> >> >> >Ummm, what is the -s parameter for then? >iptables -t nat -A PREROUTING -p tcp -s --dport 80 -j >REDIRECT --to-destination 192.168.1.1:80 >iptables -t nat -A PREROUTING -p tcp -s --dport 80 -j >REDIRECT --to-destination 192.168.1.2:80 > >Or am I missing something? > >Ray > >