View Single Post
  #5   (View Single Post)  
Old 15th August 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,567
Default

Ephemera, the [2003] is a shell regular expression, which will never match the string "2003".
Code:
$ mkdir test && cd test
$ pwd

/home/j65nko/test

$ for NUM in 0 1 2 3 4 ; do touch Street_${NUM} ; done
$ ls -l

total 0
-rw-r--r--  1 j65nko  j65nko  0 Aug 15 03:34 Street_0
-rw-r--r--  1 j65nko  j65nko  0 Aug 15 03:34 Street_1
-rw-r--r--  1 j65nko  j65nko  0 Aug 15 03:34 Street_2
-rw-r--r--  1 j65nko  j65nko  0 Aug 15 03:34 Street_3
-rw-r--r--  1 j65nko  j65nko  0 Aug 15 03:34 Street_4

$ touch  Street_\[2003\]
$ ls -l

total 0
-rw-r--r--  1 j65nko  j65nko  0 Aug 15 03:34 Street_0
-rw-r--r--  1 j65nko  j65nko  0 Aug 15 03:34 Street_1
-rw-r--r--  1 j65nko  j65nko  0 Aug 15 03:34 Street_2
-rw-r--r--  1 j65nko  j65nko  0 Aug 15 03:34 Street_3
-rw-r--r--  1 j65nko  j65nko  0 Aug 15 03:34 Street_4
-rw-r--r--  1 j65nko  j65nko  0 Aug 15 03:35 Street_[2003]

$ ls -l Street_[2003]

-rw-r--r--  1 j65nko  j65nko  0 Aug 15 03:34 Street_0
-rw-r--r--  1 j65nko  j65nko  0 Aug 15 03:34 Street_2
-rw-r--r--  1 j65nko  j65nko  0 Aug 15 03:34 Street_3

$ ls -l Street_[023]

-rw-r--r--  1 j65nko  j65nko  0 Aug 15 03:34 Street_0
-rw-r--r--  1 j65nko  j65nko  0 Aug 15 03:34 Street_2
-rw-r--r--  1 j65nko  j65nko  0 Aug 15 03:34 Street_3
Got it?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote