## Last commit: 2014-07-26 10:57:43 EEST by hay version 12.1X44.4; system { host-name srx-hay; time-zone Europe/Bucharest; root-authentication { encrypted-password [...] } name-server { 172.20.20.1; } login { user hay { uid 2001; class super-user; authentication { encrypted-password [...] } } } services { ssh; xnm-clear-text; web-management { http { interface [ vlan.0 vlan.1 ]; } https { system-generated-certificate; interface [ vlan.0 fe-0/0/0.0 ]; } } dhcp { router { 192.168.13.1; } pool 192.168.13.0/24 { address-range low 192.168.13.2 high 192.168.13.4; propagate-settings vlan.1; } } } 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 { boot-server 194.102.255.19; server 194.102.255.19 version 4 prefer; server 193.230.240.22 version 4; } } interfaces { fe-0/0/0 { unit 0 { family inet { address 172.20.20.2/16; } } } fe-0/0/1 { unit 0 { family ethernet-switching { vlan { members vlan-left; } } } } fe-0/0/2 { unit 0 { family ethernet-switching { vlan { members vlan-left; } } } } fe-0/0/3 { unit 0 { family ethernet-switching { vlan { members vlan-left; } } } } fe-0/0/4 { unit 0 { family ethernet-switching { vlan { members vlan-mid; } } } } fe-0/0/5 { unit 0 { family ethernet-switching { vlan { members vlan-mid; } } } } fe-0/0/6 { unit 0 { family ethernet-switching { vlan { members vlan-right; } } } } fe-0/0/7 { unit 0 { family ethernet-switching { vlan { members vlan-right; } } } } vlan { unit 0 { description Senior; family inet { address 192.168.0.1/24; } } unit 1 { description Management; family inet { address 192.168.13.1/24; } } unit 2 { description Others; family inet { address 192.168.100.1/24; } } } } routing-options { static { route 0.0.0.0/0 next-hop 172.20.20.1; } } protocols { stp; } security { key-protection; ike { respond-bad-spi 5; policy ike_pol_wizard_dyn_vpn { mode aggressive; proposal-set standard; pre-shared-key ascii-text [...] } gateway gw_wizard_dyn_vpn { ike-policy ike_pol_wizard_dyn_vpn; address 195.234.177.218; external-interface fe-0/0/0.0; xauth access-profile remote_access_profile; general-ikeid; } } ipsec { vpn-monitor-options { interval 10; threshold 10; } policy ipsec_pol_wizard_dyn_vpn { proposal-set standard; } 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; } remote-exceptions { 0.0.0.0/0; } ipsec-vpn wizard_dyn_vpn; user { hayv; } } } } 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; } } } } } destination { pool wifi { address 192.168.0.5/32 port 80; } pool WOL { address 192.168.0.2/32 port 9; } pool intern-ssl { address 192.168.0.2/32 port 443; } pool intern-http { address 192.168.0.2/32 port 80; } pool intern-ssh { address 192.168.0.2/32 port 22; } rule-set untrust-to-trust { from zone untrust; rule DN1 { match { destination-address 172.20.20.2/32; destination-port 10800; } then { destination-nat pool wifi; } } rule DN2 { match { destination-address 172.20.20.2/32; destination-port 9; } then { destination-nat pool WOL; } } rule DN3 { match { destination-address 172.20.20.2/32; destination-port 10443; } then { destination-nat pool intern-ssl; } } rule DN4 { match { destination-address 172.20.20.2/32; destination-port 80; } then { destination-nat pool intern-http; } } rule DN5 { match { destination-address 172.20.20.2/32; destination-port 10022; } then { destination-nat pool intern-ssh; } } } } } policies { from-zone trust to-zone untrust { policy trust-to-untrust { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone untrust to-zone trust { policy policy_in_wizard_dyn_vpn { match { source-address any; destination-address any; application any; } then { permit { tunnel { ipsec-vpn wizard_dyn_vpn; } } } } } } zones { security-zone trust { host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { vlan.0; vlan.1; vlan.2; } } security-zone untrust { screen untrust-screen; interfaces { fe-0/0/0.0 { host-inbound-traffic { system-services { tftp; ssh; dhcp; ping; https; ike; } } } } } } } access { profile remote_access_profile { client hayv { firewall-user { password [...] } } address-assignment { pool dyn-vpn-address-pool; } } address-assignment { pool dyn-vpn-address-pool { family inet { network 10.1.0.0/22; } } } firewall-authentication { web-authentication { default-profile remote_access_profile; } } } vlans { vlan-left { vlan-id 3; l3-interface vlan.0; } vlan-mid { vlan-id 5; l3-interface vlan.2; } vlan-right { vlan-id 4; l3-interface vlan.1; } }