set clock timezone 1
set vrouter trust-vr sharable
set vrouter "untrust-vr"
exit
set vrouter "trust-vr"
unset auto-route-export
set protocol ospf
set enable
set advertise-def-route metric 1 metric-type 1
set reject-default-route
exit
exit
set service "HTTP-PROXY" protocol tcp src-port 0-65535 dst-port 8080-8080 
set auth-server "Local" id 0
set auth-server "Local" server-name "Local"
set auth default auth server "Local"
set auth radius accounting port 1646
set admin name "admin"
set admin password "nO1CGHrlLNQGcmMEDsjLaJOt8VPYtn"
set admin manager-ip 10.40.1.21 255.255.255.0
set admin auth timeout 10
set admin auth server "Local"
set admin format dos
set vip multi-port
set zone "Trust" vrouter "trust-vr"
set zone "Untrust" vrouter "trust-vr"
set zone "DMZ" vrouter "trust-vr"
set zone "VLAN" vrouter "trust-vr"
set zone "Untrust-Tun" vrouter "trust-vr"
set zone "Trust" tcp-rst 
set zone "Untrust" block 
unset zone "Untrust" tcp-rst 
set zone "DMZ" tcp-rst 
set zone "VLAN" block 
unset zone "VLAN" tcp-rst 
set zone "Untrust" screen tear-drop
set zone "Untrust" screen syn-flood
set zone "Untrust" screen ping-death
set zone "Untrust" screen ip-filter-src
set zone "Untrust" screen land
set zone "V1-Untrust" screen tear-drop
set zone "V1-Untrust" screen syn-flood
set zone "V1-Untrust" screen ping-death
set zone "V1-Untrust" screen ip-filter-src
set zone "V1-Untrust" screen land
set interface "ethernet0/0" zone "Null"
set interface "ethernet0/1" zone "Null"
set interface "bgroup0" zone "Null"
set interface "bgroup0.1" tag 340 zone "Untrust"
set interface "bgroup0.2" tag 2 zone "Untrust"
set interface "bgroup1.1" tag 441 zone "DMZ"
set interface "bgroup2" zone "Trust"
set interface "bgroup2.1" tag 442 zone "Trust"
set interface "bgroup3" zone "Trust"
set interface bgroup0 port ethernet0/0
set interface bgroup1 port ethernet0/1
set interface bgroup2 port ethernet0/2
unset interface vlan1 ip
set interface bgroup0.1 ip 10.30.0.6/30
set interface "bgroup0.1" ipv6 mode "router"
set interface "bgroup0.1" ipv6 ip 2001:db8:3:340::6/64
set interface "bgroup0.1" ipv6 enable
set interface bgroup0.1 route
set interface bgroup0.2 ip 10.40.130.254/24
set interface "bgroup0.2" ipv6 mode "router"
set interface bgroup0.2 route
set interface bgroup1.1 ip 10.40.2.1/24
set interface "bgroup1.1" ipv6 mode "router"
set interface "bgroup1.1" ipv6 ip 2001:db8:4:441::1/64
set interface "bgroup1.1" ipv6 enable
set interface bgroup1.1 route
set interface bgroup2.1 ip 10.40.30.2/30
set interface "bgroup2.1" ipv6 mode "router"
set interface "bgroup2.1" ipv6 ip 2001:db8:4:442::2/64
set interface "bgroup2.1" ipv6 enable
set interface bgroup2.1 nat
set interface "bgroup0.1" pmtu ipv4
unset interface vlan1 bypass-others-ipsec
unset interface vlan1 bypass-non-ip
unset interface bgroup0.1 ip manageable
set interface bgroup0.2 ip manageable
set interface bgroup1.1 ip manageable
set interface bgroup2.1 ip manageable
set interface bgroup0.1 manage ping
set interface bgroup0.1 manage ident-reset
set interface bgroup0.2 manage ping
set interface bgroup0.2 manage telnet
set interface bgroup0.2 manage web
unset interface bgroup2 manage ping
unset interface bgroup2 manage ssh
unset interface bgroup2 manage telnet
unset interface bgroup2 manage snmp
unset interface bgroup2 manage ssl
unset interface bgroup2 manage web
unset interface bgroup2.1 manage ssh
unset interface bgroup2.1 manage snmp
unset interface bgroup2.1 manage ssl
set interface bgroup0.1 ipv6 ra link-address
set interface bgroup0.2 ipv6 ra prefix 2001:db8:3:340::/64 autonomous onlink
set interface bgroup0.2 ipv6 ra link-address
set interface bgroup1.1 ipv6 ra prefix 2001:db8:4:441::/64 autonomous onlink
unset interface bgroup1.1 ipv6 ra link-address
set interface bgroup1.1 ipv6 ra transmit
set interface bgroup2.1 ipv6 ra prefix 2001:db8:4:441::/64 autonomous onlink
set interface bgroup2.1 ipv6 ra prefix 2001:db8:3:340::/64 autonomous onlink
set interface bgroup2.1 ipv6 ra link-address
set interface bgroup2.1 ipv6 ra other
set interface bgroup2.1 ipv6 ra managed
set interface bgroup2.1 ipv6 ra transmit
set interface bgroup0.1 ipv6 nd nud
set interface bgroup0.2 ipv6 nd nud
set interface bgroup1.1 ipv6 nd nud
set interface bgroup2.1 ipv6 nd nud
set interface bgroup0.2 dip interface-ip incoming
set interface bgroup1.1 dip interface-ip incoming
set interface "serial0/0" modem settings "USR" init "AT&F"
set interface "serial0/0" modem settings "USR" active
set interface "serial0/0" modem speed 115200
set interface "serial0/0" modem retry 3
set interface "serial0/0" modem interval 10
set interface "serial0/0" modem idle-time 10
set flow tcp-mss
unset flow no-tcp-seq-check
set flow tcp-syn-check
set hostname firewall1
set pki authority default scep mode "auto"
set pki x509 default cert-path partial
set ike respond-bad-spi 1
unset ike ikeid-enumeration
unset ipsec access-session enable
set ipsec access-session maximum 5000
set ipsec access-session upper-threshold 0
set ipsec access-session lower-threshold 0
set ipsec access-session dead-p2-sa-timeout 0
unset ipsec access-session log-error
unset ipsec access-session info-exch-connected
unset ipsec access-session use-error-log
set url protocol websense
exit
set policy id 1 from "Trust" to "Untrust"  "Any-IPv4" "Any-IPv4" "ANY" permit 
set policy id 1
exit
set policy id 2 from "Trust" to "DMZ"  "Any-IPv4" "Any-IPv4" "ANY" permit 
set policy id 2
exit
set policy id 3 from "Untrust" to "Trust"  "Any-IPv4" "Any-IPv4" "ANY" deny 
set policy id 3
exit
set policy id 4 from "Untrust" to "DMZ"  "Any-IPv4" "Any-IPv4" "DNS" permit 
set policy id 4
set service "HTTP"
set service "NTP"
set service "PING"
set service "SSH"
exit
set policy id 5 from "DMZ" to "Untrust"  "Any-IPv4" "Any-IPv4" "DNS" permit 
set policy id 5
set service "HTTP"
set service "HTTP-PROXY"
set service "NTP"
set service "PING"
exit
set policy id 6 from "DMZ" to "Trust"  "Any-IPv4" "Any-IPv4" "DNS" permit 
set policy id 6
set service "HTTP"
set service "NTP"
set service "PING"
exit
set policy id 7 from "Trust" to "DMZ"  "Any-IPv6" "Any-IPv6" "ANY" permit 
set policy id 7
exit
set policy id 8 from "Trust" to "Untrust"  "Any-IPv6" "Any-IPv6" "ANY" permit 
set policy id 8
exit
set policy id 9 from "Untrust" to "Trust"  "Any-IPv6" "Any-IPv6" "ANY" deny 
set policy id 9
exit
set policy id 10 from "Untrust" to "DMZ"  "Any-IPv6" "Any-IPv6" "DNS" permit 
set policy id 10
set service "HTTP"
set service "ICMP6-ANY"
set service "NTP"
exit
set policy id 11 from "DMZ" to "Untrust"  "Any-IPv6" "Any-IPv6" "DNS" permit 
set policy id 11
set service "HTTP"
set service "ICMP6-ANY"
set service "NTP"
exit
set policy id 12 from "DMZ" to "Trust"  "Any-IPv6" "Any-IPv6" "DNS" permit 
set policy id 12
set service "HTTP"
set service "ICMP6-ANY"
set service "NTP"
exit
set policy id 13 from "DMZ" to "Untrust"  "Any-IPv4" "Any-IPv4" "ANY" permit 
set policy id 13 disable
set policy id 13
exit
set monitor cpu 100
set nsmgmt bulkcli reboot-timeout 60
set ssh version v2
set config lock timeout 5
set ntp server "10.40.2.32"
set ntp server backup1 "0.0.0.0"
set ntp server backup2 "0.0.0.0"
set snmp community "public" Read-Only Trap-on  traffic version v1
set snmp host "public" 10.40.1.0 255.255.255.0 
set snmp name "firewall1"
unset snmp auth-trap enable
set snmp port listen 161
set snmp port trap 162
set vrouter "untrust-vr"
exit
set vrouter "trust-vr"
set router-id 10.30.0.6
set protocol bgp 65004
set enable
set neighbor 10.30.0.5 remote-as 65003
set neighbor 10.30.0.5 enable
set neighbor 10.30.0.5 send-community
set network 10.40.2.0/24 weight 1 no-check

set network 10.40.1.0/24 weight 1 no-check

exit
set access-list 1
set route-map name "DMZ"
unset add-default-route
set route 0.0.0.0/0 interface bgroup0.1 gateway 10.30.0.5 preference 20
set route 2001:db8:4:444::/64 interface bgroup2.1 gateway 2001:db8:4:442::1 preference 20
set route 2001:db8:4:445::/64 interface bgroup2.1 gateway 2001:db8:4:442::1 preference 20
set route ::/0 interface bgroup0.1 gateway 2001:db8:3:340::5 preference 20
set protocol bgp
set redistribute route-map "DMZ" protocol connected
exit
exit
set interface bgroup0.1 protocol ospf area 0.0.0.0
set interface bgroup0.1 protocol ospf passive
set interface bgroup0.1 protocol ospf enable
set interface bgroup0.1 protocol ospf cost 1
set interface bgroup2.1 protocol ospf area 0.0.0.0
set interface bgroup2.1 protocol ospf enable
set interface bgroup2.1 protocol ospf cost 1
set interface bgroup0.1 protocol bgp
set interface bgroup1.1 protocol bgp
set vrouter "untrust-vr"
exit
set vrouter "trust-vr"
exit
