{"id":121,"date":"2025-08-18T10:37:58","date_gmt":"2025-08-18T10:37:58","guid":{"rendered":"https:\/\/www.examtopics.info\/blog\/?p=121"},"modified":"2026-10-29T23:10:32","modified_gmt":"2026-10-29T23:10:32","slug":"how-to-set-up-gre-tunnels-over-ipsec-vpn-with-nat-on-cisco-devices","status":"publish","type":"post","link":"https:\/\/www.examtopics.info\/blog\/how-to-set-up-gre-tunnels-over-ipsec-vpn-with-nat-on-cisco-devices\/","title":{"rendered":"How to Set Up GRE Tunnels over IPsec VPN with NAT on Cisco Devices"},"content":{"rendered":"<p><strong>Technical scope and safety note (October 2026).<\/strong> GRE over IPsec with NAT is not a single switch or a copy-and-paste configuration. A successful deployment depends on the Cisco platform and IOS\/IOS XE release, GRE endpoint addresses, IKE identities, NAT mapping behavior, IPsec protection method, and return routes. This tutorial uses a <strong>Cisco Catalyst 9300X \/ IOS XE 17.12.x documentation reference<\/strong> and a proposed two-site lab. The topology, address mapping, and combined feature behavior have <strong>not been executed in a Cisco lab<\/strong>. Commands below illustrate documented building blocks, not a deployable configuration or an issuer-certified result. Verify the exact hardware, release, feature support, and NAT configuration before any change to a live network.<\/p>\n<h2>Understand the packet layers and draw the real topology<\/h2>\n<p>GRE carries an original packet inside an outer IP packet. It can transport routed traffic and some protocols that are awkward to run directly across a plain policy-based IPsec connection, but <strong>GRE itself does not encrypt anything<\/strong>. In a protected GRE-over-IPsec design, an IPsec security association protects that GRE traffic. If a NAT is detected and NAT traversal is negotiated, <strong>IPsec ESP\u2014not GRE itself\u2014is encapsulated in UDP<\/strong>, normally using port <code>4500<\/code>. The difference determines what a firewall should see at the public boundary. The UDP encapsulation of IPsec ESP in RFC 3948 describes the packet layer precisely.<\/p>\n<p>Consider this isolated <em>proposed<\/em> lab, using documentation-only address ranges for public peers:<\/p>\n<pre><code class=\"language-text\">Site A LAN 10.10.10.0\/24                           Site B LAN 10.20.20.0\/24\n       |                                                    |\n    Router A -- 10.0.0.2 -- NAT\/firewall -- Internet -- Router B\n       |                    198.51.100.10               203.0.113.20\n  Tunnel100:                                             Tunnel100:\n  172.16.100.1\/30                                       172.16.100.2\/30\n\nProposed protected flow:\nLAN IP packet -&gt; GRE encapsulation -&gt; IPsec ESP protection\n-&gt; optional ESP-in-UDP 4500 if NAT-T is negotiated -&gt; NAT mapping\n-&gt; public peer -&gt; ESP decapsulation -&gt; GRE decapsulation -&gt; LAN\n<\/code><\/pre>\n<p>The router at Site A has a private-facing underlay address and the firewall translates it to a fixed public address. Site B has a public underlay endpoint. <strong>Underlay endpoints, translated public addresses, overlay addresses, and IKE authentication identities have different roles<\/strong>. Site B may intentionally contact Site A through its <code>198.51.100.10<\/code> public mapping, while Router A&#8217;s configured GRE source must be an address or interface present on that router; neither choice alone establishes the identity authenticated by IKEv2. Design the mappings explicitly: which side initiates the negotiation; how Site B locates Site A&#8217;s NAT external address; what the responder expects as its authenticated peer identity; and which underlay route reaches each peer. A static mapping can support inbound initiation only if the firewall and endpoint support the full policy and return path. Merely opening UDP port <code>4500<\/code> does not establish a tunnel.<\/p>\n<div aria-label=\"Understand the packet layers and draw the real topology \u2014 data table\" class=\"et-wp-table-scroll\" role=\"region\" style=\"max-width:100%;overflow-x:auto;overflow-y:hidden;margin:18px 0 24px;border:1px solid #ccd7e2;border-radius:8px;background:#ffffff;-webkit-overflow-scrolling:touch\" tabindex=\"0\">\n<table class=\"et-wp-data-table\" style=\"width:100%;min-width:600px;border-collapse:collapse;border-spacing:0;table-layout:auto;color:#1a2c3f;background:#ffffff;font-size:14px;line-height:1.5\">\n<thead>\n<tr>\n<th scope=\"col\" style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;font-weight:700;background:#e9f1f8;color:#152e45;\">Element<\/th>\n<th scope=\"col\" style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;font-weight:700;background:#e9f1f8;color:#152e45;\">Proposed lab value<\/th>\n<th scope=\"col\" style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;font-weight:700;background:#e9f1f8;color:#152e45;\">What must be proven<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"background:#ffffff\">\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Site A \/ Site B protected LANs<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\"><code>10.10.10.0\/24<\/code> \/ <code>10.20.20.0\/24<\/code><\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Distinct addressing and bidirectional permitted routes<\/td>\n<\/tr>\n<tr style=\"background:#f5f8fc\">\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">GRE overlay addresses<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\"><code>172.16.100.1\/30<\/code> \/ <code>172.16.100.2\/30<\/code><\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Each tunnel interface can reach its overlay peer after protection<\/td>\n<\/tr>\n<tr style=\"background:#ffffff\">\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Site A pre-NAT \/ mapped underlay<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\"><code>10.0.0.2<\/code> \/ <code>198.51.100.10<\/code><\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Correct mapping, persistence, reverse traffic, and peer recognition<\/td>\n<\/tr>\n<tr style=\"background:#f5f8fc\">\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Site B underlay<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\"><code>203.0.113.20<\/code><\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Routable from Site A&#8217;s NAT egress and not accidentally routed into Tunnel100<\/td>\n<\/tr>\n<tr style=\"background:#ffffff\">\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">IKEv2 \/ IPsec<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Profile and approved cryptographic suite<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Authenticated IKE SA, negotiated child SA, valid selectors and counters<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Confirm feature support before choosing a protection method<\/h2>\n<p>Cisco&#8217;s GRE over IPsec on IOS XE Dublin 17.12.x documents an <strong>IKEv2 profile \u2192 IPsec profile \u2192 <code>tunnel protection ipsec profile<\/code><\/strong> workflow on supported Catalyst 9300 platforms. For this documented feature and release, Cisco excludes <strong>VRF support for GRE over IPsec<\/strong>, multipoint GRE, duplicate same-source\/same-destination sessions, and a concurrent static VTI with the same tunnel endpoints. The separate NAT Transparency chapter&#8217;s VRF support does <strong>not<\/strong> establish combined GRE\/IPsec\/VRF support. These restrictions are <strong>platform- and feature-specific<\/strong>, not universal rules for every Cisco router release. Check the actual device and image in Cisco Feature Navigator.<\/p>\n<p>The separate IOS XE 17.12.x IPsec NAT Transparency identifies support introduced on the <strong>Catalyst 9300X family in IOS XE 17.9.1<\/strong>, along with important constraints. Its NAT transparency discussion says that a dynamic address-NAT policy is not supported for that feature and that IPsec and NAT are not supported on the <em>same<\/em> device in that configuration model. This is why the proposed lab places translation on a <strong>separate upstream NAT\/firewall<\/strong>, and why you cannot infer working GRE+IPsec+NAT interoperability merely because two features are documented individually. A compatible, joint topology and software build still require verification.<\/p>\n<p>Do not copy the 2008 Cisco IOS 12.4 \/ PIX 7.x GRE-and-NAT configuration into a modern IOS XE change ticket. It is useful historical evidence, including its explicit note that <strong>its particular design does not work with PAT<\/strong> and that the crypto map belongs on the physical interface for relevant IOS versions. It is not proof that modern IKEv2 NAT-T always fails with PAT. Conversely, it is not permission to attach a legacy crypto map to a modern tunnel interface. Choose <strong>one supported model for one target release<\/strong>: a legacy physical-interface crypto map where documented, or an IOS XE IPsec profile protecting the GRE tunnel where supported.<\/p>\n<h2>Build a documented GRE\/IPsec baseline before enabling the NAT path<\/h2>\n<p>Begin in a disposable lab without the intermediate NAT. Confirm the physical underlay addresses and routes in both directions. The GRE source and destination must identify actual reachable underlay endpoints; the tunnel&#8217;s overlay addresses are for traffic <strong>inside<\/strong> the tunnel. Build the IKEv2 keyring or <a href=\"https:\/\/www.examtopics.info\/blog\/comptia-sy0-701-pki-certificates-and-trust-chains\/\">certificate trust<\/a>, peer match\/identity, authentication policy, approved IPsec transform, and IPsec profile before attaching it to <code>Tunnel100<\/code>. Use secrets held outside the article, not example passwords copied into running configurations.<\/p>\n<p>The following is an <strong>annotated, incomplete IOS XE 17.12.x command scaffold<\/strong>, not a tested configuration. It shows the command hierarchy documented by Cisco; tokens in angle brackets are values to validate in the target lab, and companion configuration on Site B is deliberately omitted pending its peer-identity and NAT policy design:<\/p>\n<pre><code class=\"language-text\">! Lab-only command structure, NOT ready to paste into production.\ncrypto ikev2 keyring LAB-KEYRING\n peer SITE-B\n  address &lt;SITE_B_REACHABLE_IKE_ENDPOINT&gt;\n  pre-shared-key local &lt;UNIQUE_SECRET_FROM_SECURE_VAULT&gt;\n  pre-shared-key remote &lt;UNIQUE_SECRET_FROM_SECURE_VAULT&gt;\n!\ncrypto ikev2 profile LAB-IKEV2\n match identity remote address &lt;VERIFIED_SITE_B_IKE_IDENTITY_IPV4&gt;\n authentication local pre-share\n authentication remote pre-share\n keyring local LAB-KEYRING\n!\ncrypto ipsec profile LAB-IPSEC\n set transform-set &lt;APPROVED_PLATFORM_TRANSFORM_SET&gt;\n set ikev2-profile LAB-IKEV2\n!\ninterface Tunnel100\n ip address 172.16.100.1 255.255.255.252\n tunnel source &lt;VERIFIED_SITE_A_UNDERLAY_SOURCE&gt;\n tunnel destination &lt;VERIFIED_SITE_B_UNDERLAY_ENDPOINT&gt;\n tunnel protection ipsec profile LAB-IPSEC\n!\n! After verifying the tunnel and return route:\n! ip route 10.20.20.0 255.255.255.0 Tunnel100\n<\/code><\/pre>\n<p>This code does <strong>not<\/strong> include the transform-set definition, IKE proposal\/policy, platform\/feature license, NAT mapping, Site B peer configuration, IKE identity changes induced by NAT, interface policy or encryption-cipher approval. Those are deployment prerequisites, not optional cosmetic details. The scaffold&#8217;s <code>match identity remote address<\/code> form requires a verified <strong>IPv4 address identity<\/strong>; its placeholder must not be replaced with an FQDN. If the peer authenticates with a DNS name or another identity type, use the <strong>different identity-matching syntax<\/strong> supported by that exact IOS XE release, and validate the responder&#8217;s identity against the IKEv2 policy. A NAT-translated transport address does not, by itself, determine the authenticated identity. In an enterprise implementation, certificate-backed authentication may be preferable to a shared secret, but it requires its own issuer- and platform-verified trust configuration.<\/p>\n<p>Before using the routed overlay, verify <strong>underlay routes do not recurse into Tunnel100<\/strong>. A default route pointing back through the protected overlay can prevent negotiation altogether or form a routing loop. The LAN route to the opposite site can use the tunnel only after the underlay and security association are stable. Cisco&#8217;s feature guide supplies the complete syntax and supported transforms for the selected platform; the abbreviated scaffold above is intended to make dependencies visible, not replace that guide.<\/p>\n<h2>Introduce NAT-T without treating raw GRE as exposed traffic<\/h2>\n<p>Add the intermediary NAT only after recording a successful baseline using directly reachable IKE peers. On the translating firewall, define the public-to-private mapping that the actual deployment needs, enforce a narrowly scoped firewall rule, and observe the traffic path. Address translation is <strong>not<\/strong> a security access policy: an allowed mapping can still need separate filtering, and a blocked firewall rule cannot be fixed by opening arbitrary translations.<\/p>\n<p>IKEv2 NAT detection and ESP encapsulation are described by RFC 7296, section 2.23. In a negotiated NAT-T session, an outside capture can show IKE on UDP <code>500<\/code> initially and subsequent IKE\/encapsulated ESP on UDP <code>4500<\/code>; exact behavior depends on the implementation and state. Only <strong>if the negotiated IPsec security association actually protects GRE traffic on a supported combined design<\/strong> can UDP-encapsulated ESP carry that protected GRE packet without an exposed protocol-47 hole through the translating boundary. An IKEv2 SA in the READY state alone does not demonstrate GRE payload encryption. That is <strong>not<\/strong> the same as an <em>unprotected raw GRE tunnel<\/em>, which uses IP protocol <code>47<\/code> and has different NAT limitations. Test the actual implementation rather than blindly allowing both.<\/p>\n<p>For Cisco&#8217;s documented 17.12.x IPsec NAT Transparency feature, NAT traversal is <strong>detected and negotiated automatically when both peers support it<\/strong>. The feature documentation also warns that static NAT policies that translate both source IP and source port need appropriate mappings for UDP <code>500<\/code> <strong>and<\/strong> <code>4500<\/code>; it lists particular unsupported dynamic-NAT configurations. Don&#8217;t add a blanket \u201cturn NAT-T on\u201d command to every router. Treat a missing UDP <code>4500<\/code> mapping, unstable NAT state, incompatible peer identity, incorrectly matched IPsec selectors and routing recursion as separate hypotheses. Keep NAT mappings and IKE\/ESP policy tightly scoped to trusted endpoints.<\/p>\n<div aria-label=\"Introduce NAT-T without treating raw GRE as exposed traffic \u2014 data table\" class=\"et-wp-table-scroll\" role=\"region\" style=\"max-width:100%;overflow-x:auto;overflow-y:hidden;margin:18px 0 24px;border:1px solid #ccd7e2;border-radius:8px;background:#ffffff;-webkit-overflow-scrolling:touch\" tabindex=\"0\">\n<table class=\"et-wp-data-table\" style=\"width:100%;min-width:600px;border-collapse:collapse;border-spacing:0;table-layout:auto;color:#1a2c3f;background:#ffffff;font-size:14px;line-height:1.5\">\n<thead>\n<tr>\n<th scope=\"col\" style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;font-weight:700;background:#e9f1f8;color:#152e45;\">Boundary observation<\/th>\n<th scope=\"col\" style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;font-weight:700;background:#e9f1f8;color:#152e45;\">Supports this interpretation<\/th>\n<th scope=\"col\" style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;font-weight:700;background:#e9f1f8;color:#152e45;\">Does <strong>not<\/strong> prove<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"background:#ffffff\">\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">UDP <code>500<\/code> exchange begins<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">IKE signaling reaches a peer<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Authentication or protected GRE data succeeded<\/td>\n<\/tr>\n<tr style=\"background:#f5f8fc\">\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">UDP <code>4500<\/code> with a matching SPI\/state<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">NAT-T encapsulated IKE\/ESP may be in use<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">All TCP\/UDP application flows work over the overlay<\/td>\n<\/tr>\n<tr style=\"background:#ffffff\">\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Raw IP protocol <code>47<\/code> is visible outside<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">GRE may be exposed, or captured before IPsec protection<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Encryption; if this is the untrusted public egress and protection was expected, stop and investigate<\/td>\n<\/tr>\n<tr style=\"background:#f5f8fc\">\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">IKE SA established, IPsec counters unchanged<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Authentication may work, while matching data traffic does not<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">GRE routing, selector or firewall correctness<\/td>\n<\/tr>\n<tr style=\"background:#ffffff\">\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">IPsec encrypt\/decrypt counters rise both ways<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Protected matching traffic crosses the security association<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">The application or return route is healthy<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Verify the build from underlay reachability to real payload delivery<\/h2>\n<p>Use an ordered verification sequence. First verify the exact running release and the peer&#8217;s <strong>physical underlay<\/strong> reachability. Then verify the tunnel interface definition, IKEv2 security association, IPsec child security association and routing table. Only after those pass should you test an authorized application or routing protocol over the GRE overlay. Cisco&#8217;s IKEv2 security-association verification example illustrates how <code>show crypto ikev2 sa detailed<\/code> and <code>show crypto ipsec sa<\/code> expose peer identities, negotiated sessions, SPIs and traffic counters. Its older example cryptographic algorithms are <strong>not<\/strong> recommendations for a modern deployment.<\/p>\n<pre><code class=\"language-text\">show version\nshow ip interface brief\nshow ip route &lt;SITE_B_UNDERLAY_ENDPOINT&gt;\nshow interfaces Tunnel100\nshow crypto ikev2 sa detail\nshow crypto ipsec sa\nshow ip route 10.20.20.0\n<\/code><\/pre>\n<p>Record the timestamp, observed local\/remote peer and IKE identity, IKE state, IPsec transform, outbound\/inbound SPI, and <code>pkts encaps<\/code>\/<code>pkts decaps<\/code> before and after generating a <strong>single permitted<\/strong> test flow from one LAN host to another. Rising transmitted and received counters on the expected association help confirm protected traffic. Zero receive counters with growing transmit counters direct attention to return path, NAT state, selectors or remote firewall decisions. No new tunnel counters despite an established IKE SA suggest the traffic did not match the intended protected path.<\/p>\n<p>Observe traffic at the <strong>correct capture point<\/strong>. On the LAN or before GRE encapsulation you should see ordinary traffic. On the GRE interface you may see overlay traffic or routed decapsulated traffic depending on capture capability. On the public side of a translating firewall you should ordinarily expect protected IPsec traffic, including UDP-encapsulated ESP when NAT-T is active\u2014not plaintext application payloads. Record the observed UDP source\/destination ports and whether any intermediate firewall silently rewrites a peer endpoint. <strong>If raw GRE or readable application traffic is unexpectedly visible at an untrusted public egress where IPsec protection is required, stop testing and investigate the missing protection.<\/strong> Do not publish fake sample outputs; insert actual redacted device output from the validated lab into a future approved revision only if it supports the claim.<\/p>\n<p>If a debug is needed, filter by the expected peer and run it in a controlled maintenance window. Unbounded IKE or encryption debugs can overwhelm a system and may expose addresses or identifying information. Save the pre-change configuration, capture evidence, and agree a rollback step before changing any live crypto profile. Clearing security associations can interrupt service; it is <strong>not<\/strong> a harmless first diagnostic command.<\/p>\n<h2>Troubleshoot one failed layer at a time<\/h2>\n<p>A recurring GRE\/IPsec failure is trying to fix a routing defect by changing IPsec policy. Work in the opposite order: first test the underlay to the authentic peer, then IKE, then IPsec selectors and counters, then GRE routing, then the application. A tunnel interface reported as operational is not equivalent to two-way payload delivery.<\/p>\n<div aria-label=\"Troubleshoot one failed layer at a time \u2014 data table\" class=\"et-wp-table-scroll\" role=\"region\" style=\"max-width:100%;overflow-x:auto;overflow-y:hidden;margin:18px 0 24px;border:1px solid #ccd7e2;border-radius:8px;background:#ffffff;-webkit-overflow-scrolling:touch\" tabindex=\"0\">\n<table class=\"et-wp-data-table\" style=\"width:100%;min-width:600px;border-collapse:collapse;border-spacing:0;table-layout:auto;color:#1a2c3f;background:#ffffff;font-size:14px;line-height:1.5\">\n<thead>\n<tr>\n<th scope=\"col\" style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;font-weight:700;background:#e9f1f8;color:#152e45;\">Symptom<\/th>\n<th scope=\"col\" style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;font-weight:700;background:#e9f1f8;color:#152e45;\">Evidence to request<\/th>\n<th scope=\"col\" style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;font-weight:700;background:#e9f1f8;color:#152e45;\">Narrow next hypothesis<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"background:#ffffff\">\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">No IKEv2 SA<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Underlay route, UDP 500\/4500 capture, NAT mapping and peer address<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Inaccessible endpoint or firewall\/NAT failure<\/td>\n<\/tr>\n<tr style=\"background:#f5f8fc\">\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">IKEv2 SA exists but no IPsec SA<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Authentication\/identity, traffic selectors, transform proposals, errors<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Crypto-policy mismatch or incompatible selectors<\/td>\n<\/tr>\n<tr style=\"background:#ffffff\">\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">IPsec encrypt grows but decrypt stays zero<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Peer reachability, reverse mapping, remote IPsec logs<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Return path, NAT idle\/mapping or remote accept issue<\/td>\n<\/tr>\n<tr style=\"background:#f5f8fc\">\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Security associations work but Tunnel100 drops<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Tunnel source\/destination, routing recursion, protocol 47 inside security selector<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">GRE endpoint or overlay-route failure<\/td>\n<\/tr>\n<tr style=\"background:#ffffff\">\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Small ping works, application hangs<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Measured path MTU, PMTUD, TCP MSS, fragmentation evidence<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Encapsulation-overhead \/ ICMP filtering problem<\/td>\n<\/tr>\n<tr style=\"background:#f5f8fc\">\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Only one direction of LAN traffic works<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">LAN return routes and device ACL\/firewall logs at both sites<\/td>\n<td style=\"padding:10px 12px;text-align:left;vertical-align:top;border:1px solid #d2dce6;overflow-wrap:anywhere;word-break:normal;white-space:normal;background:transparent;\">Asymmetric routing or access rule; don&#8217;t widen all ACLs<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Finally measure path MTU instead of choosing a universal <code>ip mtu<\/code> or TCP MSS value. GRE, IPsec and NAT-T add different overhead depending on security transforms, address family and encapsulation mode. The GRE\/IPsec fragmentation and path-MTU discovery distinguishes packet fragmentation from PMTUD and explains the limited role of TCP MSS adjustments. Record the actual path MTU, whether the relevant ICMP messages pass, and the observed symptom before proposing an MTU or MSS change. An arbitrary \u201c1400\u201d configuration can obscure the real cause or reduce performance unnecessarily.<\/p>\n<h2>Decide whether the evidence supports deployment<\/h2>\n<p>An acceptable change record would show the target Cisco device\/model and running IOS XE build; the approved GRE and IPsec feature combination; each source, translated and destination underlay address; both site LAN and overlay routes; the peer authentication model; firewall\/NAT mapping and allowed UDP ports; mutually verified security associations; traffic counters in both directions; and at least one successfully observed application test. It should also include a rollback and evidence-redaction procedure. That is a testable acceptance record, not an assertion that opening NAT-T solves GRE.<\/p>\n<p>The historical IOS\/PIX tutorial and the IOS XE 17.12.x documentation solve <strong>different engineering problems on different platforms<\/strong>. Using them interchangeably\u2014or claiming a generic rule always works under PAT\u2014would make this tutorial unsafe. The proposed two-site design above remains <strong>an unexecuted reference plan<\/strong> until an administrator validates the complete configuration on the exact devices, licenses, software builds, NAT model and peer identity scheme. Readers can use the sequence to reason about a real deployment, but must not treat these placeholders as a working configuration or claim that this article establishes Cisco certification or vendor approval.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Technical scope and safety note (October 2026). GRE over IPsec with NAT is not a single switch or a copy-and-paste configuration. A successful deployment depends on the Cisco platform and IOS\/IOS XE release, GRE endpoint addresses, IKE identities, NAT mapping behavior, IPsec protection method, and return routes. This tutorial uses a Cisco Catalyst 9300X \/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,2],"tags":[],"class_list":["post-121","post","type-post","status-publish","format-standard","hentry","category-cybersecurity","category-post"],"_links":{"self":[{"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/posts\/121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/comments?post=121"}],"version-history":[{"count":4,"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/posts\/121\/revisions"}],"predecessor-version":[{"id":5930,"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/posts\/121\/revisions\/5930"}],"wp:attachment":[{"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/media?parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/categories?post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.examtopics.info\/blog\/wp-json\/wp\/v2\/tags?post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}