Re: pf.conf comment lines

2008-06-14 Thread Philip Guenther
On Sat, Jun 14, 2008 at 8:58 AM, Sunnz <[EMAIL PROTECTED]> wrote: > 2008/6/14 Philip Guenther <[EMAIL PROTECTED]>: >> Sadly, this varies among languages and file-formats. You just have to >> know how the one you're working in behaves. > > So, when in doubt, comment every line that needs to be comm

Re: pf.conf comment lines

2008-06-14 Thread Sunnz
2008/6/14 Philip Guenther <[EMAIL PROTECTED]>: > > Sadly, this varies among languages and file-formats. You just have to > know how the one you're working in behaves. > So, when in doubt, comment every line that needs to be comment out, should work in almost all cases? -- This e-mail may be co

Re: pf.conf comment lines

2008-06-13 Thread Philip Guenther
On Fri, Jun 13, 2008 at 1:14 PM, Theo de Raadt <[EMAIL PROTECTED]> wrote: ... >> Now, if a comment line ends with "\", should the next line >> be also treated as comment? I noticed this behaviour and I do >> not know whether or not it should work like that. > > Well, because you used \ to end the l

Re: pf.conf comment lines

2008-06-13 Thread Theo de Raadt
> The man page for pf.conf says at some point: > > "Any lines beginning with a # are treated as comments and ignored." Yes, pf.conf(5) says that about the table files. About the main pf.conf(5) file itself, it says: Comments can be put anywhere in the file using a hash mark (`#'), and ex-

Re: pf.conf comment lines

2008-06-13 Thread Han Boetes
Darrin Chandler wrote: > # This \ > Thus \ > that \ > other Clearly this is the intuitive way that should work, since all other languages I know of parse like this. If you want to disable multiple lines you have to comment them all out. Use a decent editor if you think that is much of

Re: pf.conf comment lines

2008-06-13 Thread Louis V. Lambrecht
Ooops! Lars answered to my mail. Means, I hadn't replied to misc@ but the lazy in me just replied. Louis V. Lambrecht wrote: Lars NoodC)n wrote: Jose Fragoso wrote: Now, if a comment line ends with "\", should the next line be also treated as comment? I noticed this behaviour and I do not

Re: pf.conf comment lines

2008-06-13 Thread Darrin Chandler
On Fri, Jun 13, 2008 at 04:52:45PM +0300, Lars Noodin wrote: > Louis V. Lambrecht wrote: > > rem the backslash is used as an escape character in shell world. > > Yes, that's quite familiar and I use it a lot, both for long lines and > for escaping special characters (quotes, etc). What is new use

Re: pf.conf comment lines

2008-06-13 Thread Lars Noodén
Louis V. Lambrecht wrote: > rem the backslash is used as an escape character in shell world. Yes, that's quite familiar and I use it a lot, both for long lines and for escaping special characters (quotes, etc). What is new use to me is that the comment lines can be affected. I simply hadn't trie

Re: pf.conf comment lines

2008-06-13 Thread Lars Noodén
Jose Fragoso wrote: > Now, if a comment line ends with "\", should the next line > be also treated as comment? I noticed this behaviour and I do > not know whether or not it should work like that. Interesting. Good to know that. In a small rule set it's easy to notice, though. I'm able to dupl

pf.conf comment lines

2008-06-13 Thread Jose Fragoso
Hi, I am running OpenBSD 4.3 STABLE in an i386 machine. The man page for pf.conf says at some point: "Any lines beginning with a # are treated as comments and ignored." Now, if a comment line ends with "\", should the next line be also treated as comment? I noticed this behaviour and I do not k