## Last commit: 2021-03-01 16:14:16 UTC by rootadmin version 15.1X49-D170.4; system { root-authentication { encrypted-password "$5$vfvJZ1R9$ZTaCeMwIl1U7pkwI22msSLKNu7Ns2V5ALPOkuj4u/89"; ## SECRET-DATA } name-server { 8.8.8.8; 8.8.4.4; } login { user rootadmin { uid 102; class super-user; authentication { encrypted-password "$5$V3CXW3wV$v5Y6vubNr5LsPT6EJDMjgxl58NbkrJ.giL2G/mT7ZFA"; ## SECRET-DATA } } } services { ssh; netconf { ssh; } dns { dns-proxy { cache { FWB-SRX inet 192.168.8.189; } } } web-management { http; https { system-generated-certificate; } } } syslog { archive size 100k files 3; user * { any emergency; } file messages { any notice; authorization info; } file interactive-commands { interactive-commands any; } } max-configurations-on-flash 5; max-configuration-rollbacks 15; license { autoupdate { url https://ae1.juniper.net/junos/key_retrieval; } } } security { log { mode stream; report; } screen { ids-option DMZ-screen { tcp { syn-flood { alarm-threshold 512; attack-threshold 200; source-threshold 512; destination-threshold 512; timeout 20; } land; } } 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 trust-to-untrust { from zone [ DMZ trust untrust ]; to zone [ DMZ trust untrust ]; rule source-nat-rule { match { source-address 0.0.0.0/0; destination-address 0.0.0.0/0; } then { source-nat { interface; } } } } } } policies { from-zone trust to-zone untrust { policy dbs-to-upd { match { source-address DBGroup; destination-address UdpSRV; application [ ESET junos-smtp WSUS junos-http junos-https ]; } then { permit; log { session-init; } } } policy dbs-to-pci_ext { match { source-address DBGroup; destination-address PCI-Ext-NET; application junos-ping; } then { permit; log { session-init; } } } } from-zone DMZ to-zone trust { policy LEM-to-pci_int { match { source-address LOGLEM; destination-address DB-Servers; application [ Traffic_to_LEM junos-ping ]; } then { permit; log { session-init; } } } } from-zone DMZ to-zone untrust { policy LEM-to-pci_ext { match { source-address LOGLEM; destination-address PCI-Ext-NET; application [ Traffic_to_LEM junos-ping ]; } then { permit; log { session-init; } } } policy LEM-to-Upd { match { source-address LOGLEM; destination-address UdpSRV; application [ junos-ping junos-smb junos-smtp ]; } then { permit; log { session-init; } } } } from-zone untrust to-zone DMZ { policy FWA-to-LEM { match { source-address FWA; destination-address LOGLEM; application [ junos-rsh junos-syslog ]; } then { permit; log { session-init; } } } policy Access-to-LEM { match { source-address AccessSRV; destination-address LOGLEM; application [ LEM_Console LEM_Reports ]; } then { permit; log { session-init; } } } policy Ext_SRVs-to-LEM { match { source-address Ext_SRVs; destination-address LOGLEM; application Traffic_from_LEM; } then { permit; log { session-init; } } } policy Upd-to-LEM { match { source-address UdpSRV; destination-address LOGLEM; application [ LEM_Console LEM_Reports junos-echo LEM_SSH junos-ping ]; } then { permit; log { session-init; } } } policy Upd-to-LOGSRV { match { source-address UdpSRV; destination-address LOGSRV; application any; } then { permit; log { session-init; } } } } from-zone trust to-zone DMZ { policy DBs-to-LEM { match { source-address [ DBGroup DBSRV ]; destination-address LOGLEM; application [ Traffic_from_LEM junos-ping ]; } then { permit; log { session-init; } } } policy FWB-to-LEM { match { source-address FWB_private; destination-address LOGLEM; application [ junos-rsh junos-syslog ]; } then { permit; log { session-init; } } } } from-zone untrust to-zone trust { policy Upd-to-DBs { match { source-address UdpSRV; destination-address DBGroup; application [ junos-ms-sql junos-ping junos-vnc ]; } then { permit; log { session-init; } } } policy Access-to-DBs { match { source-address UdpSRV; destination-address DBGroup; application junos-vnc; } then { permit; log { session-init; } } } policy PCI_ext-to-PCI_int { match { source-address PCI-Ext-NET; destination-address DB-Servers; application junos-ping; } then { permit; log { session-init; } } } policy AppSRVs-to-DBSRVs { match { source-address [ APPSRV APPSRVRES ]; destination-address DBGroup; application junos-ms-sql; } then { permit; log { session-init; } } } } } zones { security-zone trust { address-book { address DB-Servers 192.168.20.0/24; address DBSRV 192.168.20.2/32; address DBSRVRES 192.168.20.3/32; address FWB_private 192.168.20.1/32; address-set DBGroup { address DBSRV; address DBSRVRES; } } host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { irb.0; } } security-zone untrust { address-book { address AccessSRV 192.168.8.186/32; address APPSRV 192.168.8.188/32; address APPSRVRES 192.168.8.185/32; address FWA 192.168.8.190/32; address FWB-EXT 192.168.8.189/32; address PCI-Ext-NET 192.168.8.0/24; address UdpSRV 192.168.8.187/32; address-set Ext_SRVs { address AccessSRV; address APPSRV; address APPSRVRES; address UdpSRV; } } host-inbound-traffic { system-services { http; https; ping; } } interfaces { ge-0/0/0.0 { host-inbound-traffic { system-services { tftp; https; http; ping; } } } } } security-zone DMZ { address-book { address LOGNET 10.0.0.0/24; address LOGSRV 10.0.0.2/32; address LOGLEM 10.0.0.3/32; address LOGGW 10.0.0.1/32; address-set LOG { address LOGNET; address LOGSRV; address LOGLEM; address LOGGW; } } host-inbound-traffic { system-services { dns; ntp; ping; } } interfaces { ge-0/0/1.0; } } } } interfaces { ge-0/0/0 { unit 0 { family inet { address 192.168.8.189/24; } } } ge-0/0/1 { unit 0 { family inet { address 10.0.0.1/24; } } } ge-0/0/2 { unit 0 { family ethernet-switching { interface-mode access; vlan { members vlan-trust; } } } } ge-0/0/3 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/4 { unit 0 { family ethernet-switching { interface-mode access; vlan { members vlan-trust; } } } } ge-0/0/5 { unit 0 { family ethernet-switching { interface-mode access; vlan { members vlan-untrust; } } } } ge-0/0/6 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/7 { unit 0 { family inet; } } cl-1/0/0 { dialer-options { pool 1 priority 100; } } dl0 { unit 0 { family inet { negotiate-address; } family inet6 { negotiate-address; } dialer-options { pool 1; always-on; dial-string 1234; } } } irb { unit 0 { family inet { address 192.168.20.1/24; } } } } routing-options { static { route 0.0.0.0/0 next-hop 192.168.8.189; } } protocols { l2-learning { global-mode switching; } rstp { interface all; } } firewall { filter strict-ssh { term 1 { from { source-address { 0.0.0.0/0; 192.168.8.186/32 except; 192.168.8.187/32 except; } destination-port ssh; } then { log; discard; } } term 2 { then accept; } } } applications { application Traffic_to_LEM { protocol tcp; destination-port 37893-37896; } application Traffic_from_LEM { protocol tcp; destination-port 37890-37892; } application LEM_Reports { protocol tcp; destination-port 9001; } application LEM_SSH { protocol tcp; destination-port 32022; } application WSUS { protocol tcp; destination-port 8530-8531; } application Update { protocol tcp; destination-port 8081; } application LEM_Console_http { protocol tcp; destination-port 8080; } application LEM_Console_https { protocol tcp; destination-port 8443; } application ESET_2222-2223 { protocol tcp; destination-port 2222-2223; } application ESET_3128 { protocol tcp; destination-port 3128; } application-set LEM_Console { description http+https; application LEM_Console_http; application LEM_Console_https; } application-set ESET { application ESET_2222-2223; application ESET_3128; } } vlans { vlan-trust { vlan-id 3; l3-interface irb.0; } vlan-untrust { vlan-id 33; l3-interface irb.1; } }