Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set system services ssh max-sessions-per-connection 64
- set system services ssh sftp-server
- set system services netconf ssh
- set system services dhcp-local-server group LAN interface ge-0/0/2.0
- set system management-instance
- set system name-server 8.8.8.8 routing-instance mgmt_junos
- set system syslog file default-log-messages any info
- set system syslog file default-log-messages match "(requested 'commit' operation)|(requested 'commit synchronize' operation)|(copying configuration to juniper.save)|(commit complete)|ifAdminStatus|(FRU power)|(FRU removal)|(FRU insertion)|(link UP)|transitioned|Transferred|transfer-file|(license add)|(license delete)|(package -X update)|(package -X delete)|(FRU Online)|(FRU Offline)|(plugged in)|(unplugged)|_GRES"
- set system syslog file default-log-messages structured-data
- set system syslog file interactive-commands interactive-commands any
- set system syslog file messages any any
- set system syslog file messages authorization info
- set system license autoupdate url https://ae1.juniper.net/junos/key_retrieval
- set system ntp server 192.168.3.19 routing-instance mgmt_junos
- set services rpm probe WAN-B test wan_ping probe-type icmp-ping
- set services rpm probe WAN-B test wan_ping target address 8.8.8.8
- set services rpm probe WAN-B test wan_ping probe-count 3
- set services rpm probe WAN-B test wan_ping probe-interval 5
- set services rpm probe WAN-B test wan_ping test-interval 30
- set services rpm probe WAN-B test wan_ping routing-instance WAN-B
- set services rpm probe WAN-B test wan_ping thresholds successive-loss 2
- set services rpm probe WAN-B test wan_ping thresholds total-loss 2
- set services rpm probe WAN-B test wan_ping hardware-timestamp
- set services rpm probe WAN-A test wan_ping probe-type icmp-ping
- set services rpm probe WAN-A test wan_ping target address 8.8.8.8
- set services rpm probe WAN-A test wan_ping probe-count 3
- set services rpm probe WAN-A test wan_ping probe-interval 5
- set services rpm probe WAN-A test wan_ping test-interval 30
- set services rpm probe WAN-A test wan_ping routing-instance WAN-A
- set services rpm probe WAN-A test wan_ping thresholds successive-loss 2
- set services rpm probe WAN-A test wan_ping thresholds total-loss 2
- set services rpm probe WAN-A test wan_ping hardware-timestamp
- set services ip-monitoring policy WAN-B_DOWN match rpm-probe WAN-B
- set services ip-monitoring policy WAN-B_DOWN then preferred-route routing-instances WAN-B route 100.99.255.2/32 discard
- set services ip-monitoring policy WAN-A_DOWN match rpm-probe WAN-A
- set services ip-monitoring policy WAN-A_DOWN then preferred-route routing-instances WAN-A route 100.99.255.2/32 discard
- set security nat source rule-set LAN_to_WAN-A from zone TRUST
- set security nat source rule-set LAN_to_WAN-A to zone WAN-A
- set security nat source rule-set LAN_to_WAN-A rule LAN_to_WAN-A match source-address 0.0.0.0/0
- set security nat source rule-set LAN_to_WAN-A rule LAN_to_WAN-A then source-nat interface
- set security nat source rule-set LAN_to_WAN-B from zone TRUST
- set security nat source rule-set LAN_to_WAN-B to zone WAN-B
- set security nat source rule-set LAN_to_WAN-B rule LAN_to_WAN-B match source-address 0.0.0.0/0
- set security nat source rule-set LAN_to_WAN-B rule LAN_to_WAN-B then source-nat interface
- set security policies from-zone TRUST to-zone WAN-A policy ALLOW_ALL match source-address any
- set security policies from-zone TRUST to-zone WAN-A policy ALLOW_ALL match destination-address any
- set security policies from-zone TRUST to-zone WAN-A policy ALLOW_ALL match application any
- set security policies from-zone TRUST to-zone WAN-A policy ALLOW_ALL then permit
- set security policies from-zone TRUST to-zone WAN-B policy ALLOW_ALL match source-address any
- set security policies from-zone TRUST to-zone WAN-B policy ALLOW_ALL match destination-address any
- set security policies from-zone TRUST to-zone WAN-B policy ALLOW_ALL match application any
- set security policies from-zone TRUST to-zone WAN-B policy ALLOW_ALL then permit
- set security zones security-zone WAN-A host-inbound-traffic system-services all
- set security zones security-zone WAN-A host-inbound-traffic protocols all
- set security zones security-zone WAN-A interfaces ge-0/0/0.0
- set security zones security-zone TRUST host-inbound-traffic system-services all
- set security zones security-zone TRUST host-inbound-traffic protocols all
- set security zones security-zone TRUST interfaces ge-0/0/2.0
- set security zones security-zone WAN-B host-inbound-traffic system-services all
- set security zones security-zone WAN-B host-inbound-traffic protocols all
- set security zones security-zone WAN-B interfaces ge-0/0/1.0
- set interfaces ge-0/0/0 description WAN-A
- set interfaces ge-0/0/0 unit 0 family inet dhcp
- set interfaces ge-0/0/1 description WAN-B
- set interfaces ge-0/0/1 unit 0 family inet dhcp
- set interfaces ge-0/0/2 description LAN
- set interfaces ge-0/0/2 unit 0 family inet address 192.168.4.1/24
- set interfaces fxp0 unit 0 family inet address 192.168.3.82/24
- set policy-options policy-statement master_direct term 01_direct from instance master
- set policy-options policy-statement master_direct term 01_direct from protocol direct
- set policy-options policy-statement master_direct term 01_direct then accept
- set policy-options policy-statement master_direct term 02_not_direct from instance master
- set policy-options policy-statement master_direct term 02_not_direct then reject
- set policy-options policy-statement wan_default term 01_WAN-A_DOWN from instance WAN-A
- set policy-options policy-statement wan_default term 01_WAN-A_DOWN from route-filter 0.0.0.0/0 exact
- set policy-options policy-statement wan_default term 01_WAN-A_DOWN from condition WAN-A_DOWN
- set policy-options policy-statement wan_default term 01_WAN-A_DOWN then reject
- set policy-options policy-statement wan_default term 02_WAN-A_DEFAULT from instance WAN-A
- set policy-options policy-statement wan_default term 02_WAN-A_DEFAULT from route-filter 0.0.0.0/0 exact
- set policy-options policy-statement wan_default term 02_WAN-A_DEFAULT then accept
- set policy-options policy-statement wan_default term 03_WAN-A_LOCAL from instance WAN-A
- set policy-options policy-statement wan_default term 03_WAN-A_LOCAL from protocol local
- set policy-options policy-statement wan_default term 03_WAN-A_LOCAL to rib inet.0
- set policy-options policy-statement wan_default term 03_WAN-A_LOCAL then accept
- set policy-options policy-statement wan_default term 04_WAN-A_CLEANUP from instance WAN-A
- set policy-options policy-statement wan_default term 04_WAN-A_CLEANUP from protocol direct
- set policy-options policy-statement wan_default term 04_WAN-A_CLEANUP from protocol local
- set policy-options policy-statement wan_default term 04_WAN-A_CLEANUP then reject
- set policy-options policy-statement wan_default term 05_WAN-B_DOWN from instance WAN-B
- set policy-options policy-statement wan_default term 05_WAN-B_DOWN from route-filter 0.0.0.0/0 exact
- set policy-options policy-statement wan_default term 05_WAN-B_DOWN from condition WAN-B_DOWN
- set policy-options policy-statement wan_default term 05_WAN-B_DOWN then reject
- set policy-options policy-statement wan_default term 06_WAN-B_DEFAULT from instance WAN-B
- set policy-options policy-statement wan_default term 06_WAN-B_DEFAULT from route-filter 0.0.0.0/0 exact
- set policy-options policy-statement wan_default term 06_WAN-B_DEFAULT then accept
- set policy-options policy-statement wan_default term 07_WAN-B_LOCAL from instance WAN-B
- set policy-options policy-statement wan_default term 07_WAN-B_LOCAL from protocol local
- set policy-options policy-statement wan_default term 07_WAN-B_LOCAL to rib inet.0
- set policy-options policy-statement wan_default term 07_WAN-B_LOCAL then accept
- set policy-options policy-statement wan_default term 08_WAN-B_CLEANUP from instance WAN-B
- set policy-options policy-statement wan_default term 08_WAN-B_CLEANUP from protocol direct
- set policy-options policy-statement wan_default term 08_WAN-B_CLEANUP from protocol local
- set policy-options policy-statement wan_default term 08_WAN-B_CLEANUP then reject
- set policy-options condition WAN-A_DOWN if-route-exists address-family inet 100.99.255.2/32
- set policy-options condition WAN-A_DOWN if-route-exists address-family inet table WAN-A.inet.0
- set policy-options condition WAN-B_DOWN if-route-exists address-family inet 100.99.255.2/32
- set policy-options condition WAN-B_DOWN if-route-exists address-family inet table WAN-B.inet.0
- set access address-assignment pool LAN family inet network 192.168.4.0/24
- set access address-assignment pool LAN family inet range LAN low 192.168.4.20
- set access address-assignment pool LAN family inet range LAN high 192.168.4.100
- set access address-assignment pool LAN family inet dhcp-attributes name-server 8.8.8.8
- set access address-assignment pool LAN family inet dhcp-attributes router 192.168.4.1
- set routing-instances WAN-A instance-type virtual-router
- set routing-instances WAN-A routing-options instance-import master_direct
- set routing-instances WAN-A interface ge-0/0/0.0
- set routing-instances WAN-B instance-type virtual-router
- set routing-instances WAN-B routing-options instance-import master_direct
- set routing-instances WAN-B interface ge-0/0/1.0
- set routing-instances mgmt_junos routing-options static route 0.0.0.0/0 next-hop 192.168.3.1
- set routing-options instance-import wan_default
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement