Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root# show
- ## Last changed: 2018-08-13 09:36:07 UTC
- version 11.4R6.6;
- system {
- root-authentication {
- encrypted-password "****"; ## SECRET-DATA
- }
- name-server {
- ***.**.***.***;
- ***.**.***.***;
- }
- login {
- user **** {
- uid ****;
- class super-user;
- authentication {
- encrypted-password "****"; ## SECRET-DATA
- }
- }
- }
- services {
- ssh;
- telnet;
- xnm-clear-text;
- dhcp-local-server {
- ##
- ## Warning: configuration block ignored: unsupported platform (srx220h-poe)
- ##
- group INT_DHCP {
- interface vlan.12;
- }
- ##
- ## Warning: configuration block ignored: unsupported platform (srx220h-poe)
- ##
- group MAN_DHCP {
- interface vlan.15;
- }
- ##
- ## Warning: configuration block ignored: unsupported platform (srx220h-poe)
- ##
- group IOT_DHCP {
- interface vlan.4;
- }
- ##
- ## Warning: configuration block ignored: unsupported platform (srx220h-poe)
- ##
- group GST_DHCP {
- interface vlan.30;
- }
- }
- web-management {
- http {
- interface vlan.0;
- }
- https {
- system-generated-certificate;
- interface vlan.0;
- }
- }
- dhcp {
- router {
- 192.168.1.1;
- }
- pool 192.168.1.0/24 {
- address-range low 192.168.1.2 high 192.168.1.254;
- }
- propagate-settings ge-0/0/0.0;
- }
- }
- syslog {
- archive size 100k files 3;
- user * {
- any emergency;
- }
- file messages {
- any critical;
- authorization info;
- }
- file interactive-commands {
- interactive-commands error;
- }
- }
- max-configurations-on-flash 5;
- max-configuration-rollbacks 5;
- license {
- autoupdate {
- url https://ae1.juniper.net/junos/key_retrieval;
- }
- }
- }
- interfaces {
- ge-0/0/0 {
- unit 0 {
- family inet {
- dhcp;
- }
- }
- }
- ge-0/0/2 {
- vlan-tagging;
- unit 0;
- unit 15 {
- vlan-id 15;
- family inet;
- }
- }
- ge-0/0/6 {
- unit 0 {
- family ethernet-switching {
- port-mode trunk;
- vlan {
- members [ v12 v15 v4 v30 ];
- }
- native-vlan-id v15;
- }
- }
- }
- vlan {
- unit 0 {
- family inet {
- address 192.168.1.1/24;
- }
- }
- unit 4 {
- family inet {
- address 192.168.4.1/24;
- }
- }
- unit 15 {
- family inet {
- address 192.168.15.1/24;
- }
- }
- unit 30 {
- family inet {
- address 192.168.30.1/24;
- }
- }
- unit 12 {
- family inet {
- address 192.168.12.1/24;
- }
- }
- }
- }
- protocols {
- stp;
- }
- security {
- address-book {
- INT_SUBNET {
- address 192.168.12.0/24 192.168.12.0/24;
- attach {
- zone INT;
- }
- }
- MAN_SUBNET {
- address 192.168.15.0/24 192.168.15.0/24;
- attach {
- zone MAN;
- }
- }
- IOT_SUBNET {
- address 192.168.4.0/24 192.168.4.0/24;
- attach {
- zone IOT;
- }
- }
- GST_SUBNET {
- address 192.168.30.0/24 192.168.30.0/24;
- attach {
- zone GST;
- }
- }
- }
- screen {
- ids-option untrust-screen {
- icmp {
- ping-death;
- }
- ip {
- source-route-option;
- tear-drop;
- }
- tcp {
- syn-flood {
- alarm-threshold 1024;
- attack-threshold 200;
- source-threshold 1024;
- destination-threshold 2048;
- timeout 20;
- }
- land;
- }
- }
- }
- nat {
- source {
- rule-set trust-to-untrust {
- from zone trust;
- to zone untrust;
- rule source-nat-rule {
- match {
- source-address 0.0.0.0/0;
- }
- then {
- source-nat {
- interface;
- }
- }
- }
- }
- rule-set NAT {
- from zone [ GST INT IOT MAN ];
- to zone EXT;
- rule PAT {
- match {
- source-address [ 192.168.12.0/24 192.168.15.0/24 192.168.4.0/24 192.168.30.0/24 ];
- destination-address 0.0.0.0/0;
- }
- then {
- source-nat {
- interface;
- }
- }
- }
- }
- }
- }
- policies {
- from-zone trust to-zone untrust {
- policy trust-to-untrust {
- match {
- source-address any;
- destination-address any;
- application any;
- }
- then {
- permit;
- }
- }
- }
- from-zone INT to-zone EXT {
- policy INT-EXT {
- match {
- source-address 192.168.12.0/24;
- destination-address any;
- application any;
- }
- then {
- permit;
- log {
- session-close;
- }
- }
- }
- }
- from-zone INT to-zone INT {
- policy INTRA_INT {
- match {
- source-address 192.168.12.0/24;
- destination-address 192.168.12.0/24;
- application any;
- }
- then {
- permit;
- }
- }
- }
- from-zone INT to-zone IOT {
- policy INT-IOT {
- match {
- source-address 192.168.12.0/24;
- destination-address 192.168.4.0/24;
- application any;
- }
- then {
- permit;
- }
- }
- }
- from-zone IOT to-zone EXT {
- policy IOT-EXT {
- match {
- source-address 192.168.4.0/24;
- destination-address any;
- application any;
- }
- then {
- permit;
- log {
- session-close;
- }
- }
- }
- }
- from-zone MAN to-zone MAN {
- policy INTRA_MAN {
- match {
- source-address 192.168.15.0/24;
- destination-address 192.168.15.0/24;
- application any;
- }
- then {
- permit;
- }
- }
- }
- from-zone MAN to-zone EXT {
- policy MAN-EXT {
- match {
- source-address 192.168.15.0/24;
- destination-address any;
- application any;
- }
- then {
- permit;
- log {
- session-close;
- }
- }
- }
- }
- from-zone GST to-zone EXT {
- policy GST-EXT {
- match {
- source-address 192.168.30.0/24;
- destination-address any;
- application any;
- }
- then {
- permit;
- log {
- session-close;
- }
- }
- }
- }
- }
- zones {
- security-zone trust {
- host-inbound-traffic {
- system-services {
- all;
- }
- protocols {
- all;
- }
- }
- interfaces {
- vlan.0;
- }
- }
- security-zone untrust {
- screen untrust-screen;
- interfaces {
- ge-0/0/0.0 {
- host-inbound-traffic {
- system-services {
- dhcp;
- tftp;
- }
- }
- }
- }
- }
- security-zone EXT {
- interfaces {
- ge-0/0/0.0 {
- host-inbound-traffic {
- system-services {
- dhcp;
- ping;
- traceroute;
- }
- }
- }
- }
- }
- security-zone INT {
- interfaces {
- vlan.12 {
- host-inbound-traffic {
- system-services {
- dhcp;
- ping;
- traceroute;
- }
- }
- }
- }
- }
- security-zone MAN {
- interfaces {
- vlan.15 {
- host-inbound-traffic {
- system-services {
- dhcp;
- ssh;
- ping;
- traceroute;
- }
- }
- }
- }
- }
- security-zone IOT {
- interfaces {
- vlan.4 {
- host-inbound-traffic {
- system-services {
- dhcp;
- ping;
- traceroute;
- }
- }
- }
- }
- }
- security-zone GST {
- interfaces {
- vlan.30 {
- host-inbound-traffic {
- system-services {
- dhcp;
- ping;
- traceroute;
- }
- }
- }
- }
- }
- }
- }
- access {
- address-assignment {
- pool INT_DHCP_POOL {
- family inet {
- network 192.168.12.0/24;
- range INT_DHCP_RANGE {
- low 192.168.12.20;
- high 192.168.12.200;
- }
- dhcp-attributes {
- name-server {
- 1.1.1.1;
- }
- router {
- 192.168.12.1;
- }
- }
- }
- }
- pool IOT_DHCP_POOL {
- family inet {
- network 192.168.4.0/24;
- range DMZ_DHCP_RANGE {
- low 192.168.4.20;
- high 192.168.4.200;
- }
- dhcp-attributes {
- name-server {
- 1.1.1.1;
- }
- router {
- 192.168.4.1;
- }
- }
- }
- }
- pool GST_DHCP_POOL {
- family inet {
- network 192.168.30.0/24;
- range DMZ_DHCP_RANGE {
- low 192.168.30.20;
- high 192.168.30.200;
- }
- dhcp-attributes {
- name-server {
- 1.1.1.1;
- }
- router {
- 192.168.30.1;
- }
- }
- }
- }
- }
- }
- poe {
- interface all;
- }
- vlans {
- v15 {
- description MANAGEMENT;
- vlan-id 15;
- l3-interface vlan.15;
- }
- v30 {
- description GUEST;
- vlan-id 30;
- l3-interface vlan.30;
- }
- v4 {
- description IOT;
- vlan-id 4;
- l3-interface vlan.4;
- }
- v12 {
- description INTERNAL;
- vlan-id 12;
- l3-interface vlan.12;
- }
- vlan-trust {
- vlan-id 3;
- l3-interface vlan.0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement