Advertisement
Guest User

broken dream pf.conf

a guest
Dec 8th, 2011
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                                                                       int_if="xl0"                                                                    
  2. ext_if="pppoe0"                                                                
  3. wan_if="fxp0"                                                                  
  4.                                                                                
  5. thenetwrk="10.0.0.0/8"                                                          
  6. hayek="10.0.0.10"                                                              
  7. baal="10.0.0.2"                                                                
  8. smass="10.0.0.1"                                                                
  9.                                                                                
  10. table <etcpserv> { 22 }                                                        
  11. table <itcpserv> { 22, 53 }                                                    
  12. #table <eudpservices> {}                                                        
  13. #table <iudpservices> {}                                                        
  14. table <inetbanned> {} persist                                                  
  15.                                                                                
  16. icmp_types="echoreq"                                                            
  17.                                                                                
  18. table <ports_hayek> {2222} persist                                              
  19. table <ports_smass> {2232} persist                                              
  20.                                                                                
  21. set block-policy return                                                        
  22. set loginterface $ext_if                                                        
  23. set skip on lo                                                                  
  24. set skip on $wan_if                                                            
  25.                                                                                
  26. anchor "ftp-proxy/*"                                                            
  27.                                                                                
  28. pass in quick on $int_if inet proto tcp to any port ftp \                      
  29.     divert-to 127.0.0.1 port 8021                                              
  30.                                                                                
  31. block in log                                                                    
  32. pass out quick                                                                  
  33.                                                                                
  34. pass out on $ext_if from $int_if:network to any nat-to ($ext_if)                
  35.                                                                                
  36. pass in on $int_if from 10.0.0.0/8 to any                                      
  37.                                                                                
  38. pass out on $int_if from any to any                                            
  39.                                                                                
  40. pass in on $ext_if proto tcp from any to any port <ports_hayek> rdr-to $hayek  
  41. rd                                                                              
  42. pass in on $ext_if proto tcp from any to any port <ports_smass> rdr-to $smass  
  43.                                                                                
  44.                                                                                
  45. antispoof quick for { lo $int_if }                                              
  46.                                                                                
  47. pass in on $ext_if inet proto tcp from any to (egress) \                        
  48.         port <etcpservices>                                                    
  49. pass in on $int_if inet proto tcp from any to $baal port <itcpservices>        
  50.                                                                                
  51. #pass in on $ext_if inet proto udp from any to (egress) port <eudpservices>    
  52. #pass in on $int_if inet proto udp from any to $baal port <iudpservices>        
  53.                                                                                
  54. pass in inet proto icmp all icmp-type $icmp_types                              
  55.                                                                                
  56. block in on $ext_if inet proto tcp from <inet_banned> to any                    
  57. block out on $ext_if inet proto tcp from any to <inet_banned>                  
  58.                                                              
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement