Skip to content

GRE and IPsec

GRE and IPsec provide tunnel behaviour for overlay and VPN labs. netverdict models tunnel reachability, GRE encapsulation, the decision whether an IPsec SA comes up, and ESP-protected forwarding.

AreaLevelNotes
GRE tunnelsSupportedTunnel source/destination and encapsulated IPv4 forwarding.
Policy-based IPsecBehaviour modelCrypto map, crypto ACL selectors, pre-shared key, transform set.
Route-based IPsecBehaviour modelIOS tunnel protection ipsec profile, VyOS VTI, and PAN-OS network ike gateway + network tunnel ipsec on a tunnel.N interface. Routing decides what enters the tunnel.
DMVPNBehaviour modelmGRE with NHRP: phase 1 relays via the hub, phase 2 goes spoke to spoke.
ESP on the wireSupportedESP header with SPI, sequence number, and ICV. Wireshark decodes it.
IKE proposalsNo effectCipher, hash, DH group, and lifetime are read but treated as agreed.
Crypto negotiationNot modelledNo IKE message exchange and no real encryption.
StandardCoverageNotes
RFC 2784SupportedGRE encapsulation and decapsulation. Audited 2026-08-25, no defect.
RFC 4301Behaviour modelSA and selector decision, plus delivery past the far gateway. Audited 2026-08-25.
RFC 4303Behaviour modelESP header format. The body is a deterministic keystream, not a cipher.
RFC 2332Behaviour modelNHRP registration and resolution for DMVPN.
FeatureStatusNotes
Tunnel interfaceSupportedLogical interface participates in routing.
Tunnel source/destinationSupportedUnderlay reachability required.
Front-door VRFSupportedtunnel vrf NAME routes the tunnel’s outer packets in that VRF. Without it, IOS routes them in the global table.
GRE encapsulationSupportedPacket path through tunnel. Two tunnels between the same endpoints stay separate.
tunnel keyNo effectRFC 2890 key is accepted and not used.
Crypto ACL / selectorSupportedThe first permit of the matched ACL defines the protected subnets.
Crypto map bindingSupportedA crypto map applied to no interface encrypts nothing.
Dynamic crypto mapPartialRead and reported.
Pre-shared keySupportedcrypto isakmp key or a keyring. A mismatch keeps the SA down.
Transform setSupportedBoth ends must name a matching transform.
IKEv1/IKEv2 proposal and policyNo effectAccepted; parameters are not compared.
Mirrored selectorsSupportedThe peer needs the mirror-image policy.
Delivery past the gatewaySupportedAn SA that is up still fails if the far gateway has no route to the inner destination.
Certificates / PKINo effectTrustpoints are accepted; identity is not checked.
NAT-TNot modellednat-transparency is accepted with no effect.
CommandIOS-styleJunos-styleVyOS-styleNotes
interface Tunnel0Supportedn/aPartialTunnel interface.
tunnel source GigabitEthernet0/0Supportedn/aPartialGRE source.
tunnel destination 203.0.113.2Supportedn/aPartialGRE peer.
tunnel mode gre ipSupportedn/aPartialGRE mode.
tunnel mode gre multipointSupportedn/an/aDMVPN mGRE.
tunnel vrf INETSupportedn/an/aFront-door VRF for the outer packets. Written back.
crypto map CMAP 10 ipsec-isakmpSupportedn/an/aPolicy-based IPsec.
crypto isakmp key K address PSupportedn/an/aPre-shared key.
crypto ipsec transform-setSupportedn/an/aTransform set.
crypto ikev2 proposalNo effectn/an/aAccepted, not compared. VyOS ike-group / esp-group are reported as not modelled.
crypto ipsec profileSupportedn/aPartialTunnel protection.
CommandLevelNotes
crypto map M N match address ACL / set peer / set ikev1 transform-set / set ikev2 ipsec-proposalSupportedEach map entry is a policy-based SA. The protected subnets are the crypto ACL’s first permit. IKEv2 is tried first, else IKEv1 with its transform set.
crypto map M interface IF with crypto ikev1|ikev2 enable IFSupportedThe SA forms only when IKE is enabled on the interface the map is bound to.
tunnel-group P type ipsec-l2l / ipsec-attributes / ikev1 pre-shared-key KSupportedThe two ends’ keys must match.
ikev2 local-authentication pre-shared-key / ikev2 remote-authentication pre-shared-keySupportedEach side’s local key must equal the other side’s remote key.
crypto ikev1|ikev2 policy, PFS, SA lifetime, NAT-T, DPDNo effectRead and reported; the two ends’ proposals are taken as agreeing.
ip local pool handed out by a remote-access tunnel-group or its group-policySupportedThe pool is routed out of the interface where WebVPN or a dynamic crypto map accepts clients. Clients are not in the topology, so split-tunnel lists and portal settings have no effect.
route IF 0.0.0.0 0.0.0.0 GW tunneledSupportedThe default route for traffic decrypted by a site-to-site tunnel, used when nothing more specific than a default route matches it. Plain traffic never uses it. Remote-access clients are not in the topology, so only site-to-site traffic is marked as decrypted.
vpn-filter, route-based interface Tunnel / VTINot modelledReported as unrecognized, with the reason.

Junos tunnel and IPsec config is not read yet. There is no show crypto command yet; check an SA through reachability and packet capture. On PAN-OS, crypto profiles, proposals, DH groups, lifetimes, DPD and proxy-IDs are reported as not modelled. Cisco Meraki Auto VPN and the SD-WAN overlay also carry traffic in ESP; see Cisco Meraki and SD-WAN.

The VPN solver answers: do the peers agree enough to form a protected path, and does selected traffic use that path? The SA comes up when the peer is reachable over the underlay, has the mirror policy, and matches key and transform. It deliberately avoids pretending to be a real cryptographic endpoint.

Canonical example
configure terminal
crypto isakmp key MYKEY address 203.0.113.2
crypto ipsec transform-set TS esp-aes esp-sha-hmac
access-list 110 permit ip 10.1.0.0 0.0.255.255 10.2.0.0 0.0.255.255
crypto map CMAP 10 ipsec-isakmp
set peer 203.0.113.2
set transform-set TS
match address 110
interface GigabitEthernet0/0
crypto map CMAP
end

Vendor styles

IOS-style
interface Tunnel0
tunnel source GigabitEthernet0/0
tunnel destination 203.0.113.2
tunnel mode gre ip
tunnel protection ipsec profile SITE-VPN
VyOS-style
set interfaces tunnel tun0 encapsulation gre
set interfaces tunnel tun0 source-address 203.0.113.1
set interfaces tunnel tun0 remote 203.0.113.2
set vpn ipsec site-to-site peer 203.0.113.2 authentication mode pre-shared-secret

Real encryption, IKE packet negotiation (the ASA’s IKEv2 key check is a comparison of configured keys, not an exchange), proposal mismatch, NAT-T, certificate validation, DPD timing, rekey, GETVPN, Junos IPsec, and a show crypto view are not modelled.