Guest User

Untitled

a guest
May 1st, 2011
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. # cat /etc/pf.conf
  2. # $OpenBSD: pf.conf,v 1.50 2011/04/28 00:19:42 mikeb Exp $
  3. #
  4. # See pf.conf(5) for syntax and examples.
  5. # Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
  6. # in /etc/sysctl.conf if packets are to be forwarded between interfaces.
  7.  
  8. set skip on lo
  9. pass # to establish keep-state
  10. block in on ! lo0 proto tcp to port 6000:6010
  11. set block-policy return
  12. set loginterface age0
  13. match out on egress inet from !(egress) to any nat-to (egress:0)
  14. pass out quick
  15. antispoof quick for { lo rl0 }
  16. pass in inet proto icmp all icmp-type echoreq
  17. pass on { age0, rl0 } proto igmp allow-opts
  18. pass quick to 224.0.0.0/4 allow-opts modulate state
  19. pass in quick on age0 all allow-opts
  20. pass on rl0
Advertisement
Add Comment
Please, Sign In to add comment