version 12.1X44-D30.4; system { host-name SRX210_FW0001; time-zone America/Los_Angeles; root-authentication { encrypted-password "*******************"; } name-server { 8.8.8.8; } name-resolution { no-resolve-on-input; } login { user mtcadmin { uid 2000; class super-user; authentication { encrypted-password "*******************"; } } } services { ssh; telnet; web-management { http { interface vlan.1; } https { system-generated-certificate; interface vlan.1; } session { idle-timeout 60; } } dhcp { default-lease-time 86400; name-server { 8.8.8.8; } pool 10.10.0.0/24 { address-range low 10.10.0.100 high 10.10.0.169; router { 10.10.0.254; } } } } 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 { description "###### EXTERNAL INTERFACE ######"; unit 0 { family inet { address 192.168.1.220/24; } } } ge-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 { description "###### INTERNAL INTERFACE ######"; unit 1 { family inet { address 10.10.0.254/24; } } } } routing-options { static { route 10.20.0.0/24 next-hop 10.10.0.220; route 0.0.0.0/0 next-hop 192.168.1.254; } } protocols { stp; } security { ike { policy ike_pol_dyn_vpn { mode aggressive; proposal-set standard; pre-shared-key ascii-text "*******************"; } gateway gw_dyn_vpn { ike-policy ike_pol_dyn_vpn; dynamic { hostname SRX210_FW0001; connections-limit 50; ike-user-type group-ike-id; } external-interface ge-0/0/0.0; xauth access-profile remote_access_profile; } } ipsec { policy ipsec_pol_dyn_vpn { perfect-forward-secrecy { keys group5; } proposal-set standard; } vpn my_dyn_vpn { ike { gateway gw_dyn_vpn; ipsec-policy ipsec_pol_dyn_vpn; } } } address-book { global { address SERVER 10.10.0.22/32; } } dynamic-vpn { access-profile remote_access_profile; clients { my-dyn-group { remote-protected-resources { 10.0.0.0/8; } remote-exceptions { 0.0.0.0/0; } ipsec-vpn my_dyn_vpn; user { myuser1; myuser2; } } } } flow { traceoptions { file flow-debug; flag basic-datapath; } } 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 POOL_HTTP { address 10.10.0.22/32 port 80; } rule-set HTTP_DSTNAT { from zone Internet; rule r1 { match { destination-address 192.168.1.220/32; destination-port 8080; } then { destination-nat pool POOL_HTTP; } } } } proxy-arp { interface vlan.1 { address { 10.30.0.100/32 to 10.30.0.101/32; } } } } policies { from-zone Internal to-zone Internet { policy All_Internal_Internet { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone Internal to-zone Internal { policy All_Internal_Internal { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone Internet to-zone Internal { policy policy_in_dyn_vpn { match { source-address any; destination-address any; application any; } then { permit { tunnel { ipsec-vpn my_dyn_vpn; } } } } policy p1 { match { source-address any; destination-address SERVER; application junos-http; } then { permit; } } } } zones { security-zone Internal { interfaces { vlan.1 { host-inbound-traffic { system-services { ping; dhcp; http; https; ssh; telnet; } } } } } security-zone Internet { interfaces { ge-0/0/0.0 { host-inbound-traffic { system-services { dhcp; ssh; ike; https; ping; } } } } } } } access { profile remote_access_profile { client myuser1 { firewall-user { password "*******************"; } } client myuser2 { firewall-user { password "*******************"; } } address-assignment { pool dyn-vpn-address-pool; } } address-assignment { pool dyn-vpn-address-pool { family inet { network 10.30.0.0/24; range range-vpn { low 10.30.0.100; high 10.30.0.101; } xauth-attributes { primary-dns 8.8.8.8/32; } } } } firewall-authentication { web-authentication { default-profile remote_access_profile; } } } vlans { vlan1 { vlan-id 3; l3-interface vlan.1; } }