All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Lopes <lopsch@lopsch.com>
To: netfilter@lists.netfilter.org
Subject: Re: [Fwd: Re: Wireless Login Page]
Date: Sat, 28 Apr 2007 19:45:41 +0200	[thread overview]
Message-ID: <46338845.1020605@lopsch.com> (raw)
In-Reply-To: <1177772620.3828.176.camel@ws1.walco02.com>

Kirk Wallace schrieb:
> (This may be a duplicate message, KW)
> 
> Thank you for the replies Alex and Jan.
> 
> I set up a test system with two PC's. PC one has Apache httpd running on
> it with iptables flushed, defaults set to accept all packets and is at
> 192.168.21.1 . PC two is simply a workstation at 192.168.21.10 . I can
> get my default webpage by pointing the workstation's browser to
> 192.168.21.1 . I invoked "iptables -t nat -A PREROUTING -p TCP --dport
> 80 -j REDIRECT" on the http host. At this point I was expecting to point
> the workstation's browser to 192.168.21.2 and get the default webpage,
> but this returned "Unable to Connect".
> 

Hi,

I don't really understand what you are trying. When your browser 
connects to 192.168.21.2 and there is no webserver running it will not 
be able to connect logically. Do you want to redirect traffic destined 
to 192.168.21.1 to 192.168.21.2 then -j DNAT --to-destination 
192.168.21.2 is your friend not -j REDIRECT. This will redirect all 
traffic to the local machine.


  reply	other threads:[~2007-04-28 17:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-28 15:03 [Fwd: Re: Wireless Login Page] Kirk Wallace
2007-04-28 17:45 ` Daniel Lopes [this message]
2007-04-28 18:43   ` Wireless Login Page Kirk Wallace
2007-05-02 17:18     ` Michelle Konzack

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=46338845.1020605@lopsch.com \
    --to=lopsch@lopsch.com \
    --cc=netfilter@lists.netfilter.org \
    /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.