GRE tunnels
U
SER
G
UIDE
237
set ipsec phase1 MAIN_PH1 lifetime 7200 sec
set ipsec phase1 MAIN_PH1 exchange-mode aggressive
set ipsec phase1 MAIN_PH1 my-identifier fqdn NHRPSPOKE
set ipsec phase2 TUN0 match-phase1 MAIN_PH1
set ipsec phase2 TUN0 encryption-algorithm 3des
set ipsec phase2 TUN0 authentication-algorithm hmac-sha1
set ipsec phase2 TUN0 lifetime 3600 sec
set ipsec phase2 TUN0 protocol 47
set ipsec phase2 TUN0 mode transport
set ipsec phase2 TUN0 security esp
set ipsec phase2 TUN0 level unique
set ipsec phase2 TUN0 remote-subnet 85.34.166.1/32
set ipsec pre-shared-key 85.34.166.1 tiesseadm
set ipsec on
--------------------------------------
SPOKE 2
--------------------------------------
set gre tun0 name tun0
set gre tun0 tunnel-source wwan0
set gre tun0 tunnel-destination 85.34.166.1
set gre tun0 tunnel-address 172.16.66.2/24
set gre tun0 tunnel-peer 172.16.66.254/24
set gre tun0 multicast
set gre tun0 ttl 64
set gre tun0 on
set nhrp interface tun0
set nhrp map 172.16.66.254/24 85.34.166.1
set nhrp holding-time 300
set nhrp on
set ipsec phase1 MAIN_PH1 remote-end 85.34.166.1
set ipsec phase1 MAIN_PH1 local-end wwan0
set ipsec phase1 MAIN_PH1 encryption-algorithm 3des
set ipsec phase1 MAIN_PH1 hash-algorithm sha1
set ipsec phase1 MAIN_PH1 dh-group 2
set ipsec phase1 MAIN_PH1 authentication-method pre-shared-key
set ipsec phase1 MAIN_PH1 lifetime 7200 sec
set ipsec phase1 MAIN_PH1 exchange-mode aggressive
set ipsec phase1 MAIN_PH1 my-identifier fqdn NHRPSPOKE
set ipsec phase2 TUN0 match-phase1 MAIN_PH1
set ipsec phase2 TUN0 encryption-algorithm 3des
set ipsec phase2 TUN0 authentication-algorithm hmac-sha1