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* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> 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.
    _______________________________________________
    [email protected] <mailto:[email protected]> mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-pf
    To unsubscribe, send any mail to
    "[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>"


This worked perfectly, thank you!
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to