root# show ## Last changed: 2016-09-22 11:24:56 UTC version 15.1X49-D60.7; system { host-name SRX210-SG; root-authentication { encrypted-password "$5$qUKEwJc.$giJNIObvweugtNkdP2hNgK9zd4Waa.6/FvJLj3loTX6"; ## SECRET-DATA } name-server { 208.67.222.222; 208.67.220.220; } services { ssh; telnet; xnm-clear-text; dhcp-local-server { group HOME-DHCP { interface irb.3; } } web-management { http { interface [ ge-0/0/1.0 ge-0/0/2.0 ge-0/0/3.0 ge-0/0/4.0 ge-0/0/5.0 irb.3]; } https { system-generated-certificate; interface [ ge-0/0/1.0 ge-0/0/2.0 ge-0/0/3.0 ge-0/0/4.0 ge-0/0/5.0 irb.3]; } } } 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; } } ntp { boot-server 202.83.106.177; server 211.233.84.186; server 202.65.114.202; } } security { ike { traceoptions { file IKE-LOG; flag all; } proposal Phase1-Proposal { authentication-method pre-shared-keys; dh-group group5; authentication-algorithm sha1; encryption-algorithm aes-128-cbc; lifetime-seconds 86400; } policy UK-IKE-Policy { mode aggressive; proposals Phase1-Proposal; pre-shared-key ascii-text "$9$z7j5FnCBIclvLSybsY4ZG9ApuRS"; ## SECRET-DATA } gateway SG-GW { ike-policy UK-IKE-Policy; dynamic hostname secure.abc.com; local-identity hostname secure.abc.com; external-interface ge-0/0/0.0; version v1-only; } } ipsec { traceoptions { flag all; } proposal Phase2-Proposal { protocol esp; authentication-algorithm hmac-sha1-96; encryption-algorithm aes-128-cbc; lifetime-seconds 3600; } policy UK-IPSEC-Policy { perfect-forward-secrecy { keys group5; } proposals Phase2-Proposal; } vpn UK-to-SG { bind-interface st0.0; ike { gateway SG-GW; ipsec-policy UK-IPSEC-Policy; } establish-tunnels immediately; } } address-book { global { address UKNET 172.16.1.0/24; address SGNET 10.10.10.0/24; } } flow { tcp-mss { ipsec-vpn { mss 1350; } } } 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; } } } } } } policies { from-zone trust to-zone trust { policy trust-to-trust { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone trust to-zone untrust { policy trust-to-untrust { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone trust to-zone vpn { policy SG-to-UK { match { source-address SGNET; destination-address UKNET; application any; } then { permit; } } } from-zone vpn to-zone trust { policy UK-to-SG { match { source-address UKNET; destination-address SGNET; application any; } then { permit; } } } } zones { security-zone trust { host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { irb.3; } } security-zone untrust { screen untrust-screen; host-inbound-traffic { system-services { ping; ssh; ike; } } interfaces { ge-0/0/0.0 { host-inbound-traffic { system-services { dhcp; ike; ping; https; ssh; } } } } } security-zone vpn { interfaces { st0.0 { host-inbound-traffic { system-services { ping; https; ike; ssh; } } } } } } } interfaces { ge-0/0/0 { description "Uplink to Internet"; unit 0 { family inet { dhcp-client { update-server; } } } } ge-0/0/1 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/2 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/3 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/4 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/5 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } irb { unit 3 { family inet { address 10.10.10.1/24; } } } st0 { unit 0 { family inet { address 10.10.11.1/30; } } } } routing-options { static { route 172.16.1.0/24 next-hop st0.0; } } protocols { l2-learning { global-mode switching; } } access { address-assignment { pool HOME-POOL { family inet { network 10.10.10.0/24; range HOME-RANGE { low 10.10.10.51; high 10.10.10.200; } dhcp-attributes { name-server { 208.67.222.222; 208.67.220.220; } router { 10.10.10.1; } } } } } } vlans { vlan-trust { vlan-id 3; l3-interface irb.3; } }