## Last changed: 2015-12-30 11:28:01 GMT-8 version 12.1X46-D40.2; system { host-name srx240; time-zone GMT-8; root-authentication { encrypted-password "$"; } name-server { 8.8.8.8; 8.8.4.4; 208.67.222.222; 208.67.220.220; } name-resolution { no-resolve-on-input; } services { ssh; web-management { https { system-generated-certificate; interface vlan.1; } session { idle-timeout 60; } } dhcp { maximum-lease-time 86400; default-lease-time 86400; name-server { 8.8.8.8; 8.8.4.4; } router { 192.168.25.1; } pool 192.168.25.0/24 { address-range low 192.168.25.220 high 192.168.25.239; } } } 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 { address 206.72.100.34/27; } } } ge-0/0/1 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } ge-0/0/2 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } ge-0/0/3 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } ge-0/0/4 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } ge-0/0/5 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } ge-0/0/6 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } ge-0/0/7 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } st0 { unit 0 { family inet { address 192.168.26.1/24; } family inet6; } } vlan { unit 1 { family inet { address 192.168.25.1/24; } } } } routing-options { static { route 0.0.0.0/0 next-hop 206.72.100.33; route 10.25.0.0/22 next-hop st0.0; } } protocols { stp; } security { ike { proposal MIFHQ { authentication-method pre-shared-keys; dh-group group2; authentication-algorithm sha1; encryption-algorithm aes-128-cbc; } policy ike_policy_startup_rvpn { mode aggressive; proposal-set standard; pre-shared-key ascii-text "$9$vjTM7Vs2aZjq-VgJGjf5"; } policy MIFHQ { mode main; proposals MIFHQ; pre-shared-key ascii-text "$9$7cNs4HkmTF/k.hyeKx7.PfQF6B1EyeWRE4JGD.mhcyKX7Vb24ZjLxDi.PF3"; } gateway gw_startup_rvpn { ike-policy ike_policy_startup_rvpn; dynamic { hostname SRX-GW; connections-limit 50; ike-user-type group-ike-id; } external-interface ge-0/0/0.0; xauth access-profile remote_access_profile; } gateway MIFHQ { ike-policy ike_policy_startup_rvpn; address 206.72.100.34; local-identity inet 206.72.100.34; external-interface ge-0/0/0.0; } } ipsec { proposal dynamicvpn { protocol esp; } proposal ipsec-phase2-proposal { protocol esp; authentication-algorithm hmac-sha-256-128; encryption-algorithm aes-128-cbc; } policy ipsec_pol_startup_rvpn { perfect-forward-secrecy { keys group2; } proposal-set standard; } policy ipsec-phase2-policy { perfect-forward-secrecy { keys group2; } proposals ipsec-phase2-proposal; } vpn startup_rvpn { ike { gateway gw_startup_rvpn; ipsec-policy ipsec_pol_startup_rvpn; } } vpn ike-vpn-mifhq { bind-interface st0.0; ike { gateway MIFHQ; ipsec-policy ipsec-phase2-policy; } } } dynamic-vpn { access-profile remote_access_profile; clients { startup_rvpn_group { remote-protected-resources { 192.168.25.0/24; } ipsec-vpn startup_rvpn; user { jjones; jstacy; } } } } 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 { pool beta-pool { address { 206.72.100.42/32; } } pool production-pool { address { 206.72.100.43/32; } } rule-set nsw_srcnat { from zone trust; to zone Internet; rule nsw-src-interface { match { source-address 0.0.0.0/0; destination-address 0.0.0.0/0; } then { source-nat { interface; } } } } } destination { pool waf1-trust { address 192.168.25.2/32; } pool waf2-trust { address 192.168.25.3/32; } pool production-trust { address 192.168.25.10/32; } pool master-trust { address 192.168.25.16/32; } pool beta-pool { address 192.168.25.14/32; } } static { rule-set production-nat { from zone Internet; rule production { match { destination-address 206.72.100.43/32; } then { static-nat { prefix { 192.168.25.10/32; } } } } rule beta { match { destination-address 206.72.100.42/32; } then { static-nat { prefix { 192.168.25.14/32; } } } } rule master { match { destination-address 206.72.100.60/32; } then { static-nat { prefix { 192.168.25.16/32; } } } } } } proxy-arp { interface ge-0/0/0.0 { address { 206.72.100.35/32 to 206.72.100.62/32; } } } } policies { from-zone Internet to-zone trust { policy production-http { match { source-address any; destination-address [ production-trust waf1-trust ]; application [ junos-http junos-https junos-ping ]; } then { permit; } } policy beta-http { match { source-address any; destination-address beta-trust; application [ junos-http junos-https junos-ping ]; } then { permit; } } policy beta-ftp { match { source-address any; destination-address beta-trust; application junos-ftp; } then { permit; } } policy master { match { source-address any; destination-address master-trust; application [ junos-ping rdp junos-https ]; } then { permit; } } policy policy_startup_rvpn_trust { match { source-address any; destination-address any; application any; } then { permit { tunnel { ipsec-vpn startup_rvpn; } } } } } from-zone trust to-zone Internet { policy All_trust_Internet { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone trust to-zone vpn-mifhq { policy vpn-tr-mif { match { source-address sterling; destination-address mifhq; application any; } then { permit; } } } from-zone vpn-mifhq to-zone trust { policy vpn-mif-tr { match { source-address mifhq; destination-address sterling; application any; } then { permit; } } } } zones { security-zone trust { address-book { address production-trust 192.168.25.10/32; address beta-trust 192.168.25.14/32; address waf1-trust 192.168.25.2/32; address waf2-trust 192.168.25.3/32; address master-trust 192.168.25.16/32; address sterling 192.168.25.0/24; } interfaces { vlan.1 { host-inbound-traffic { system-services { ping; https; ssh; } } } } } security-zone Internet { address-book { address production-internet 206.72.100.43/32; address beta-internet 206.72.100.42/32; } interfaces { ge-0/0/0.0 { host-inbound-traffic { system-services { https; ike; ping; } } } } } security-zone vpn-mifhq { address-book { address mifhq 10.25.0.0/22; } interfaces { st0.0; } } } } access { profile remote_access_profile { client jjones { firewall-user { password "$"; } } client jstacy { firewall-user { password "$"; } } address-assignment { pool startup_rvpn_add_pool; } } address-assignment { pool startup_rvpn_add_pool { family inet { network 192.168.25.0/24; range startup-rvpn-range { low 192.168.25.240; high 192.168.25.250; } } } } firewall-authentication { web-authentication { default-profile remote_access_profile; } } } applications { application nsw-File_Transfer_Internet_trust_1_ssh { term 115-term protocol tcp destination-port 115; term 22-term protocol tcp destination-port 22; } application rdp { protocol tcp; destination-port 3389; } } vlans { vlan1 { vlan-id 3; l3-interface vlan.1; } }