DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Security

OpenBSD Security Functionally paranoid!

Reply
 
Thread Tools Display Modes
  #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
  #2   (View Single Post)  
Old 9th January 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Optional; most people just find it easier to read.. but both are valid, a space will suffice.
Reply With Quote
Reply

Tags
pf, pf lists, pf lists syntax

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
perl expression syntax qsecofr Programming 3 16th February 2009 12:56 PM
C/C++ Syntax highlighting in emacs rex FreeBSD General 1 12th October 2008 03:21 AM
Syntax Highlighting JMJ_coder Programming 17 22nd June 2008 02:24 PM
I need help with make.conf syntax troberts FreeBSD Ports and Packages 4 1st June 2008 03:58 AM
Vi type syntax applications corey_james Off-Topic 9 28th May 2008 04:15 PM


All times are GMT. The time now is 10:02 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick