Re: hostname forwarding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK, that makes sense...

On Thu, 2002-12-12 at 09:16, Blizzards wrote:
> 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 <hostname A> --dport 80 -j
> >REDIRECT --to-destination 192.168.1.1:80
> >iptables -t nat -A PREROUTING -p tcp -s <hostname B> --dport 80 -j
> >REDIRECT --to-destination 192.168.1.2:80
> >
> >Or am I missing something?
> >
> >Ray
> >  
> >
-- 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(  Raymond Leach                       )
 ) Knowledge Factory                  (
(                                      )
 ) Tel: +27 11 445 8100               (
(  Fax: +27 11 445 8101                )
 )                                    (
(  http://www.knowledgefactory.co.za/  )
 ) http://www.saptg.co.za/            (
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   o                                o
    o                              o
        .--.                  .--.
       | o_o|                |o_o |
       | \_:|                |:_/ |
      / /   \\              //   \ \
     ( |     |)            (|     | )
     /`\_   _/'\          /'\_   _/`\
     \___)=(___/          \___)=(___/

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux