View Single Post
  #1   (View Single Post)  
Old 13th December 2011
toro7 toro7 is offline
New User
 
Join Date: Dec 2011
Posts: 3
Default pf.conf label question

Hello

I have the following rule in my pf.conf (on OpenBSD 4.3)

Code:
rdr pass on $new_if proto tcp from any to 123.123.123.33 port {80,443}  -> 10.0.0.99
now I want to add a label to this rule. I use the label for later traffic analysis. I tried out a lot of variations, but I think this one should work:

Code:
rdr pass on $new_if proto tcp from any to 123.123.123.33 port {80,443} label test -> 10.0.0.99
But when I try to load the config, I always get the error:
pfctl: Syntax error in config file: pf rules not loaded

Any ideas how I can set the label to this rule. I don't want to split it to a rdr and a pass rule. That works, I want to have it in the same rule.
Thanks
Reply With Quote