* Ray Percival <[EMAIL PROTECTED]> [2005-08-08 12:17]:
> I have the following pf.conf and authpf.rules. When I try to load the rules 
> into the anchor I get 
> 
> authpfbob# pfctl -a authpf -f /etc/authpf/authpf.rules
> /etc/authpf/authpf.rules:3: macro 'user_ip' not defined
> /etc/authpf/authpf.rules:3: syntax error
> pfctl: Syntax error in config file: pf rules not loaded
> 

        I wouldn't expect loading that ruleset with pfctl to work that way.
authpf adds the macro definition when it loads it. you can't expect to
just run pfctl on that file and have it load correctly, unless you
add a user_ip definition at the top of it (which should *NOT* be there
when using authpf.)

        Your pf.conf you attached looks, well, strange, you shouldn't
be loading anchor authpf from anywhere. authpf does that. 

        Try the examples as in the man page and verify you can
make those work as expected first.

        -Bob

Reply via email to