system { host-name srx240; time-zone Europe/London; root-authentication { encrypted-password "$1$lJAUo8.7$xadstF7Tt./DyPNq1"; ## SECRET-DATA } name-server { 8.8.8.8; 8.8.4.4; } login { retry-options { tries-before-disconnect 5; backoff-threshold 3; lockout-period 60; } user janitor { uid 2000; class super-user; authentication { encrypted-password "$1$CpuddbLjYqVvY/u3phKdK1"; ## SECRET-DATA } } } services { ssh; telnet; xnm-clear-text; web-management { http { interface vlan.0; } https { system-generated-certificate; interface vlan.0; } } dhcp { name-server { 8.8.8.8; 8.8.4.4; } pool 10.1.1.0/24 { address-range low 10.1.1.30 high 10.1.1.254; default-lease-time 3600; router { 10.1.1.1; } propagate-settings ge-0/0/0.0; } } } 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 15; license { autoupdate { url https://ae1.juniper.net/junos/key_retrieval; } } } interfaces { ge-0/0/0 { unit 0 { family inet { filter { input ntp-traffic-filter; } address 195.xx.xx.100/28; } } } 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; } } } } ge-0/0/6 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/7 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/8 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/9 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/10 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/11 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/12 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/13 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/14 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/15 { unit 0 { family inet { address 195.xx.xx.101/28; } } } vlan { unit 0 { family inet { address 10.1.1.1/24; } } } } routing-options { static { route 0.0.0.0/0 next-hop 195.xx.xx.97; } } protocols { stp; } security { ike { policy ike-dyn-vpn-policy { mode aggressive; proposal-set standard; pre-shared-key ascii-text "$9$yXOccck6CtuIRcSdbsgZDHwsP5Qz6/"; ## SECRET-DATA } gateway dyn-vpn-local-gw { ike-policy ike-dyn-vpn-policy; dynamic { hostname dynvpn; connections-limit 2; ike-user-type group-ike-id; } external-interface ge-0/0/15.0; xauth access-profile dyn-vpn-profile; } } ipsec { policy ipsec-dyn-vpn-policy { proposal-set standard; } vpn dyn-vpn { ike { gateway dyn-vpn-local-gw; ipsec-policy ipsec-dyn-vpn-policy; } } } dynamic-vpn { access-profile dyn-vpn-profile; clients { all { remote-protected-resources { 10.1.1.1/32; } remote-exceptions { 0.0.0.0/0; } ipsec-vpn dyn-vpn; user { shady; } } } } 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 untrust { policy default { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone dmz to-zone trust { policy default { match { source-address any; destination-address any; application any; } then { permit { tunnel { ipsec-vpn dyn-vpn; } } } } } from-zone dmz to-zone dmz { policy default { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone trust to-zone dmz { policy default { match { source-address any; destination-address any; application any; } then { permit; } } } } zones { security-zone trust { interfaces { vlan.0 { host-inbound-traffic { system-services { all; } protocols { all; } } } } } security-zone untrust { screen untrust-screen; interfaces { ge-0/0/0.0 { host-inbound-traffic { system-services { dhcp; ssh; ping; ntp; tftp; snmp; } } } } } security-zone dmz { interfaces { ge-0/0/15.0 { host-inbound-traffic { system-services { ike; ping; https; dhcp; } } } } } } } access { profile dyn-vpn-profile { client shady { firewall-user { password "$9$RIISK8LxdbdaaF39Ujz69Cu08XxNwY.PT"; ## SECRET-DATA } } address-assignment { pool dyn-vpn-address-pool; } } address-assignment { pool dyn-vpn-address-pool { family inet { network 10.10.10.1/30; range dyn-range { low 10.10.10.1; high 10.10.10.2; } xauth-attributes { primary-dns 8.8.8.8/32; } } } } firewall-authentication { web-authentication { default-profile dyn-vpn-profile; } } } routing-instances { VPN1 { instance-type virtual-router; interface ge-0/0/15.0; routing-options { static { route 0.0.0.0/0 next-hop 195.xx.xx.97; route 10.10.10.1/32 { next-hop 10.1.1.1; preference 1; } } } } } vlans { vlan-trust { vlan-id 3; l3-interface vlan.0; } }