Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2020
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. wired = "re0"
  2. wifi = "rtwn0"
  3. table <martians> { 0.0.0.0/8 10.0.0.0/8 127.0.0.0/8 169.254.0.0/16 \
  4. 172.16.0.0/12 192.0.0.0/24 192.0.2.0/24 224.0.0.0/3 \
  5. 192.168.0.0/16 198.18.0.0/15 198.51.100.0/24 \
  6. wired = "re0"
  7. wifi = "rtwn0"
  8. table <martians> { 0.0.0.0/8 10.0.0.0/8 127.0.0.0/8 169.254.0.0/16 \
  9. 172.16.0.0/12 192.0.0.0/24 192.0.2.0/24 224.0.0.0/3 \
  10. 192.168.0.0/16 198.18.0.0/15 198.51.100.0/24 \
  11. 203.0.113.0/24 }
  12. set block-policy drop
  13. set loginterface egress
  14. set skip on lo0
  15. match in all scrub (no-df random-id max-mss 1440)
  16. antispoof quick for { egress $wired $wifi }
  17. block in quick on egress from <martians> to any
  18. block return out quick on egress from any to <martians>
  19. block all
  20. pass out quick inet
  21. pass in on { $wired $wifi } inet
  22. wired = "re0"
  23. wifi = "rtwn0"
  24. table <martians> { 0.0.0.0/8 10.0.0.0/8 127.0.0.0/8 169.254.0.0/16 \
  25. 172.16.0.0/12 192.0.0.0/24 192.0.2.0/24 224.0.0.0/3 \
  26. 192.168.0.0/16 198.18.0.0/15 198.51.100.0/24 \
  27. 203.0.113.0/24 }
  28. set block-policy drop
  29. set loginterface egress
  30. set skip on lo0
  31. match in all scrub (no-df random-id max-mss 1440)
  32. antispoof quick for { egress $wired $wifi }
  33. block in quick on egress from <martians> to any
  34. block return out quick on egress from any to <martians>
  35. block all
  36. pass out quick inet
  37. pass in on { $wired $wifi } inet
  38. 203.0.113.0/24 }
  39. set block-policy drop
  40. set loginterface egress
  41. set skip on lo0
  42. match in all scrub (no-df random-id max-mss 1440)
  43. antispoof quick for { egress $wired $wifi }
  44. block in quick on egress from <martians> to any
  45. block return out quick on egress from any to <martians>
  46. block all
  47. pass out quick inet
  48. pass in on { $wired $wifi } inet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement