All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fwd: Re: Wireless Login Page]
@ 2007-04-28 15:03 Kirk Wallace
  2007-04-28 17:45 ` Daniel Lopes
  0 siblings, 1 reply; 4+ messages in thread
From: Kirk Wallace @ 2007-04-28 15:03 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 1332 bytes --]

(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".

It seems from the description of REDIRECT 
( http://www.faqs.org/docs/iptables/targets.html#REDIRECTTARGET ) that,
when the packet hits the PREROUTING table, it immediately gets sent to
localhost and presumably httpd. I am guessing here, but since httpd is
an application, the tcp/ip stuff gets stripped off (but the port number
stays?), so the fault must be in how Apache is set up? I am thinking,
did Apache receive the packet (maybe check the appropriate log file?).
Did Apache have a problem interpreting the packet it received (check
logs)? Or, may this be a situation where the server can't figure out
where to send a reply?

Thank you for any replies.

Kirk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[-- Attachment #2: Forwarded message - Re: Wireless Login Page --]
[-- Type: message/rfc822, Size: 3591 bytes --]

From: "Alex" <alex@hackgod.org>
To: "Kirk Wallace" <kwallace@wallacecompany.com>, <netfilter@lists.netfilter.org>
Cc: 
Subject: Re: Wireless Login Page
Date: Fri, 27 Apr 2007 12:41:07 +0100
Message-ID: <00d501c788c0$f460c730$0a00080a@rhea>

You don't need contrack for the redirection part. I've achived the same 
thing on my router using -j REDIRECT

You could do it for only port 80 trafic, but I've done it for all traffic. 
You get some entertaining attempts from people trying to work out why they 
have a valid DHCP lease but now internet conductivity.

----- Original Message ----- 
From: "Kirk Wallace" <kwallace@wallacecompany.com>
To: <netfilter@lists.netfilter.org>
Sent: Thursday, April 26, 2007 5:48 PM
Subject: Wireless Login Page


>I have a wireless card installed on Fedora 4 system. I have the wireless
> connection open, DHCP enabled and have disabled forwarding for the
> "open" network. I use Poptop and Radius to authenticate and assign IP
> addresses on the tunnel and then allow forwarding for the tunnel address
> range. I now want to have all http requests from the "open" network to
> be directed to a opening/login page on the wireless server. Can this be
> done with iptables (conntrack?)? Would anyone suggest links or keywords
> for finding more information? Thank you.
>
> Kirk
>
>
> 




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-02 17:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-28 15:03 [Fwd: Re: Wireless Login Page] Kirk Wallace
2007-04-28 17:45 ` Daniel Lopes
2007-04-28 18:43   ` Wireless Login Page Kirk Wallace
2007-05-02 17:18     ` Michelle Konzack

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.