system { 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; } } } } interfaces { ge-0/0/0 { unit 0 { family inet { 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$yXOrKWNdw4oZik4u217bsgZDHwsP5Qz6/"; ## 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.0/24; } remote-exceptions { 0.0.0.0/0; } ipsec-vpn dyn-vpn; user { shate; } } } } 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; } } } } rule-set trust-to-dmz { from zone trust; to zone dmz; rule dmz-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 trust to-zone dmz { policy default { match { source-address any; destination-address any; application any; } then { permit { tunnel { ipsec-vpn dyn-vpn; } } } } } 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; } } } } 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$RIISK8LxdLXN-w.PQF39Ujz69Cu08XxNwY.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; } } } } vlans { vlan-trust { vlan-id 3; l3-interface vlan.0; } }