FW1 # diag vpn tunnel list
list all ipsec tunnel in vd 0
------------------------------------------------------
name=FW1FW2 ver=1 serial=1 20.20.20.1:0->10.10.10.1:0
bound_if=4 lgwy=static/1 tun=intf/0 mode=auto/1 encap=none/0
proxyid_num=1 child_num=0 refcnt=14 ilast=18 olast=880 ad=/0 itn-status=f7
stat: rxp=0 txp=28 rxb=0 txb=1923
dpd: mode=on-demand on=1 idle=20000ms retry=3 count=0 seqno=3
natt: mode=none draft=0 interval=0 remote_port=0
proxyid=FW1FW2 proto=0 sa=1 ref=2 serial=1 auto-negotiate
  src: 0:0.0.0.0/0.0.0.0:0
  dst: 0:0.0.0.0/0.0.0.0:0
  SA:  ref=3 options=18227 type=00 soft=0 mtu=1438 expire=42035/0B replaywin=2048
       seqno=1 esn=0 replaywin_lastseq=00000000 itn=0
  life: type=01 bytes=0/0 timeout=42900/43200
  dec: spi=69d50af9 esp=aes key=32 e21347cc4561f21635e9a7e86c4d19d638b61340a7d8c6f247c20307271bc03e
       ah=sha1 key=20 be6f0acdeff54b1a176c446d119f1bb85ec6e951
  enc: spi=9a4ae39b esp=aes key=32 696c8db21132e7f363cccda9f83fddab98d3f0d9aa488f53ed6f68bf14852166
       ah=sha1 key=20 993a1b1baa1fe764ec2e17140e224afb63c0e62f
  dec:pkts/bytes=0/0, enc:pkts/bytes=0/0
 

 

 

config firewall policy
    edit 1
        set name "ghghg"
        set uuid ebe79664-c390-51ea-91e1-93cf109e6515
        set srcintf "FW1FW2"
        set dstintf "port2"
        set srcaddr "100.100.100.1/32"
        set dstaddr "200.200.200.1/32"
        set action accept
        set schedule "always"
        set service "IKE"
        set logtraffic all
    next
    edit 2
        set name "sda"
        set uuid 59d695a8-c409-51ea-6df7-b0c43b9779ab
        set srcintf "FW1FW2"
        set dstintf "port2"
        set srcaddr "all"
        set dstaddr "all"
        set action accept
        set schedule "always"
        set service "ALL"
        set logtraffic all
    next
    edit 3
        set name "dfgdfg"
        set uuid 7466769a-c409-51ea-964c-cbe17dc5e5ba
        set srcintf "port2"
        set dstintf "FW1FW2"
        set srcaddr "all"
        set dstaddr "all"
        set action accept
        set schedule "always"
        set service "ALL"
        set logtraffic all
        set logtraffic-start enable
    next
    edit 8
        set name "dssdfdfsdf"
        set uuid 6c36e9ec-c40d-51ea-c90a-29137b0ee84d
        set srcintf "port1"
        set dstintf "FW1FW2"
        set srcaddr "all"
        set dstaddr "all"
        set action accept
        set schedule "always"
        set service "ALL"
        set logtraffic all
    next
    edit 9
        set name "sss"
        set uuid 777742ac-c417-51ea-c475-11b280755169
        set srcintf "port2"
        set dstintf "port1"
        set srcaddr "200.200.200.0/24"
        set dstaddr "all"
        set action accept
        set schedule "always"
        set service "ALL"
        set logtraffic all
    next

 

onfig vpn ipsec phase1-interface
    edit "FW1FW2"
        set interface "port1"
        set peertype any
        set remote-gw 10.10.10.1
        set psksecret ENC NKz3xQL9lNzyhn5GjQySqWmAZOoRsTes3l+flRQ5u5RbdvQl17P2oQWsqfbugZANoXvB/IzPNjZZqMu+WVFOEYbOkJjzIsXlF0mYyqvtoHSnBUcZS+X1NNHR1DJX8UBPlbykGt8TyZ6GEUPxkcOUOTJeiE9fZppyPl+PvoIlSoQyDbE6fuYKT9qJ4tFoz84pFp+z+Q==
    next
end
config vpn ipsec phase2-interface
    edit "FW1FW2"
        set phase1name "FW1FW2"
        set proposal aes256-sha1
        set auto-negotiate enable
    next
end

 

    edit "100.100.100.1/24"
        set uuid a45cea58-c37f-51ea-0350-8e641ef5598e
        set associated-interface "FW1FW2"
        set subnet 100.100.100.0 255.255.255.0
    next
    edit "200.200.200.0/24"
        set uuid beab2bae-c37f-51ea-c5df-717daa53e4fa
        set associated-interface "port2"
        set subnet 200.200.200.0 255.255.255.0
    next
    edit "100.100.100.1/32"
        set uuid e3fb6cde-c37f-51ea-2d96-d379c4a0d367
        set associated-interface "FW1FW2"
        set subnet 100.100.100.1 255.255.255.255
    next
    edit "200.200.200.1/32"
        set uuid f3d78a66-c37f-51ea-8993-07eb5f7734a3
        set associated-interface "port2"
        set subnet 200.200.200.1 255.255.255.255
    next
end

 

    edit "FW1FW2"
        set vdom "root"
        set ip 0.0.0.0 255.255.255.255
        set allowaccess ping
        set type tunnel
        set snmp-index 12
        set interface "port1"
    next
end

config system interface
    edit "mgmt"
        set vdom "root"
        set mode dhcp
        set allowaccess ping https ssh http fgfm
        set type physical
        set snmp-index 1
    next
    edit "port1"
        set vdom "root"
        set ip 20.20.20.1 255.255.255.0
        set allowaccess ping
        set type physical
        set snmp-index 2
    next
    edit "port2"
        set vdom "root"
        set ip 200.200.200.1 255.255.255.0
        set allowaccess ping https ssh snmp http fgfm
        set type physical
        set snmp-index 3
    next

W1 # diag sys session list

session info: proto=17 proto_state=00 duration=113 expire=177 timeout=0 flags=00000000 sockflag=00000000 sockport=0 av_idx=0 use=4
origin-shaper=
reply-shaper=
per_ip_shaper=
ha_id=0 policy_dir=0 tunnel=/ helper=dns-udp vlan_cos=255/255
state=log local nds 
statistic(bytes/packets/allow_err): org=5151/77/1 reply=0/0/0 tuples=2
tx speed(Bps/kbps): 45/0 rx speed(Bps/kbps): 0/0
orgin->sink: org out->post, reply pre->in dev=0->0/0->0 gwy=0.0.0.0/0.0.0.0
hook=out dir=org act=noop 192.168.192.133:4057->192.168.192.1:53(0.0.0.0:0)
hook=in dir=reply act=noop 192.168.192.1:53->192.168.192.133:4057(0.0.0.0:0)
misc=0 policy_id=0 auth_info=0 chk_client_info=0 vd=0
serial=0000039b tos=ff/ff app_list=0 app=0 url_cat=0
dd_type=0 dd_mode=0

session info: proto=17 proto_state=00 duration=414 expire=64 timeout=0 flags=00000000 sockflag=00000000 sockport=0 av_idx=0 use=4
origin-shaper=
reply-shaper=
per_ip_shaper=
ha_id=0 policy_dir=0 tunnel=/ helper=dns-udp vlan_cos=255/255
state=log local nds 
statistic(bytes/packets/allow_err): org=13704/206/1 reply=0/0/0 tuples=2
tx speed(Bps/kbps): 33/0 rx speed(Bps/kbps): 0/0
orgin->sink: org out->post, reply pre->in dev=0->0/0->0 gwy=0.0.0.0/0.0.0.0
hook=out dir=org act=noop 192.168.192.133:4465->192.168.192.1:53(0.0.0.0:0)
hook=in dir=reply act=noop 192.168.192.1:53->192.168.192.133:4465(0.0.0.0:0)
misc=0 policy_id=0 auth_info=0 chk_client_info=0 vd=0
serial=000002a8 tos=ff/ff app_list=0 app=0 url_cat=0
dd_type=0 dd_mode=0

session info: proto=17 proto_state=00 duration=101 expire=138 timeout=0 flags=00000000 sockflag=00000000 sockport=0 av_idx=0 use=4
origin-shaper=
reply-shaper=
per_ip_shaper=
ha_id=0 policy_dir=0 tunnel=/ helper=dns-udp vlan_cos=255/255
state=log local nds 
statistic(bytes/packets/allow_err): org=276/2/1 reply=0/0/0 tuples=2
tx speed(Bps/kbps): 2/0 rx speed(Bps/kbps): 0/0
orgin->sink: org out->post, reply pre->in dev=0->0/0->0 gwy=0.0.0.0/0.0.0.0
hook=out dir=org act=noop 192.168.192.133:4057->208.91.112.220:53(0.0.0.0:0)
hook=in dir=reply act=noop 208.91.112.220:53->192.168.192.133:4057(0.0.0.0:0)
misc=0 policy_id=0 auth_info=0 chk_client_info=0 vd=0
serial=000003a2 tos=ff/ff app_list=0 app=0 url_cat=0
dd_type=0 dd_mode=0

session info: proto=17 proto_state=00 duration=109 expire=177 timeout=0 flags=00000000 sockflag=00000000 sockport=0 av_idx=0 use=4
origin-shaper=
reply-shaper=
per_ip_shaper=
ha_id=0 policy_dir=0 tunnel=/ helper=dns-udp vlan_cos=255/255
state=log local nds 
statistic(bytes/packets/allow_err): org=2128/33/1 reply=0/0/0 tuples=2
tx speed(Bps/kbps): 19/0 rx speed(Bps/kbps): 0/0
orgin->sink: org out->post, reply pre->in dev=0->0/0->0 gwy=0.0.0.0/0.0.0.0
hook=out dir=org act=noop 192.168.192.133:4057->208.91.112.53:53(0.0.0.0:0)
hook=in dir=reply act=noop 208.91.112.53:53->192.168.192.133:4057(0.0.0.0:0)
misc=0 policy_id=0 auth_info=0 chk_client_info=0 vd=0
serial=0000039e tos=ff/ff app_list=0 app=0 url_cat=0
dd_type=0 dd_mode=0

session info: proto=17 proto_state=00 duration=109 expire=177 timeout=0 flags=00000000 sockflag=00000000 sockport=0 av_idx=0 use=4
origin-shaper=
reply-shaper=
per_ip_shaper=
ha_id=0 policy_dir=0 tunnel=/ helper=dns-udp vlan_cos=255/255
state=log local nds 
statistic(bytes/packets/allow_err): org=1052/17/1 reply=0/0/0 tuples=2
tx speed(Bps/kbps): 9/0 rx speed(Bps/kbps): 0/0
orgin->sink: org out->post, reply pre->in dev=0->0/0->0 gwy=0.0.0.0/0.0.0.0
hook=out dir=org act=noop 192.168.192.133:4057->208.91.112.52:53(0.0.0.0:0)
hook=in dir=reply act=noop 208.91.112.52:53->192.168.192.133:4057(0.0.0.0:0)
misc=0 policy_id=0 auth_info=0 chk_client_info=0 vd=0
serial=0000039f tos=ff/ff app_list=0 app=0 url_cat=0
dd_type=0 dd_mode=0

session info: proto=17 proto_state=00 duration=411 expire=18 timeout=0 flags=00000000 sockflag=00000000 sockport=0 av_idx=0 use=4
origin-shaper=
reply-shaper=
per_ip_shaper=
ha_id=0 policy_dir=0 tunnel=/ helper=dns-udp vlan_cos=255/255
state=log local nds 
statistic(bytes/packets/allow_err): org=966/7/1 reply=0/0/0 tuples=2
tx speed(Bps/kbps): 2/0 rx speed(Bps/kbps): 0/0
orgin->sink: org out->post, reply pre->in dev=0->0/0->0 gwy=0.0.0.0/0.0.0.0
hook=out dir=org act=noop 192.168.192.133:4465->208.91.112.220:53(0.0.0.0:0)
hook=in dir=reply act=noop 208.91.112.220:53->192.168.192.133:4465(0.0.0.0:0)
misc=0 policy_id=0 auth_info=0 chk_client_info=0 vd=0
serial=000002a9 tos=ff/ff app_list=0 app=0 url_cat=0
dd_type=0 dd_mode=0

session info: proto=17 proto_state=00 duration=409 expire=51 timeout=0 flags=00000000 sockflag=00000000 sockport=0 av_idx=0 use=4
origin-shaper=
reply-shaper=
per_ip_shaper=
ha_id=0 policy_dir=0 tunnel=/ helper=dns-udp vlan_cos=255/255
state=log local nds 
statistic(bytes/packets/allow_err): org=5076/78/1 reply=0/0/0 tuples=2
tx speed(Bps/kbps): 12/0 rx speed(Bps/kbps): 0/0
orgin->sink: org out->post, reply pre->in dev=0->0/0->0 gwy=0.0.0.0/0.0.0.0
hook=out dir=org act=noop 192.168.192.133:4465->208.91.112.53:53(0.0.0.0:0)
hook=in dir=reply act=noop 208.91.112.53:53->192.168.192.133:4465(0.0.0.0:0)
misc=0 policy_id=0 auth_info=0 chk_client_info=0 vd=0
serial=000002ad tos=ff/ff app_list=0 app=0 url_cat=0
dd_type=0 dd_mode=0

session info: proto=17 proto_state=00 duration=409 expire=51 timeout=0 flags=00000000 sockflag=00000000 sockport=0 av_idx=0 use=4
origin-shaper=
reply-shaper=
per_ip_shaper=
ha_id=0 policy_dir=0 tunnel=/ helper=dns-udp vlan_cos=255/255
state=log local nds 
statistic(bytes/packets/allow_err): org=3177/49/1 reply=0/0/0 tuples=2
tx speed(Bps/kbps): 7/0 rx speed(Bps/kbps): 0/0
orgin->sink: org out->post, reply pre->in dev=0->0/0->0 gwy=0.0.0.0/0.0.0.0
hook=out dir=org act=noop 192.168.192.133:4465->208.91.112.52:53(0.0.0.0:0)
hook=in dir=reply act=noop 208.91.112.52:53->192.168.192.133:4465(0.0.0.0:0)
misc=0 policy_id=0 auth_info=0 chk_client_info=0 vd=0
serial=000002ac tos=ff/ff app_list=0 app=0 url_cat=0
dd_type=0 dd_mode=0
total session 8