## Last changed: 2015-06-18 12:44:53 EEST version 12.1X44-D35.5; system { host-name SRX100; time-zone Europe/Istanbul; root-authentication { encrypted-password "$1$jTUjYTt8$H/qXKRdM5lAVrtbZIE5xH1"; ## SECRET-DATA } name-server { 208.67.222.222; 208.67.220.220; } login { user vestek { uid 2000; class super-user; authentication { encrypted-password "$1$Fxu6eQAY$lghUsuXL4HfE9Evdlldeo/"; ##SECRET-DATA } } } services { ssh; telnet; web-management { http; https { system-generated-certificate; interface fe-0/0/0.0; } session { idle-timeout 60; } } } syslog { archive size 100k files 3; user * { any emergency; } file messages { any critical; authorization info; } file interactive-commands { interactive-commands error; } file kmd-logs { daemon info; match KMD; } } max-configurations-on-flash 5; max-configuration-rollbacks 5; license { autoupdate { url https://ae1.juniper.net/junos/key_retrieval; } } ntp { server 23.101.187.68; } } interfaces { fe-0/0/0 { unit 0 { family inet { address 192.168.1.50/24; } } } 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 inet { address 10.0.0.254/16; } } } vlan { unit 0 { family inet { dhcp; } } unit 1 { family inet { address 172.16.0.1/24; } } } } routing-options { static { route 0.0.0.0/0 next-hop 192.168.1.1; } } protocols { stp; } security { ike { traceoptions { file ike-debug; flag all; } policy ike-dyn-vpn-policy { mode aggressive; proposal-set standard; pre-shared-key ascii-text "$9$huzSKMLxNbYg"; ## SECRET-DATA } gateway dyn-vpn-local-gw { ike-policy ike-dyn-vpn-policy; dynamic { hostname dynvpn; connections-limit 10; ike-user-type group-ike-id; } local-identity inet 109.228.255.90; external-interface fe-0/0/0.0; xauth access-profile dyn-vpn-access-profile; } } ipsec { traceoptions { flag all; } 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-access-profile; clients { all { remote-protected-resources { 10.0.0.0/16; } remote-exceptions { 0.0.0.0/0; } ipsec-vpn dyn-vpn; user { vestektest; vestekvpn; } } } } 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 IPTV; 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; } } } } } } policies { from-zone IPTV to-zone Internet { policy All_IPTV_Internet { match { source-address IPTV; destination-address any; application any; } then { permit; } } } from-zone Internet to-zone IPTV { policy After_VPN { match { source-address 192.168.5.0/24; destination-address any; application any; } then { permit; } } policy dyn-vpn-policy { match { source-address any; destination-address any; application any; } then { permit { tunnel { ipsec-vpn dyn-vpn; } } } } } } zones { security-zone IPTV { address-book { address IPTV 10.0.0.0/16; address Server1 10.0.0.251/32; address Server2 10.0.0.252/32; address TestPC 10.0.0.100/32; address-set 10.0.0.0/16 { address IPTV; } address-set 10.0.0.251/32 { address Server1; } address-set 10.0.0.252/32 { address Server2; } address-set 10.0.0.100/32 { address TestPC; } } interfaces { vlan.1 { host-inbound-traffic { system-services { all; } protocols { all; } } } fe-0/0/7.0 { host-inbound-traffic { system-services { all; } protocols { all; } } } } } security-zone Internet { address-book { address VPN_IP_POOL 192.168.5.0/24; address-set 192.168.5.0/24 { address VPN_IP_POOL; } } interfaces { fe-0/0/0.0 { host-inbound-traffic { system-services { all; } protocols { all; } } } } } } } access { profile dyn-vpn-access-profile { client vestektest { firewall-user { password "$9$/5hF90IXxdw2adV.fTQn6ylK8-biHmPQn"; ## SECRET-DATA } } client vestekvpn { firewall-user { password "$9$xf67wgPfzn9pzFSlKvLXGDi.Q3REyrvL"; ## SECRET-DATA } } address-assignment { pool dyn-vpn-address-pool; } } address-assignment { pool dyn-vpn-address-pool { family inet { network 192.168.5.0/24; xauth-attributes { primary-dns 8.8.8.8/32; secondary-dns 8.8.4.4/32; } } } } firewall-authentication { web-authentication { default-profile dyn-vpn-access-profile; } } } applications { application RDP { protocol tcp; destination-port 3389; } application PPTP-VPN { protocol tcp; destination-port 1723; } } vlans { vlan1 { vlan-id 3; l3-interface vlan.1; } }