## Last changed: 2011-09-06 17:14:04 CDT version 10.4R4.5; groups { node0 { system { host-name HOUTXFW1; } interfaces { fxp0 { unit 0 { family inet { address 192.168.0.251/24; } } } } } node1 { system { host-name HOUTXFW2; } interfaces { fxp0 { unit 0 { family inet { address 192.168.0.252/24; } } } } } } apply-groups "${node}"; system { time-zone America/Chicago; root-authentication { encrypted-password "$1$XerblLjy$NGsYkErHAIXaodkJEV.Ai."; } name-server { 208.67.222.222; 208.67.220.220; } services { ssh; web-management { http { interface [ fxp0.0 reth0.900 ]; } https { system-generated-certificate; interface [ fxp0.0 reth0.900 ]; } } } syslog { archive size 100k files 3; user * { any emergency; } file messages { any critical; authorization info; } file interactive-commands { interactive-commands error; } file traffic-log { any any; match RT_FLOW_SESSION; } } max-configurations-on-flash 5; max-configuration-rollbacks 5; license { autoupdate { url https://ae1.juniper.net/junos/key_retrieval; } } ntp { server 192.43.244.18; } } chassis { cluster { control-link-recovery; reth-count 2; node 0; redundancy-group 0 { node 0 priority 100; node 1 priority 99; } redundancy-group 1 { node 0 priority 100; node 1 priority 99; preempt; interface-monitor { ge-0/0/5 weight 255; ge-5/0/5 weight 255; ge-0/0/6 weight 255; ge-5/0/6 weight 255; } } } } interfaces { ge-0/0/5 { gigether-options { redundant-parent reth0; } } ge-0/0/6 { gigether-options { redundant-parent reth1; } } ge-5/0/5 { gigether-options { redundant-parent reth0; } } ge-5/0/6 { gigether-options { redundant-parent reth1; } } fab0 { fabric-options { member-interfaces { ge-0/0/2; } } } fab1 { fabric-options { member-interfaces { ge-5/0/2; } } } reth0 { vlan-tagging; redundant-ether-options { redundancy-group 1; } unit 900 { vlan-id 900; family inet { address 10.199.0.254/24; } } unit 901 { vlan-id 901; family inet { address 10.199.1.254/24; } } } reth1 { redundant-ether-options { redundancy-group 1; } unit 0 { family inet { address XXX.XXX.XXX.XXX/28; } } } } snmp { community public { authorization read-only; } } routing-options { static { route 0.0.0.0/0 next-hop XXX.XXX.XXX.XXX; } } security { ike { policy ike-dyn-vpn-policy { mode aggressive; proposal-set standard; pre-shared-key ascii-text "$9$09-qBIclK8Vwg1R87-boajHqPQnApB"; } gateway dyn-vpn-local-gw { ike-policy ike-dyn-vpn-policy; dynamic { hostname XXX.XXX.XXX.XXX; connections-limit 5; ike-user-type group-ike-id; } external-interface reth1; xauth access-profile dyn-vpn-access-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; } establish-tunnels on-traffic; } } nat { source { rule-set source-nat { from zone [ dmz trust ]; to zone untrust; rule source-nat-rule { match { source-address 0.0.0.0/0; } then { source-nat { interface; } } } } } proxy-arp { interface reth0.900 { address { 10.199.0.220/32 to 10.199.0.225/32; } } interface reth1.0 { address { XXX.XXX.XXX.XXX/32 to XXX.XXX.XXX.XXX/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 dmz { address-book { address houtxrodc1 10.199.1.31/32; address houtxrodc2 10.199.1.32/32; address-set rodc-servers { address houtxrodc1; address houtxrodc2; } } host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { reth0.901; } } security-zone trust { address-book { address houtxdc1 10.199.0.11/32; address houtxdc2 10.199.0.12/32; address-set rwdc-servers { address houtxdc1; address houtxdc2; } } host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { reth0.900; } } security-zone untrust { screen untrust-screen; host-inbound-traffic { system-services { http; https; ike; ping; ssh; } } interfaces { reth1.0; } } } policies { from-zone untrust to-zone dmz { policy default-deny { match { source-address any; destination-address any; application any; } then { deny; log { session-close; } } } } from-zone dmz to-zone untrust { policy default-permit { match { source-address any; destination-address any; application [ junos-dns-tcp junos-dns-udp junos-ftp junos-http junos-https junos-ntp junos-ping ]; } then { permit; log { session-close; } } } } from-zone dmz to-zone trust { policy intradomain-communication { match { source-address rodc-servers; destination-address rwdc-servers; application [ junos-dns-tcp junos-dns-udp junos-ldap junos-ms-rpc-tcp junos-ntp custom-kerberos custom-kpasswd-tcp custom-kpasswd-udp custom-ldap-udp custom-ldaps custom-ldap-gc custom-ldaps-gc custom-rpc-static-ad custom-smb ]; } then { permit; log { session-close; } } } policy default-deny { match { source-address any; destination-address any; application any; } then { deny; log { session-close; } } } } from-zone untrust to-zone trust { policy permit-dynamic-vpn-access { match { source-address any; destination-address any; application any; } then { permit { tunnel { ipsec-vpn dyn-vpn; } } log { session-close; } } } policy default-deny { match { source-address any; destination-address any; application any; } then { deny; log { session-close; } } } } from-zone trust to-zone untrust { policy default-permit { match { source-address any; destination-address any; application [ junos-dns-tcp junos-dns-udp junos-ftp junos-http junos-https junos-ntp junos-ping ]; } then { permit; log { session-close; } } } } from-zone trust to-zone dmz { policy intradomain-communication { match { source-address any; destination-address any; application any; } then { permit; log { session-close; } } } } } alg { dns disable; msrpc disable; } dynamic-vpn { access-profile dyn-vpn-access-profile; clients { dynamic-vpn { remote-protected-resources { 10.199.0.0/24; 10.199.1.0/24; } ipsec-vpn dyn-vpn; user { happy.happy; } } } } } access { profile dyn-vpn-access-profile { client happy.happy { firewall-user { password "joyjoy"; } } address-assignment { pool dyn-vpn-address-pool; } } address-assignment { pool dyn-vpn-address-pool { family inet { network 10.199.0.0/24; range dvpn-range { low 10.199.0.220; high 10.199.0.225; } xauth-attributes { primary-dns 10.199.0.11/32; secondary-dns 10.199.0.12/32; } } } } firewall-authentication { web-authentication { default-profile dyn-vpn-access-profile; } } } applications { application custom-kerberos { protocol tcp; destination-port 88; } application custom-kpasswd-tcp { protocol tcp; destination-port 464; } application custom-kpasswd-udp { protocol udp; destination-port 464; } application custom-ldap-udp { protocol udp; destination-port 389; } application custom-ldaps { protocol tcp; destination-port 636; } application custom-ldap-gc { protocol tcp; destination-port 3268; } application custom-ldaps-gc { protocol udp; destination-port 3269; } application custom-rpc-static-ad { protocol tcp; destination-port 53246; } application custom-smb { protocol tcp; destination-port 445; } }