## Last changed: 2012-08-15 11:39:29 UTC version 12.1R2.9; system { host-name srx-1; root-authentication { ## SECRET-DATA } name-server { 192.168.2.60; } login { message "Welcome..."; user test { uid 2000; class super-user; authentication { encrypted-password ## SECRET-DATA } } } services { ssh { root-login deny; } xnm-clear-text; web-management { http { interface vlan.0; } https { system-generated-certificate; interface vlan.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 { fe-0/0/0 { description "Primary WAN"; unit 0 { family inet { address x.y.z.100/24; } } } fe-0/0/2 { description "Link to Switch"; unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } fe-0/0/3 { description "Link to TestVM"; 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; } } } } lo0 { unit 0 { family inet { address 127.0.0.1/32 { preferred; } } } } vlan { unit 0 { family inet { address 192.168.2.3/24; } } } } routing-options { static { route 0.0.0.0/0 next-hop x.y.z.1; } } protocols { stp; } security { address-book { global { address abServer-1 192.168.2.18/32; address abServer-2 192.168.2.28/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; } } } nat { source { pool snat100 { address { x.y.z.100/32; } } pool snat101 { address { x.y.z.101/32; } } pool snat102 { address { x.y.z.102/32; } } rule-set trust-to-untrust { from zone trust; to zone untrust; rule sourceRule101 { match { source-address-name abServer-2; } then { source-nat { pool { snat101; } } } } rule sourceRule100 { match { source-address 0.0.0.0/0; } then { source-nat { interface; } } } } } destination { pool dnpServer-1_RDP { address 192.168.2.18/32 port 3389; } pool dnpServer-2_SP80 { address 192.168.2.28/32 port 80; } rule-set Untrust2Trust { from zone untrust; rule dr-100-port9999 { match { destination-address x.y.z.100/32; destination-port 9999; } then { destination-nat pool dnpServer-1_RDP; } } rule dr-102-port9999 { match { destination-address x.y.z.102/32; destination-port 9999; } then { destination-nat pool dnpServer-1_RDP; } } rule dr-101-port80 { match { destination-address x.y.z.101/32; destination-port 80; } then { destination-nat pool dnpServer-2_SP80; } } } } proxy-arp { interface fe-0/0/0.0 { address { x.y.z.101/32; x.y.z.102/32; } } } } 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 spRDP { match { source-address a.b.c.d; destination-address abServer-1; application app-RDP; } then { permit; } } policy sp-SP80 { match { source-address any; destination-address abServer-2; application app-Web80; } then { permit; } } } } zones { security-zone trust { host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { vlan.0; } } security-zone untrust { screen untrust-screen; interfaces { fe-0/0/0.0 { host-inbound-traffic { system-services { ping; } } } } } } } applications { application app-RDP { protocol tcp; destination-port 3389; inactivity-timeout 600; } application app-Web80 { protocol tcp; destination-port 80; inactivity-timeout 60; } } vlans { vlan-trust { vlan-id 3; l3-interface vlan.0; } }