View Single Post
  #2   (View Single Post)  
Old 13th November 2010
ohauer ohauer is offline
Port Guard
 
Join Date: May 2008
Location: germany
Posts: 32
Default

place the following lines into your ~/.bashrc and you are done

now you can type
# pftest to check if your pf.conf is OK and
# pfinstall to test and install your pf.conf

Code:
PFCONF=/etc/pf.conf

pftest(){
    pfctl -n -f ${PFCONF} &&
    echo "${PFCONF} => seems to work: $?"
}
pfinstall(){
    pfctl -n -f ${PFCONF} &&
    pfctl -f ${PFCONF} &&
    echo "${PFCONF} => seems to work: $?"
}
Reply With Quote