version 12.1X44.5; system { services { ssh; telnet; web-management { http { interface [ vlan.1 fe-0/0/0.0 ]; } https { system-generated-certificate; interface [ fe-0/0/0.0 vlan.1 ]; } session { idle-timeout 60; } } dhcp { pool 192.168.0.0/24 { address-range low 192.168.0.3 high 192.168.0.254; name-server { 192.168.0.6; 192.168.0.5; } router { 192.168.0.2; } } } } 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 { fe-0/0/0 { unit 0 { family inet { address x.x.x.x/30; address y.y.y.y/29; } } } fe-0/0/1 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } fe-0/0/2 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } fe-0/0/3 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } fe-0/0/4 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } fe-0/0/5 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } fe-0/0/6 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } fe-0/0/7 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } vlan { unit 1 { family inet { address 192.168.0.2/24; } } } } routing-options { static { route 0.0.0.0/0 next-hop x.x.x.x; } } protocols { stp; } security { ike { policy ike_pol_wizard_dyn_vpn { mode aggressive; proposal-set compatible; pre-shared-key ascii-text "z"; ## SECRET-DATA } gateway gw_wizard_dyn_vpn { ike-policy ike_pol_wizard_dyn_vpn; dynamic { hostname SRX100; connections-limit 2; ike-user-type group-ike-id; } external-interface fe-0/0/0.0; xauth access-profile remote_access_profile; } } ipsec { policy ipsec_pol_wizard_dyn_vpn { proposal-set compatible; } vpn wizard_dyn_vpn { ike { gateway gw_wizard_dyn_vpn; ipsec-policy ipsec_pol_wizard_dyn_vpn; } } } dynamic-vpn { access-profile remote_access_profile; clients { wizard-dyn-group { remote-protected-resources { 192.168.0.0/24; } ipsec-vpn wizard_dyn_vpn; user { admin; } } } } 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 nsw_srcnat { from zone Internal; 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 SQL03port80 { description "port 80 on sql03"; address 192.168.0.8/32 port 80; } pool SQL03port443 { description "Port 443 on SQL03"; address 192.168.0.8/32 port 443; } } static { rule-set InternetStatic { description "Static Nat"; from zone Internet; rule SQL03 { description "Static Nat for SQl03"; match { destination-address y.y.y.y/32; } then { static-nat { prefix { 192.168.0.8/32; } } } } rule StaticCamera { description "Static NAT for Camera System"; match { destination-address y.y.y.y/32; } then { static-nat { prefix { 192.168.0.7/32; } } } } } } } policies { from-zone Internet to-zone Internal { policy policy_in_wizard_dyn_vpn { match { source-address any; destination-address any; application any; } then { permit { tunnel { ipsec-vpn wizard_dyn_vpn; } } } } } from-zone Internal to-zone Internet { policy All_Internal_Internet { match { source-address any; destination-address any; application any; } then { permit; } } } } zones { security-zone Internal { interfaces { vlan.1 { host-inbound-traffic { system-services { all; ping; dhcp; http; https; ssh; telnet; } } } } } security-zone Internet { host-inbound-traffic { system-services { all; ike; https; http; } } interfaces { fe-0/0/0.0 { host-inbound-traffic { system-services { http; https; ike; } } } } } } } access { profile remote_access_profile { client admin { firewall-user { password "z"; ## SECRET-DATA } } address-assignment { pool dyn-vpn-address-pool; } } address-assignment { pool dyn-vpn-address-pool { family inet { network 192.168.1.0/29; xauth-attributes { primary-dns 192.168.0.6/32; } } } } firewall-authentication { web-authentication { default-profile remote_access_profile; } } } vlans { vlan1 { vlan-id 3; l3-interface vlan.1; } }