Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 May 2006 20:23:46 +0200
From:      =?ISO-8859-1?Q?Peter_Ankerst=E5l?= <peter@pean.org>
To:        Kian Mohageri <kian.mohageri@gmail.com>
Cc:        freebsd-pf@freebsd.org
Subject:   Re: authpf.
Message-ID:  <447747B2.9060404@pean.org>
In-Reply-To: <fee88ee40605261041p4557415bm9188e09d5254cc09@mail.gmail.com>
References:  <44771631.6050901@pean.org> <fee88ee40605261041p4557415bm9188e09d5254cc09@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Kian Mohageri wrote:

> Authpf puts authenticated users in a table.  You can then handle all 
> of that traffic to your liking.  TYou can have a rule which redirects 
> only certain HTTP connections to your web server. 
>
> rdr pass on $wi_if inet proto tcp from ! <authpf_users> to any port 
> www -> ($wi_if)
>
> That should get you started.  Keep in mind your wireless clients might 
> not be able to resolve the addresses of any of those in the first 
> place.  If they can't resolve the names to addresses, they'll just 
> fail without being redirected to your web server.
>
> Kian
>
> On 5/26/06, *Peter Ankerstål* <peter@pean.org <mailto:peter@pean.org>> 
> wrote:
>
>     I am using authpf for my wifi-network. But I want to redirect all
>     of the
>     http-traffic to a webserver to show a "error message" when not
>     authenticated via authpf. But how to "remove" this rule when I
>     authenticate? As far as I know authpf just adds rules to the ruleset.
>     _______________________________________________
>     freebsd-pf@freebsd.org <mailto:freebsd-pf@freebsd.org> mailing list
>     http://lists.freebsd.org/mailman/listinfo/freebsd-pf
>     To unsubscribe, send any mail to
>     "freebsd-pf-unsubscribe@freebsd.org
>     <mailto:freebsd-pf-unsubscribe@freebsd.org>"
>
>
This worked perfectly, thank you!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?447747B2.9060404>