=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2016.02.01 11:20:38 =~=~=~=~=~=~=~=~=~=~=~= root@srx100> show configuration ## Last commit: 2016-02-01 10:49:59 UTC by root version 10.4R4.5; system { host-name srx100; root-authentication { encrypted-password "$1$CqNUeIHP$plPsW79LsEiH5/f/VVrE7."; ## SECRET-DATA } name-server { 208.67.222.222; 208.67.220.220; } services { ssh; telnet; xnm-clear-text; web-management { http { interface vlan.0; } https { 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 fe-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 { fe-0/0/0 { unit 0 { family inet { address 192.168.2.254/24; } } } fe-0/0/1 { unit 0 { family inet { address 192.168.239.1/24; } } } fe-0/0/2 { unit 0 { family inet { address 1.1.1.1/32; } } } fe-0/0/3 { unit 0 { family inet { address 192.168.4.1/24; } } } 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 { description "link to srx210 untrust"; unit 0 { family ethernet-switching { port-mode trunk; vlan { members srx210_untrust; } } } } fe-0/0/7 { description "link to srx210 untrust"; unit 0 { family ethernet-switching { vlan { members srx210_untrust; } } } } st0 { unit 0 { family inet { address 192.168.10.1/24; } } } vlan { unit 0 { family inet { address 192.168.1.1/24; } } unit 10 { description untrust; family inet { address 172.16.10.2/24; } } } } routing-options { interface-routes { rib-group inet myshare; } static { route 0.0.0.0/0 next-hop 192.168.2.1; route 192.168.100.0/24 next-hop st0.0; } rib-groups { myshare { import-rib [ inet.0 srx210_untrust.inet.0 ]; } } } protocols { stp; } security { ike { proposal P1proposal { authentication-method pre-shared-keys; dh-group group2; encryption-algorithm des-cbc; lifetime-seconds 86400; } policy P1policy { mode main; proposals P1proposal; pre-shared-key ascii-text "$9$bsw4JZGjqPQUj0IREyrYgoaZj"; ## SECRET-DATA } gateway P1gateway { ike-policy P1policy; address 1.1.1.2; dead-peer-detection { interval 10; threshold 3; } external-interface fe-0/0/2; } } ipsec { proposal P2proposal { protocol esp; authentication-algorithm hmac-sha1-96; encryption-algorithm des-cbc; lifetime-seconds 36000; } policy P2policy { perfect-forward-secrecy { keys group2; } proposals P2proposal; } vpn SITE1-TO-SITE2 { bind-interface st0.0; ike { gateway P1gateway; ipsec-policy P2policy; } establish-tunnels immediately; } } nat { source { rule-set INTERNAL-TO-INTERNET { from zone INTERNAL; to zone INTERNET; rule INTERNET-ACCESS { match { source-address 192.168.239.0/24; destination-address 0.0.0.0/0; } then { source-nat { interface; } } } } rule-set trust_TO-INTERNET { from zone trust; to zone INTERNET; rule INTERNET-ACCESS-4 { match { source-address 192.168.4.0/24; destination-address 0.0.0.0/0; } then { source-nat { interface; } } } } rule-set untrust_TO-INTERNET { from zone untrust; to zone INTERNET; rule INTERNET-ACCESS-100 { match { source-address 192.168.100.0/24; destination-address 0.0.0.0/0; } then { source-nat { interface; } } } } } destination { pool WEBSERVER-INTERNAL { address 192.168.239.10/32; } pool APPSERVER-INTERNAL { address 192.168.239.12/32 port 8080; } rule-set INTERNAL-SERVERS { from zone INTERNET; rule WEDSERVER { match { destination-address 192.168.2.254/32; destination-port 80; } then { destination-nat pool WEBSERVER-INTERNAL; } } rule APPSERVER { match { destination-address 192.168.2.200/32; destination-port 80; } then { destination-nat pool APPSERVER-INTERNAL; } } } } proxy-arp { interface fe-0/0/0.0 { address { 192.168.2.200/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; } } } zones { security-zone trust { host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { vlan.0; fe-0/0/3.0; } } security-zone untrust { tcp-rst; screen untrust-screen; host-inbound-traffic { system-services { all; } } interfaces { fe-0/0/2.0; st0.0; } } security-zone INTERNAL { address-book { address network_239 192.168.239.0/24; address WEBSERVER 192.168.239.10/32; address APPSERVER 192.168.239.12/32; } interfaces { fe-0/0/1.0 { host-inbound-traffic { system-services { ping; ssh; } } } } } security-zone INTERNET { interfaces { fe-0/0/0.0 { host-inbound-traffic { system-services { ping; } } } } } security-zone srx210_untrust { host-inbound-traffic { system-services { all; } } interfaces { vlan.10 { host-inbound-traffic { system-services { all; } } } } } } policies { from-zone INTERNAL to-zone INTERNET { policy ALLOW-INTERNAL-CLIENTS { match { source-address network_239; destination-address any; application any; } then { permit; } } } from-zone INTERNET to-zone INTERNAL { policy ALLOW-WEB-SERVICE { match { source-address any; destination-address WEBSERVER; application junos-http; } then { permit; } } policy ALLOW-APPSERVER { match { source-address any; destination-address APPSERVER; application TCP8080; } then { permit; } } } from-zone trust to-zone untrust { policy allowALL { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone untrust to-zone trust { policy fromINTERNET { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone trust to-zone INTERNET { policy allowALL { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone untrust to-zone INTERNET { policy allowALL { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone srx210_untrust to-zone INTERNET { policy allowALL { match { source-address any; destination-address any; application any; } then { permit; } } } } } routing-instances { srx210_untrust { instance-type virtual-router; interface vlan.10; routing-options { static { route 172.16.20.0/24 next-hop 172.16.10.1; route 0.0.0.0/0 next-table inet.0; } } } } applications { application TCP8080 { protocol tcp; destination-port 8080; } } vlans { srx210_untrust { vlan-id 10; l3-interface vlan.10; } vlan-trust { vlan-id 3; l3-interface vlan.0; } } root@srx100>