All of lore.kernel.org
 help / color / mirror / Atom feed
From: Blizzards <blizzards@libero.it>
To: raymondl@knowledgefactory.co.za
Cc: Patrick Maartense <patrick@patrick.at>,
	bernard <bernard@gers.net>,
	Netfilter Mailing List <netfilter@lists.netfilter.org>
Subject: Re: hostname forwarding
Date: Thu, 12 Dec 2002 08:16:10 +0100	[thread overview]
Message-ID: <3DF837BA.5000908@libero.it> (raw)
In-Reply-To: 1039671369.4125.12.camel@rayw.knowledgefactory.co.za

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
>  
>




  reply	other threads:[~2002-12-12  7:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-09 11:57 PPTP+NAT+MASQ anyone? Rob Sterenborg
2002-12-11 14:05 ` hostname forwarding bernard
2002-12-11 15:06   ` Patrick Maartense
2002-12-12  5:36     ` Raymond Leach
2002-12-12  7:16       ` Blizzards [this message]
2002-12-12  7:13         ` Raymond Leach
2002-12-12 12:20     ` bernard
     [not found] <FD8F124A387AD6119F7900A0D218B3215619EA@hslex01.hslbz.local>
2002-12-11 15:43 ` Rob Sterenborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DF837BA.5000908@libero.it \
    --to=blizzards@libero.it \
    --cc=bernard@gers.net \
    --cc=netfilter@lists.netfilter.org \
    --cc=patrick@patrick.at \
    --cc=raymondl@knowledgefactory.co.za \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.