edit] juniper@Juniper# show ## Last changed: 2010-10-13 15:02:20 UTC version 10.0R1.8; system { host-name Juniper; root-authentication { encrypted-password "$1$yGhtnzji$Xl6s8P28dxfEHu3AKoo0S/"; ## SECRET-DATA } name-server { 208.67.222.222; 208.67.220.220; } services { ssh; telnet; web-management { http { interface [ vlan.0 ge-0/0/15.0 ]; } https { port 1443; system-generated-certificate; interface vlan.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 { interface-range interfaces-trust { member ge-0/0/1; member ge-0/0/2; member ge-0/0/3; member ge-0/0/4; member ge-0/0/5; member ge-0/0/6; member ge-0/0/7; member ge-0/0/8; member ge-0/0/9; member ge-0/0/10; member ge-0/0/11; member ge-0/0/14; unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } interface-range Branch { member ge-0/0/12; member ge-0/0/13; unit 0 { family ethernet-switching { vlan { members Branch; } } } } ge-0/0/0 { unit 0 { family inet { dhcp; } } } ge-0/0/15 { unit 0 { family inet { address 192.168.10.1/24; } } } lo0 { unit 0 { family inet { address 127.0.0.1/32; } } } vlan { unit 0 { family inet { address 192.168.1.1/24; } } unit 1 { family inet { filter { input cos; } address 10.10.10.3/24; } } } } routing-options { static { route 192.168.2.0/24 next-hop 10.10.10.1; route 192.168.3.0/24 next-hop 10.10.10.2; } } security { 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 Branch { from zone Branch; to zone untrust; rule Branch { match { source-address 0.0.0.0/0; } then { source-nat { interface; } } } } rule-set Branch-to-trust { from zone Branch; to zone trust; rule Branch-to-trust { match { source-address 0.0.0.0/0; } then { source-nat { off; } } } } rule-set trust-to-Branch { from zone trust; to zone Branch; rule trust-to-Branch { match { source-address 0.0.0.0/0; } then { source-nat { off; } } } } rule-set Branch10 { from zone Branch10; to zone untrust; rule Branch10 { 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 trust { host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { vlan.0; } } security-zone untrust { screen untrust-screen; interfaces { ge-0/0/0.0 { host-inbound-traffic { system-services { dhcp; tftp; ping; } protocols { all; } } } } } security-zone Branch { host-inbound-traffic { system-services { all; } } interfaces { vlan.1; } } security-zone Branch10 { host-inbound-traffic { system-services { all; } } interfaces { ge-0/0/15.0; } } } policies { from-zone trust to-zone untrust { policy trust-to-untrust { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone Branch to-zone untrust { policy Branch { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone Branch to-zone trust { policy Branch-to-trust { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone trust to-zone Branch { policy trust-to-Branch { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone Branch10 to-zone untrust { policy Branch10 { match { source-address any; destination-address any; application any; } then { permit; } } } } } firewall { family inet { filter cos { term Branch { from { source-address { 10.10.10.0/24; 192.168.2.0/24; 192.168.3.0/24; } } then { forwarding-class best-effort; accept; } } } } } applications { application my-ssh { protocol tcp; destination-port 22; } application-set junos-routing-inbound { application my-ssh; } } vlans { Branch { vlan-id 5; l3-interface vlan.1; } vlan-trust { vlan-id 3; l3-interface vlan.0; } }