## Last commit: 2012-04-03 18:35:51 ICT by root version 10.4R4.5; system { host-name JUN-SRX240-1; time-zone Asia/Saigon; root-authentication { encrypted-password "$1$DevAO8ml$043jvPVXbABbb9Sx/uaPB/"; ## SECRET-DATA } name-server { 208.67.222.222; 208.67.220.220; } services { ssh; telnet; xnm-clear-text; web-management { https { system-generated-certificate; interface [ vlan.0 vlan.20 vlan.30 vlan.100 pp0.0 ]; } } dhcp { router { 192.168.1.1; } pool 172.16.20.0/24 { address-range low 172.16.20.150 high 172.16.20.200; name-server { 8.8.8.8; } router { 172.16.20.1; } propagate-settings vlan.20; } pool 172.16.30.0/24 { address-range low 172.16.30.150 high 172.16.30.200; name-server { 8.8.8.8; } router { 172.16.30.1; } propagate-settings vlan.30; } 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 49; license { autoupdate { url https://ae1.juniper.net/junos/key_retrieval; } } ntp { server 67.18.187.111; } } chassis { aggregated-devices { ethernet { device-count 2; } } } interfaces { traceoptions { file interfaces.txt size 1m files 5; flag change-events; } ge-0/0/0 { unit 0 { encapsulation ppp-over-ether; } } ge-0/0/1 { unit 0 { family ethernet-switching { port-mode trunk; vlan { members [ mgmt server wireless ]; } } } } ge-0/0/2 { gigether-options { 802.3ad ae0; } inactive: unit 0 { family ethernet-switching; } } ge-0/0/3 { gigether-options { 802.3ad ae0; } inactive: unit 0 { family ethernet-switching; } } ge-0/0/4 { unit 0 { family ethernet-switching { vlan { members server; } } } } ge-0/0/5 { unit 0 { family ethernet-switching { vlan { members server; } } } } ge-0/0/6 { unit 0 { family ethernet-switching { vlan { members server; } } } } ge-0/0/7 { unit 0 { family ethernet-switching { vlan { members server; } } } } ge-0/0/8 { unit 0 { family ethernet-switching { vlan { members mgmt; } } } } ge-0/0/9 { unit 0 { family ethernet-switching { vlan { members mgmt; } } } } ge-0/0/10 { unit 0 { family ethernet-switching { port-mode access; vlan { members mgmt; } } } } ge-0/0/11 { unit 0 { family ethernet-switching { vlan { members mgmt; } } } } ge-0/0/12 { unit 0 { family ethernet-switching { vlan { members wireless; } } } } ge-0/0/13 { unit 0 { family ethernet-switching { vlan { members wireless; } } } } ge-0/0/14 { unit 0 { family ethernet-switching; } } ge-0/0/15 { unit 0; } ae0 { aggregated-ether-options { lacp { active; } } unit 0 { family ethernet-switching { port-mode trunk; vlan { members [ server wireless mgmt ]; } } } } pp0 { unit 0 { ppp-options { pap { access-profile ppp; local-name cty-avnet74; local-password "$9$.PQntpByrvfTSeMXbwHqmfFn"; ## SECRET-DATA passive; } } pppoe-options { underlying-interface ge-0/0/0.0; auto-reconnect 30; client; } family inet { mtu 1492; negotiate-address; } } } vlan { unit 0 { family inet { address 172.16.1.122/24; } } unit 20 { family inet { address 172.16.20.1/24; } } unit 30 { family inet { address 172.16.30.1/24; } } unit 100 { family inet { address 172.16.100.1/24; } } } } routing-options { static { route 0.0.0.0/0 next-hop pp0.0; route 10.10.10.0/24 next-hop 172.16.20.1; } } protocols { stp; } security { ike { proposal ike-dyn-prop1 { authentication-method pre-shared-keys; dh-group group2; authentication-algorithm md5; encryption-algorithm 3des-cbc; } policy ike-dyn-pol1 { mode aggressive; proposals ike-dyn-prop1; pre-shared-key ascii-text "$9$Hq.569pRhrfThrKM7NGUj"; ## SECRET-DATA } gateway gw-dyn-1 { ike-policy ike-dyn-pol1; dynamic { hostname sic.local; connections-limit 2; } external-interface pp0.0; xauth access-profile dyn-vpn-prof1; } } ipsec { proposal dyn-prop-ph2 { protocol esp; authentication-algorithm hmac-sha1-96; encryption-algorithm aes-128-cbc; } policy ipsec-dyn-pol { perfect-forward-secrecy { keys group2; } proposals dyn-prop-ph2; } vpn vpn-dyn { ike { gateway gw-dyn-1; ipsec-policy ipsec-dyn-pol; } } } 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 wireless_to_internet { from zone wireless; to zone untrust; rule to_internet { match { source-address 0.0.0.0/0; destination-address 0.0.0.0/0; } then { source-nat { interface; } } } } rule-set mgmt-to-NTP-server { from zone mgmt; to zone untrust; rule to-internet { match { source-address 0.0.0.0/0; destination-address 0.0.0.0/0; } then { source-nat { interface; } } } } rule-set trust-untrust { from zone trust; to interface pp0.0; rule Egress-Int { match { source-address 0.0.0.0/0; destination-address 0.0.0.0/0; } then { source-nat { interface; } } } } } proxy-arp { interface vlan.20 { address { 172.16.20.20/32 to 172.16.20.40/32; } } } } 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; } } } zones { security-zone trust { host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { vlan.0; vlan.20; } } security-zone untrust { screen untrust-screen; host-inbound-traffic { system-services { http; https; ike; } } interfaces { ge-0/0/0.0 { host-inbound-traffic { system-services { dhcp; tftp; } } } pp0.0; } } security-zone wireless { host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { vlan.30; } } security-zone mgmt { host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { vlan.100 { host-inbound-traffic { system-services { all; } protocols { all; } } } } } security-zone dyn-vpn; } policies { from-zone trust to-zone untrust { policy trust-to-untrust { match { source-address any; destination-address any; application any; } then { permit; } } policy allow_all { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone untrust to-zone trust { policy untrust-to-trust { match { source-address any; destination-address any; application any; } then { permit { tunnel { ipsec-vpn vpn-dyn; } } } } } from-zone wireless to-zone untrust { policy wireless_to_internet { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone trust to-zone mgmt { policy Allow_HTTP { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone mgmt to-zone trust { policy Allow_HTTP { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone mgmt to-zone untrust { policy mgmt-to-NTP-server { match { source-address any; destination-address any; application junos-ntp; } then { permit; } } } from-zone trust to-zone wireless { policy trust_to_wireless { match { source-address any; destination-address any; application any; } then { permit; } } } } flow { traceoptions { file flow-debug; flag basic-datapath; packet-filter diag_vpn { source-prefix 10.10.10.11/32; destination-prefix 172.16.20.126/32; } packet-filter diag_vpn2 { source-prefix 172.16.20.126/32; destination-prefix 10.10.10.11/32; } packet-filter filter1 { source-prefix 10.10.10.13/32; destination-prefix 172.16.20.126/32; } packet-filter filter2 { source-prefix 172.16.20.126/32; destination-prefix 10.10.10.13/32; } } } dynamic-vpn { access-profile dyn-vpn-prof1; clients { client-config { remote-protected-resources { 172.16.20.0/24; } remote-exceptions { 0.0.0.0/0; } ipsec-vpn vpn-dyn; user { vpn1; } } } } } access { profile ppp { authentication-order password; } profile dyn-vpn-prof1 { client vpn1 { firewall-user { password "$9$K7fWNbwYojHmg4aGjHTQBIEcyKLxd"; ## SECRET-DATA } } address-assignment { pool pool1; } } address-assignment { pool pool1 { family inet { network 172.16.20.0/24; range range1 { low 172.16.20.20; high 172.16.20.40; } xauth-attributes { primary-dns 8.8.8.8/32; } } } } firewall-authentication { web-authentication { default-profile dyn-vpn-prof1; } } } vlans { mgmt { vlan-id 100; interface { ge-0/0/14.0; } l3-interface vlan.100; } server { vlan-id 20; interface { ge-0/0/4.0; ge-0/0/5.0; ge-0/0/6.0; ge-0/0/7.0; } l3-interface vlan.20; } vlan-trust { vlan-id 3; l3-interface vlan.0; } wireless { vlan-id 30; interface { ge-0/0/12.0; ge-0/0/13.0; } l3-interface vlan.30; } }