=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2015.04.23 11:19:45 =~=~=~=~=~=~=~=~=~=~=~= ## Last changed: 2015-04-23 09:08:34 UTC version 12.1X46-D30.2; system { root-authentication { encrypted-password "$1$kQSVt1KW$3jRUef01oVNeInGJKW2k7/"; ## 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.6.254; } pool 192.168.6.0/24 { address-range low 192.168.6.10 high 192.168.6.100; } propagate-settings 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 { ge-0/0/0 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/1 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/2 { unit 0 { family ethernet-switching { 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 { vlan { members vlan-trust; } } } } ge-0/0/5 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/6 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/7 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/8 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/9 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/10 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/11 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/12 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/13 { unit 0 { family ethernet-switching { vlan { members vlan-trust; } } } } ge-0/0/14 { unit 0 { family inet { filter { input filter-ISP-B; } address 192.168.12.199/24; } } } ge-0/0/15 { unit 0 { family inet { filter { input filter-ISP-A; } address 217.150.139.164/28; } } } lo0 { unit 0 { family inet { address 192.168.6.1/32; } } } vlan { unit 0 { family inet { address 192.168.6.254/24; } } } } routing-options { interface-routes { rib-group inet inside; } static { route 0.0.0.0/0 { next-hop 217.150.139.161; qualified-next-hop 192.168.12.254 { preference 10; } } } rib-groups { inside { import-rib [ inet.0 trust-vrf.inet.0 inside.inet.0 ISP-B.inet.0 ]; } } } protocols { stp; } security { flow { traceoptions { file tracefile; flag basic-datapath; packet-filter p1 { destination-port 443; } packet-filter p2 { source-port 443; } } } nat { source { rule-set trust-to-isp-a { from zone trust; to zone [ isp-a isp-b ]; rule source-nat-rule { match { source-address 0.0.0.0/0; } then { source-nat { interface; } } } } } destination { pool nat-pool-webserver-https { address 192.168.6.11/32 port 443; } pool nat-pool-webserver-http { address 192.168.6.11/32 port 80; } rule-set dst-nat-isp-a { from interface ge-0/0/15.0; rule webserver-https-ispa { match { destination-address 217.150.139.164/32; destination-port 443; } then { destination-nat { pool { nat-pool-webserver-https; } } } } rule webserver-http-ispa { match { destination-address 217.150.139.164/32; destination-port 80; } then { destination-nat { pool { nat-pool-webserver-http; } } } } } rule-set dst-nat-isp-b { from interface ge-0/0/14.0; rule webserver-https-ispb { match { destination-address 192.168.12.199/32; destination-port 443; } then { destination-nat { pool { nat-pool-webserver-https; } } } } rule webserver-http-ispb { match { destination-address 192.168.12.199/32; destination-port 80; } then { destination-nat { pool { nat-pool-webserver-http; } } } } } } } policies { from-zone trust to-zone isp-a { policy trust-to-isp-a { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone isp-a to-zone trust { policy publish { match { source-address any; destination-address webserver.example.com; application junos-https; } then { permit; log { session-init; } } } } from-zone trust to-zone isp-b { policy trust-to-isp-b { match { source-address any; destination-address any; application any; } then { permit; } } } from-zone isp-b to-zone trust { policy publish { match { source-address any; destination-address webserver.example.com; application junos-https; } then { permit; log { session-init; } } } } } zones { security-zone trust { address-book { address webserver.example.com 192.168.6.11/32; } host-inbound-traffic { system-services { all; } protocols { all; } } interfaces { vlan.0 { host-inbound-traffic { system-services { all; } } } } } security-zone isp-a { interfaces { ge-0/0/15.0 { host-inbound-traffic { system-services { ike; ping; ssh; } } } } } security-zone isp-b { interfaces { ge-0/0/14.0 { host-inbound-traffic { system-services { all; } } } } } } } firewall { filter filter-ISP-B { term ISP-B-incoming { from { destination-address { 192.168.6.0/24; } } then { count ispb; routing-instance ISP-B; } } term default { then accept; } } filter filter-ISP-A { term ISP-A-incoming { from { destination-address { 217.150.139.160/28; } } then { count ispa; routing-instance trust-vrf; } } term default { then accept; } } } routing-instances { ISP-B { instance-type virtual-router; interface ge-0/0/14.0; routing-options { interface-routes { rib-group inet inside; } static { route 0.0.0.0/0 { next-hop 192.168.12.254; qualified-next-hop 217.150.139.161 { preference 10; } } } } } inside { instance-type virtual-router; interface vlan.0; routing-options { interface-routes { rib-group inet inside; } static { route 0.0.0.0/0 next-table inet.0; } } } trust-vrf { instance-type forwarding; routing-options { static { route 192.168.6.0/24 next-hop 192.168.6.254; } } } } poe { interface all; } vlans { vlan-trust { vlan-id 3; l3-interface vlan.0; } } [edit] root#