Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.20 KB | None | 0 0
  1. #-----------------------------------------------------------------------
  2. public_if = "re0"
  3. public_addr = "193.104.186.121"
  4. #-----------------------------------------------------------------------
  5.  
  6. public_tcp_ports = "{ 25,53,80,8080,6379,11211,11300,31025,30000><50000}"
  7. public_udp_ports = "{ 53 }"
  8.  
  9.  
  10. #table <servers> { $ddns }
  11. table <bruteforce> persist
  12.  
  13. set skip on lo0
  14. set block-policy drop
  15. set limit states 40000
  16.  
  17. scrub in all
  18.  
  19. block all
  20. block in quick proto {tcp, udp} from <bruteforce> to any port != 31025
  21. #pass quick from <servers> to any
  22. pass in on $public_if proto tcp to $public_addr port 80 \
  23.   flags S/SA keep state \
  24.   (max-src-conn 1, max-src-conn-rate 1/1, \
  25.   overload <bruteforce> flush global)
  26.  
  27. pass out keep state
  28.  
  29. pass in quick on $public_if proto tcp from any to $public_addr port $public_tcp_ports flags S/SA keep state
  30. pass in quick on $public_if proto udp from any to $public_addr port $public_udp_ports keep state
  31.  
  32. #-----------------------------------------------------------------------
  33. # ALLOW ICMP
  34. #-----------------------------------------------------------------------
  35. icmp_types="{ echoreq, unreach }"
  36. pass inet proto icmp all icmp-type $icmp_types keep state
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement