View Single Post
  #1   (View Single Post)  
Old 9th January 2011
drummondislebsd drummondislebsd is offline
New User
 
Join Date: Nov 2010
Posts: 3
Default pf rules - list syntax

Reading the pf manual, I see benefit is reducing the number of line items using lists and macros.

But, I am confused about the syntax as it is presented two different ways.

Specifically, one example shows a list as { 192.168.0.1, 10.5.32.6 }
- notice the comma seperates the values in the list.

Another example demonstrates a list as { 22 80 } or {ssh udp }
- notice no comma seperating these values.

SO... my question is are commas necessary or optional. And, if they are needed, then is it correct to infer they are only needed when seperating IP addresses and not ports or services.
Reply With Quote