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.
Support level
Section titled “Support level”| Area | Level | Notes |
|---|---|---|
| GRE tunnels | Supported | Tunnel source/destination and encapsulated IPv4 forwarding. |
| Policy-based IPsec | Behaviour model | Crypto map, crypto ACL selectors, pre-shared key, transform set. |
| Route-based IPsec | Behaviour model | IOS 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. |
| DMVPN | Behaviour model | mGRE with NHRP: phase 1 relays via the hub, phase 2 goes spoke to spoke. |
| ESP on the wire | Supported | ESP header with SPI, sequence number, and ICV. Wireshark decodes it. |
| IKE proposals | No effect | Cipher, hash, DH group, and lifetime are read but treated as agreed. |
| Crypto negotiation | Not modelled | No IKE message exchange and no real encryption. |
Standards coverage
Section titled “Standards coverage”| Standard | Coverage | Notes |
|---|---|---|
| RFC 2784 | Supported | GRE encapsulation and decapsulation. Audited 2026-08-25, no defect. |
| RFC 4301 | Behaviour model | SA and selector decision, plus delivery past the far gateway. Audited 2026-08-25. |
| RFC 4303 | Behaviour model | ESP header format. The body is a deterministic keystream, not a cipher. |
| RFC 2332 | Behaviour model | NHRP registration and resolution for DMVPN. |
Feature matrix
Section titled “Feature matrix”| Feature | Status | Notes |
|---|---|---|
| Tunnel interface | Supported | Logical interface participates in routing. |
| Tunnel source/destination | Supported | Underlay reachability required. |
| Front-door VRF | Supported | tunnel vrf NAME routes the tunnel’s outer packets in that VRF. Without it, IOS routes them in the global table. |
| GRE encapsulation | Supported | Packet path through tunnel. Two tunnels between the same endpoints stay separate. |
tunnel key | No effect | RFC 2890 key is accepted and not used. |
| Crypto ACL / selector | Supported | The first permit of the matched ACL defines the protected subnets. |
| Crypto map binding | Supported | A crypto map applied to no interface encrypts nothing. |
| Dynamic crypto map | Partial | Read and reported. |
| Pre-shared key | Supported | crypto isakmp key or a keyring. A mismatch keeps the SA down. |
| Transform set | Supported | Both ends must name a matching transform. |
| IKEv1/IKEv2 proposal and policy | No effect | Accepted; parameters are not compared. |
| Mirrored selectors | Supported | The peer needs the mirror-image policy. |
| Delivery past the gateway | Supported | An SA that is up still fails if the far gateway has no route to the inner destination. |
| Certificates / PKI | No effect | Trustpoints are accepted; identity is not checked. |
| NAT-T | Not modelled | nat-transparency is accepted with no effect. |
Vendor command matrix
Section titled “Vendor command matrix”| Command | IOS-style | Junos-style | VyOS-style | Notes |
|---|---|---|---|---|
interface Tunnel0 | Supported | n/a | Partial | Tunnel interface. |
tunnel source GigabitEthernet0/0 | Supported | n/a | Partial | GRE source. |
tunnel destination 203.0.113.2 | Supported | n/a | Partial | GRE peer. |
tunnel mode gre ip | Supported | n/a | Partial | GRE mode. |
tunnel mode gre multipoint | Supported | n/a | n/a | DMVPN mGRE. |
tunnel vrf INET | Supported | n/a | n/a | Front-door VRF for the outer packets. Written back. |
crypto map CMAP 10 ipsec-isakmp | Supported | n/a | n/a | Policy-based IPsec. |
crypto isakmp key K address P | Supported | n/a | n/a | Pre-shared key. |
crypto ipsec transform-set | Supported | n/a | n/a | Transform set. |
crypto ikev2 proposal | No effect | n/a | n/a | Accepted, not compared. VyOS ike-group / esp-group are reported as not modelled. |
crypto ipsec profile | Supported | n/a | Partial | Tunnel protection. |
Cisco ASA site-to-site and remote access
Section titled “Cisco ASA site-to-site and remote access”| Command | Level | Notes |
|---|---|---|
crypto map M N match address ACL / set peer / set ikev1 transform-set / set ikev2 ipsec-proposal | Supported | Each 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 IF | Supported | The 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 K | Supported | The two ends’ keys must match. |
ikev2 local-authentication pre-shared-key / ikev2 remote-authentication pre-shared-key | Supported | Each side’s local key must equal the other side’s remote key. |
crypto ikev1|ikev2 policy, PFS, SA lifetime, NAT-T, DPD | No effect | Read and reported; the two ends’ proposals are taken as agreeing. |
ip local pool handed out by a remote-access tunnel-group or its group-policy | Supported | The 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 tunneled | Supported | The 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 / VTI | Not modelled | Reported 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.
Behaviour notes
Section titled “Behaviour notes”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.
Examples
Section titled “Examples”Canonical example
configure terminalcrypto isakmp key MYKEY address 203.0.113.2crypto ipsec transform-set TS esp-aes esp-sha-hmacaccess-list 110 permit ip 10.1.0.0 0.0.255.255 10.2.0.0 0.0.255.255crypto map CMAP 10 ipsec-isakmp set peer 203.0.113.2 set transform-set TS match address 110interface GigabitEthernet0/0 crypto map CMAPendVendor styles
IOS-style
interface Tunnel0 tunnel source GigabitEthernet0/0 tunnel destination 203.0.113.2 tunnel mode gre ip tunnel protection ipsec profile SITE-VPNVyOS-style
set interfaces tunnel tun0 encapsulation greset interfaces tunnel tun0 source-address 203.0.113.1set interfaces tunnel tun0 remote 203.0.113.2set vpn ipsec site-to-site peer 203.0.113.2 authentication mode pre-shared-secretTry it
Section titled “Try it”Known limits
Section titled “Known limits”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.