## Last changed: 2015-06-24 16:37:35 MYT version 11.2R4.3; system { host-name OFFICE-KNBTG; time-zone Asia/Kuala_Lumpur; root-authentication { encrypted-password "$1$uiL/QD.l$Mdl33wQmcuINMR5vKxlLB1"; } name-server { 202.188.0.133; } services { ssh; telnet; xnm-clear-text; web-management { http { interface [ vlan.0 ge-0/0/0.0 fe-0/0/7.0 ]; } https { system-generated-certificate; interface [ vlan.0 ge-0/0/0.0 fe-0/0/7.0 ]; } } dhcp { router { 192.168.1.1; } pool 192.168.1.0/24 { address-range low 192.168.1.2 high 192.168.1.254; } 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 5; license { autoupdate { url https://ae1.juniper.net/junos/key_retrieval; } } } interfaces { ge-0/0/0 { unit 0 { family inet { address 124.82.156.202/24; } } } fe-0/0/2 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } fe-0/0/3 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } fe-0/0/4 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } fe-0/0/5 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } fe-0/0/6 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } fe-0/0/7 { unit 0 { family inet { address 20.20.20.9/30; } } } st0 { unit 0 { multipoint; family inet { mtu 1500; address 172.31.1.2/30; } } } vlan { unit 0 { family inet { address 192.168.1.1/24; } } } } routing-options { static { route 0.0.0.0/0 next-hop 172.20.1.2; } } protocols { ospf { export direct-ospf; area 0.0.0.0 { area-range 20.20.20.8/30; interface fe-0/0/7.0; } area 0.0.0.1 { area-range 172.31.1.0/30; interface st0.0 { interface-type nbma; metric 1; neighbor 172.31.1.1; } } } stp; } policy-options { policy-statement direct-ospf { term Tunnel1 { from { protocol direct; interface st0.0; source-address-filter 10.45.2.0/24 orlonger; } } } } security { ike { policy ike_pol_OFFICE-VPN { mode main; proposal-set standard; pre-shared-key ascii-text "$9$2jaDk5T39tOJGA0OByrVwY24a"; } gateway gw_OFFICE-VPN { ike-policy ike_pol_OFFICE-VPN; address 192.168.100.1; dead-peer-detection; external-interface ge-0/0/0.0; } } ipsec { policy ipsec_pol_OFFICE-VPN { perfect-forward-secrecy { keys group2; } proposal-set standard; } vpn OFFICE-VPN { bind-interface st0.0; vpn-monitor; ike { gateway gw_OFFICE-VPN; ipsec-policy ipsec_pol_OFFICE-VPN; } establish-tunnels immediately; } } flow { tcp-mss { ipsec-vpn { mss 1350; } } } 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 trust-to-untrust { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone untrust to-zone trust { policy policy_in_OFFICE-VPN { match { source-address any; destination-address any; application any; } then { permit; } } policy OFFICE-KBTGN_LAN { match { source-address any; destination-address any; application any; } then { permit; log { session-close; } } } } } zones { security-zone trust { address-book { address addr_10_45_2_0_24 10.45.2.0/24; address addr_192_168_1_0_24 192.168.1.0/24; address addr_20_20_20_8_30 20.20.20.8/30; } host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { vlan.0; fe-0/0/7.0 { host-inbound-traffic { system-services { all; } protocols { all; } } } st0.0 { host-inbound-traffic { system-services { all; } protocols { all; } } } } } security-zone untrust { address-book { address addr_10_88_2_0_24 10.88.2.0/24; } screen untrust-screen; interfaces { ge-0/0/0.0 { host-inbound-traffic { system-services { tftp; } } } } } } } vlans { vlan-trust { vlan-id 3; l3-interface vlan.0; } }