## Last changed: 2011-09-12 06:03:06 UTC version 10.4R6.5; system { host-name srx1; root-authentication { encrypted-password "xxxxxxxxxxx"; ## SECRET-DATA } name-server { 208.67.222.222; 208.67.220.220; } services { ssh; dhcp { router { 192.168.2.1; } pool 192.168.2.0/24 { address-range low 192.168.2.2 high 192.168.2.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 { filter { input packet-mode; } address 1.2.3.1/24; } } } lt-0/0/0 { unit 0 { description "to master flow instance"; encapsulation ethernet; peer-unit 1; family inet { filter { input packet-mode; } address 1.1.1.1/24; } } unit 1 { description "to packet VR"; encapsulation ethernet; peer-unit 0; family inet { address 1.1.1.2/24; } } } ge-0/0/1 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } 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 ethernet-switching { vlan { members vlan-trust; } } } } st0 { unit 0 { family inet { address 10.199.0.1/24; } } } vlan { unit 0 { family inet { address 192.168.2.1/24; } } } } routing-options { static { route 192.168.1.0/24 next-hop st0.0; inactive: route 0.0.0.0/0 next-hop 1.2.3.4; route 1.2.3.0/24 next-hop [ lt-0/0/1.0 1.1.1.1 ]; } } security { ike { inactive: traceoptions { file size 1m; flag policy-manager; flag ike; flag routing-socket; } policy ike-policy-cfgr { mode main; proposal-set standard; pre-shared-key ascii-text "xxxxxxxx"; ## SECRET-DATA } gateway ike-gate-cfgr { ike-policy ike-policy-cfgr; address 1.2.3.4; external-interface lt-0/0/1; } } ipsec { traceoptions { flag all; } policy ipsec-policy-cfgr { proposal-set standard; } vpn ipsec-vpn-cfgr { bind-interface st0.0; vpn-monitor { optimized; } ike { gateway ike-gate-cfgr; ipsec-policy ipsec-policy-cfgr; } } } inactive: nat { source { rule-set korexadm-to-untrust { from zone korexadm; to zone untrust; rule source-nat-rule { match { source-address 0.0.0.0/0; } then { source-nat { interface; } } } } } } 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 untrust { screen untrust-screen; host-inbound-traffic { system-services { ike; } } interfaces { ge-0/0/0.0 { host-inbound-traffic { system-services { ike; ping; } } } } } security-zone vpn { address-book { address net-cfgr_192-168-1-0--24 192.168.1.0/24; } interfaces { st0.0; } } security-zone korexadm { address-book { address net-cfgr_192-168-2-0--24 192.168.2.0/24; } host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { vlan.0; } } security-zone a { interfaces { lt-0/0/0.0 { host-inbound-traffic { system-services { all; } protocols { all; } } } } } security-zone b { interfaces { lt-0/0/0.1 { host-inbound-traffic { system-services { all; } protocols { all; } } } } } } policies { from-zone korexadm to-zone vpn { policy korexadm-vpn-cfgr { match { source-address net-cfgr_192-168-2-0--24; destination-address net-cfgr_192-168-1-0--24; application any; } then { permit; } } } from-zone vpn to-zone korexadm { policy vpn-korexadm-cfgr { match { source-address net-cfgr_192-168-1-0--24; destination-address net-cfgr_192-168-2-0--24; application any; } then { permit; } } } from-zone korexadm to-zone untrust { policy trust-to-untrust { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone a to-zone b { policy accept { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone b to-zone a { policy accept { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone a to-zone untrust { policy accept { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone untrust to-zone a { policy accept { match { source-address any; destination-address any; application any; } then { permit; } } } } alg { ftp disable; } flow { tcp-mss { ipsec-vpn { mss 1350; } } } } firewall { family inet { filter packet-mode { term host-inbound { from { destination-address { 10.2.1.1/32; } } then accept; } term packet-mode-rest { then { packet-mode; accept; } } } } } routing-instances { Packet-VR { instance-type virtual-router; interface ge-0/0/0.0; interface lt-0/0/0.0; } } vlans { vlan-trust { vlan-id 3; l3-interface vlan.0; } }