system { host-name FW01; time-zone GMT; root-authentication { encrypted-password "xxx"; ## SECRET-DATA } name-server { 8.8.8.8 } login { message "xxx"; user itcode { uid 2000; class super-user; authentication { encrypted-password "xxx"; ## SECRET-DATA } } } services { ssh { root-login deny; } xnm-clear-text; web-management { http { interface vlan.1; } https { system-generated-certificate; interface [ vlan.1 fe-0/0/0.0 ]; } session { idle-timeout 60; } } dhcp { pool 10.0.20.0/24 { address-range low 10.0.20.10 high 10.0.20.199; router { 10.0.20.1; } } propagate-settings vlan.3; } } 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 fe-0/0/1; member fe-0/0/2; member fe-0/0/3; member fe-0/0/4; member fe-0/0/5; member fe-0/0/6; } fe-0/0/0 { unit 0 { encapsulation ppp-over-ether; } } fe-0/0/1 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } fe-0/0/2 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } fe-0/0/3 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } fe-0/0/4 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } fe-0/0/5 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } fe-0/0/6 { unit 0 { family ethernet-switching { vlan { members vlan1; } } } } fe-0/0/7 { unit 0 { family ethernet-switching { port-mode trunk; vlan { members [ Home Office ]; } native-vlan-id 10; } } } pp0 { unit 0 { ppp-options { chap { default-chap-secret "xxxx"; ## SECRET-DATA local-name "xxx"; no-rfc2486; passive; } } pppoe-options { underlying-interface fe-0/0/0.0; idle-timeout 0; auto-reconnect 1; client; } family inet { mtu 1492; address 54.22.xx.xx/32; } } } vlan { unit 1 { family inet { address 192.168.1.254/24; } } unit 3 { description "Home VLAN"; family inet { address 10.0.20.1/24; } } unit 4 { description "Office VLAN"; family inet { address 192.168.10.1/24; } } } } routing-options { static { route 0.0.0.0/0 { next-hop pp0.0; metric 1; } } } protocols { stp; } security { log { mode event; } application-tracking; flow { tcp-mss { all-tcp { mss 1300; } } } 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 nsw_srcnat { from zone [ Home Office trust ]; to zone Internet; rule nsw-src-interface { match { source-address 192.168.1.0/24; destination-address 0.0.0.0/0; } then { source-nat { interface; } } } rule nsw2-src-interface { match { source-address 10.0.20.0/24; destination-address 0.0.0.0/0; } then { source-nat { interface; } } } rule nsw3-src-interface { match { source-address 192.168.10.0/24; destination-address 0.0.0.0/0; } then { source-nat { interface; } } } } } destination { pool UTIL_RRAS { routing-instance { default; } address 192.168.1.225/32; } pool HV01_ILO { address 192.168.1.10/32 port 443; } pool EX01 { address 192.168.1.222/32; } rule-set Internet-DestNat { from zone Internet; rule inbound-ilo { match { destination-address 54.22.xxx.xxx/32; destination-port 6363; } then { destination-nat { pool { HV01_ILO; } } } } rule inbound-pptp { match { destination-address 54.22.xx.xx/32; destination-port 1723; } then { destination-nat { pool { UTIL_RRAS; } } } } rule inbound-mail { match { destination-address 54.22.xx.xx/32; destination-port 25; } then { destination-nat { pool { EX01; } } } } rule inbound-owa { match { destination-address 54.22.xx.xx/32; destination-port 443; } then { destination-nat { pool { EX01; } } } } } } } policies { from-zone trust to-zone Internet { policy POL-trust_to_Internet { match { source-address any; destination-address any; application any; } then { permit; log { session-init; session-close; } } } } from-zone Internet to-zone trust { policy POL_OWA { match { source-address any; destination-address ADDR_EX01; application junos-https; } then { permit; log { session-init; session-close; } } } policy POL-PPTP { match { source-address any; destination-address ADDR_UTIL01; application [ junos-pptp junos-gre ]; } then { permit; log { session-init; session-close; } } } policy POL_MAIL { match { source-address any; destination-address ADDR_EX01; application junos-smtp; } then { permit; log { session-init; session-close; } } } policy POL_ILO { match { source-address any; destination-address ADDR_HV01_ILO; application junos-https; } then { permit; log { session-init; session-close; } } } } from-zone trust to-zone trust { policy trust-to-trust { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone Office to-zone trust { policy office-to-trust { match { source-address any; destination-address any; application any; } then { permit; } } policy Office_LAN_to_CAS_LAN { match { source-address Office_LAN; destination-address CAS_LAN; application any; } then { permit; } } } from-zone trust to-zone Home { policy CAS_LAN_to_HOME_LAN { match { source-address CAS_LAN; destination-address Home_LAN; application any; } then { permit; } } } from-zone trust to-zone Office { policy CAS_LAN_to_Office_LAN { match { source-address CAS_LAN; destination-address Office_LAN; application any; } then { permit; } } } from-zone Home to-zone trust { policy Home_LAN_to_CAS_LAN { match { source-address Home_LAN; destination-address CAS_LAN; application any; } then { permit; } } } global { policy Internet_to_Trust_Deny { match { source-address any; destination-address any; application any; } then { deny; log { session-init; } } } } } zones { security-zone Internet { address-book { address ADDR_cloud_1 1.1.1.1/24; address ADDR_Cloud_3 1.1.2.2./20; address ADDR_Cloud_2 1.1.3.3/24; address-set ADDR_SET_CLOUD { address ADDR_Cloud_1; address ADDR_Cloud_3; address ADDR_Cloud_2; } } screen untrust-screen; host-inbound-traffic { system-services { ping; ssh; https; ike; } } interfaces { fe-0/0/0.0 { host-inbound-traffic { system-services { dhcp; } } } pp0.0 { host-inbound-traffic { system-services { https; } } } } application-tracking; } security-zone trust { address-book { address CAS_LAN 192.168.1.0/24; } interfaces { vlan.1 { host-inbound-traffic { system-services { all; } protocols { all; } } } } application-tracking; } security-zone Office { address-book { address CAS_LAN 192.168.1.0/24; address Office_LAN 192.168.10.0/24; } interfaces { vlan.4 { host-inbound-traffic { system-services { all; } protocols { all; } } } } application-tracking; } security-zone Home { address-book { address CAS_LAN 192.168.1.0/24; address Home_LAN 10.0.20.0/24; } interfaces { vlan.3 { host-inbound-traffic { system-services { all; } protocols { all; } } } } application-tracking; } } } vlans { Home { vlan-id 10; l3-interface vlan.3; } Office { vlan-id 20; l3-interface vlan.4; } vlan1 { vlan-id 3; l3-interface vlan.1; } }