version 12.1X44-D30.4; system { host-name srx240; time-zone GMT-8; root-authentication { encrypted-password ""; ## SECRET-DATA } name-server { 10.14.0.5; 10.15.0.5; } name-resolution { no-resolve-on-input; } services { ssh; web-management { https { system-generated-certificate; interface vlan.1; } session { idle-timeout 60; } } } 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 { server us.ntp.pool.org; } } interfaces { ge-0/0/0 { unit 0 { family inet; } } ge-0/0/4 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } st0 { unit 0 { family inet; } } vlan { unit 1 { family inet { address 10.4.30.101/24; } } } } routing-options { static { route 0.0.0.0/0 next-hop 10.4.30.1; route 172.29.4.0/24 next-hop st0.0; } } protocols { stp; } security { ike { proposal shops { authentication-method pre-shared-keys; dh-group group2; authentication-algorithm sha1; encryption-algorithm aes-128-cbc; lifetime-seconds 28800; } policy shops { mode aggressive; proposals shops; pre-shared-key ascii-text ""; ## SECRET-DATA } gateway shops { ike-policy shops; dynamic hostname generic.shops; external-interface ge-0/0/0; } } ipsec { proposal shops { protocol esp; authentication-algorithm hmac-sha1-96; encryption-algorithm aes-128-cbc; lifetime-seconds 28800; } policy shops { perfect-forward-secrecy { keys group2; } proposals shops; } vpn shops { bind-interface st0.0; ike { gateway shops; ipsec-policy shops; } establish-tunnels immediately; } } policies { from-zone Trust to-zone Trust { policy Trust-to-Trust { match { source-address any; destination-address any; application any; } then { permit; } } } } zones { security-zone Trust { host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { ge-0/0/4.0; } } security-zone Untrust { address-book { address shops 172.29.0.0/16; } host-inbound-traffic { system-services { ike; } } interfaces { st0.0; } } } } vlans { vlan1 { vlan-id 3; l3-interface vlan.1; } }