Guest User

Untitled

a guest
Jul 17th, 2023
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.60 KB | None | 0 0
  1. ## Last commit: 2023-07-17 13:51:03 UTC by bob
  2. version 12.1X46-D50.4;
  3. groups {
  4. node0 {
  5. system {
  6. host-name srx210-A;
  7. }
  8. interfaces {
  9. fxp0 {
  10. unit 0 {
  11. family inet {
  12. address 192.168.1.2/24;
  13. }
  14. }
  15. }
  16. }
  17. }
  18. node1 {
  19. system {
  20. host-name srx210-B;
  21. }
  22. interfaces {
  23. fxp0 {
  24. unit 0 {
  25. family inet {
  26. address 192.168.1.3/24;
  27. }
  28. }
  29. }
  30. }
  31. }
  32. }
  33. apply-groups "${node}";
  34. system {
  35. root-authentication {
  36. encrypted-password "SECRET_HASH_OF_SECRETS"; ## SECRET-DATA
  37. }
  38. name-server {
  39. 8.8.8.8;
  40. 8.8.4.4;
  41. }
  42. login {
  43. user bob{
  44. uid 2001;
  45. class super-user;
  46. authentication {
  47. encrypted-password "SSSHHHHHH_ITS_A_SECRET"; ## SECA
  48. }
  49. }
  50. }
  51. services {
  52. ssh;
  53. xnm-clear-text;
  54. web-management {
  55. http {
  56. interface vlan.0;
  57. }
  58. https {
  59. system-generated-certificate;
  60. interface vlan.0;
  61. }
  62. }
  63. dhcp {
  64. router {
  65. 192.168.1.1;
  66. }
  67. pool 192.168.1.0/24 {
  68. address-range low 192.168.1.10 high 192.168.1.50;
  69. }
  70. propagate-settings reth1;
  71. }
  72. }
  73. syslog {
  74. archive size 100k files 3;
  75. user * {
  76. any emergency;
  77. }
  78. file messages {
  79. any critical;
  80. authorization info;
  81. }
  82. file interactive-commands {
  83. interactive-commands error;
  84. }
  85. }
  86. max-configurations-on-flash 5;
  87. max-configuration-rollbacks 5;
  88. license {
  89. autoupdate {
  90. url https://ae1.juniper.net/junos/key_retrieval;
  91. }
  92. }
  93. }
  94. chassis {
  95. cluster {
  96. reth-count 2;
  97. redundancy-group 0 {
  98. node 0 priority 100;
  99. node 1 priority 1;
  100. }
  101. redundancy-group 1 {
  102. node 0 priority 100;
  103. node 1 priority 1;
  104. interface-monitor {
  105. ge-0/0/0 weight 255;
  106. fe-0/0/2 weight 255;
  107. ge-2/0/0 weight 255;
  108. fe-2/0/2 weight 255;
  109. }
  110. }
  111. }
  112. }
  113. interfaces {
  114. ge-0/0/0 {
  115. gigether-options {
  116. redundant-parent reth0;
  117. }
  118. }
  119. fe-0/0/2 {
  120. fastether-options {
  121. redundant-parent reth1;
  122. }
  123. }
  124. ge-2/0/0 {
  125. gigether-options {
  126. redundant-parent reth0;
  127. }
  128. }
  129. fe-2/0/2 {
  130. fastether-options {
  131. redundant-parent reth1;
  132. }
  133. }
  134. fab0 {
  135. fabric-options {
  136. member-interfaces {
  137. ge-0/0/1;
  138. }
  139. }
  140. }
  141. fab1 {
  142. fabric-options {
  143. member-interfaces {
  144. ge-2/0/1;
  145. }
  146. }
  147. }
  148. reth0 {
  149. redundant-ether-options {
  150. redundancy-group 1;
  151. }
  152. unit 0 {
  153. family inet {
  154. address WAN_ADDRESS/NM;
  155. }
  156. }
  157. }
  158. reth1 {
  159. redundant-ether-options {
  160. redundancy-group 1;
  161. }
  162. unit 0 {
  163. family inet {
  164. address 192.168.1.1/24;
  165. }
  166. }
  167. }
  168. }
  169. routing-options {
  170. static {
  171. route 0.0.0.0/0 next-hop WAN_DEFAULT_GW;
  172. }
  173. }
  174. protocols {
  175. stp;
  176. }
  177. security {
  178. screen {
  179. ids-option untrust-screen {
  180. icmp {
  181. ping-death;
  182. }
  183. ip {
  184. source-route-option;
  185. tear-drop;
  186. }
  187. tcp {
  188. syn-flood {
  189. alarm-threshold 1024;
  190. attack-threshold 200;
  191. source-threshold 1024;
  192. destination-threshold 2048;
  193. timeout 20;
  194. }
  195. land;
  196. }
  197. }
  198. }
  199. nat {
  200. source {
  201. rule-set trust-to-untrust {
  202. from zone trust;
  203. to zone untrust;
  204. rule source-nat-rule {
  205. match {
  206. source-address 0.0.0.0/0;
  207. }
  208. then {
  209. source-nat {
  210. interface;
  211. }
  212. }
  213. }
  214. }
  215. }
  216. }
  217. policies {
  218. from-zone trust to-zone untrust {
  219. policy trust-to-untrust {
  220. match {
  221. source-address any;
  222. destination-address any;
  223. application any;
  224. }
  225. then {
  226. permit;
  227. }
  228. }
  229. }
  230. }
  231. zones {
  232. security-zone trust {
  233. host-inbound-traffic {
  234. system-services {
  235. all;
  236. }
  237. protocols {
  238. all;
  239. }
  240. }
  241. interfaces {
  242. reth1.0;
  243. }
  244. }
  245. security-zone untrust {
  246. screen untrust-screen;
  247. interfaces {
  248. reth0.0;
  249. }
  250. }
  251. }
  252. }
  253.  
Advertisement
Add Comment
Please, Sign In to add comment