Advertisement
TacticalDonut15

Untitled

Feb 24th, 2025
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. firewall {
  2. family inet {
  3. filter Protect-RE {
  4. term Permit-Loopback-All {
  5. from {
  6. source-address {
  7. 127.0.0.1/32;
  8. }
  9. }
  10. then accept;
  11. }
  12. term Permit-SSH {
  13. from {
  14. source-address {
  15. 10.10.10.0/24;
  16. 10.10.16.0/24;
  17. 10.20.10.0/24;
  18. 10.20.11.0/30;
  19. 10.34.16.0/23;
  20. 10.37.16.0/23;
  21. }
  22. protocol tcp;
  23. destination-port 22;
  24. }
  25. then accept;
  26. }
  27. term Permit-Telnet {
  28. from {
  29. source-address {
  30. 10.20.10.3/32;
  31. }
  32. protocol tcp;
  33. destination-port 23;
  34. }
  35. then {
  36. log;
  37. syslog;
  38. accept;
  39. }
  40. }
  41. term Permit-HTTPS {
  42. from {
  43. source-address {
  44. 10.20.10.0/24;
  45. 10.20.11.0/30;
  46. 10.34.16.0/23;
  47. 10.37.16.0/23;
  48. }
  49. protocol tcp;
  50. destination-port 443;
  51. }
  52. then accept;
  53. }
  54. term Permit-RADIUS {
  55. from {
  56. source-address {
  57. 10.20.11.0/30;
  58. }
  59. protocol udp;
  60. destination-port [ 1812 1813 ];
  61. }
  62. then accept;
  63. }
  64. term Permit-SNMP {
  65. from {
  66. source-address {
  67. 10.20.10.0/30;
  68. }
  69. protocol udp;
  70. destination-port [ 161 162 ];
  71. }
  72. then accept;
  73. }
  74. term Permit-NTP {
  75. from {
  76. source-address {
  77. 10.20.11.0/30;
  78. 132.163.96.0/30;
  79. }
  80. protocol udp;
  81. destination-port 123;
  82. }
  83. then accept;
  84. }
  85. term Permit-DNS {
  86. from {
  87. source-address {
  88. 10.20.11.0/30;
  89. }
  90. protocol udp;
  91. destination-port 53;
  92. }
  93. then accept;
  94. }
  95. term Permit-ICMP-Ping {
  96. from {
  97. source-address {
  98. 10.10.10.0/24;
  99. 10.10.16.0/24;
  100. 10.20.10.0/24;
  101. 10.20.11.0/30;
  102. 10.34.16.0/23;
  103. 10.37.16.0/23;
  104. }
  105. protocol icmp;
  106. icmp-type [ echo-reply echo-request ];
  107. }
  108. then accept;
  109. }
  110. term Permit-Syslog {
  111. from {
  112. source-address {
  113. 10.20.10.4/32;
  114. 10.20.10.9/32;
  115. }
  116. protocol udp;
  117. destination-port 514;
  118. }
  119. then accept;
  120. }
  121. term Default-Deny {
  122. then {
  123. count DEFAULT-DENY-COUNTER;
  124. log;
  125. syslog;
  126. discard;
  127. }
  128. }
  129. }
  130. }
  131. }
  132.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement