Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. plan_if="em0"
  2. next_if="xl0"
  3.  
  4. rt = "{ 50000:50500 }"
  5.  
  6. set limit { states 1000000000, src-nodes 1000000000, frags 50000000 }
  7.  
  8. plan_net="10.0.1.1/24"
  9.  
  10. voipfone="80.92.66.14"
  11.  
  12. scrub on $next_if
  13.  
  14. altq on $next_if priq bandwidth 1500Kb queue { q_dns, q_tcp, q_urg, q_pri, q_std, q_low, q_null }
  15. queue q_urg priority 15 qlimit 100
  16. queue q_pri priority 12 qlimit 200
  17. queue q_std priority 5 qlimit 500
  18. queue q_low priority 3 qlimit 2000
  19. queue q_null priority 0 priq(default red) qlimit 2000
  20.  
  21.  
  22. rdr on $plan_if proto tcp from any to any port www -> 127.0.0.1 port 3128
  23.  
  24. nat on $next_if from $plan_net -> ($next_if)
  25.  
  26. rdr-anchor "miniupnpd"
  27.  
  28. pass on lo0
  29. pass quick on tap0
  30.  
  31. ##########################HERE###################
  32. pass quick on em0 from 10.0.0.0/16 to 10.0.0.0/16
  33. pass quick on tun0 from 10.0.0.0/16 to 10.0.0.0/16
  34.  
  35. # Block
  36. block out quick on $plan_if inet from any to 125.252.224.90/32
  37. block out quick on $plan_if inet from any to 125.252.224.91/32
  38. block in quick on $plan_if proto { tcp, udp } to port { 135, 139, 445 }
  39.  
  40. # Outbound (FROM THE LAN TO THE NET)
  41. pass out on $next_if proto tcp queue (q_null,q_urg) # unknown
  42. pass out on $next_if proto udp queue (q_null) # unknown
  43. pass out on $next_if proto { icmp, icmp6 } queue (q_low)
  44.  
  45. pass out on $next_if proto tcp to port 1:1024 queue (q_std,q_urg)
  46. pass out on $next_if proto udp to port 1:1024 queue (q_std)
  47.  
  48. pass out on $next_if proto tcp to port { 21,80,443 } queue (q_pri,q_urg)
  49.  
  50. pass out on $next_if proto { tcp, udp } to port { 42, 53 } queue (q_urg)
  51. pass out on $next_if proto tcp to port { 22,23,6667:7000 } queue (q_urg)
  52.  
  53. pass out on $next_if proto ipv6 queue (q_std,q_urg)
  54.  
  55. pass out on $next_if from any to { 95.154.246.222, 95.154.246.182, 95.154.246.179 } queue (q_std)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement