View Single Post
  #6   (View Single Post)  
Old 14th May 2009
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by s0xxx View Post
Mine is actually quite extensive...
Code:
block in log
pass out all
SoXXX even though I advocate exactly the same pf.conf to novice users the truth is that the second rule you have is actually very dangerous. In the real world you have to filter outgoing traffic as well even if you are the only user of the computer. Now more sane pf.conf than the above proposed would be something like

Code:
ext_if="rl0"

tcp_services = "{ssh, imaps, smtp, 587, domain, ntp, www, https}"
udp_services= "{domain, ntp}"


set skip on lo
set loginterface $ext_if

scrub in all random-id fragment reassemble

block return in log all
block out all

antispoof quick for $ext_if


pass out quick on $ext_if proto tcp to any port $tcp_services
pass out quick on $ext_if proto udp to any port $udp_services




Quote:
Originally Posted by s0xxx View Post
Very good reading indeed . I especially optimization article.

Last edited by Oko; 22nd September 2011 at 01:23 AM.
Reply With Quote