Skip to content

Commit 6f3fd77

Browse files
added port4500 (#24038)
1 parent ee21eac commit 6f3fd77

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/content/docs/magic-wan/configuration/manually/third-party/cisco-ios-xe.mdx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You should replace peer addresses with the anycast IP addresses assigned to your
1111
- **Anycast 01**: `162.159.###.###`
1212
- **Anycast 02**: `172.64.###.###`
1313

14-
The following is a Cisco IOS XE configuration example:
14+
## Cisco IOS XE configuration example
1515

1616
```txt
1717
crypto ikev2 proposal CF_MAGIC_WAN_IKEV2_PROPOSAL
@@ -102,6 +102,23 @@ interface GigabitEthernet2
102102
no mop sysid
103103
```
104104

105+
### Establish IPsec behind a NAT or CGNAT with port `4500`
106+
107+
If your Cisco router is behind a NAT or CGNAT and you need to establish a connection on port `4500`, you can use the `nat force-encap`command.
108+
109+
Add the `nat force-encap`command when setting up the `crypto ikev2 profile` for your tunnels:
110+
111+
```txt {7}
112+
crypto ikev2 profile CF_MAGIC_WAN_01
113+
match identity remote address 162.159.###.### 255.255.255.255
114+
identity local fqdn ad329f56###############bbe898c0a0.33145236.ipsec.cloudflare.com
115+
authentication remote pre-share
116+
authentication local pre-share
117+
keyring local CF_MAGIC_WAN_KEYRING
118+
nat force-encap
119+
no config-exchange request
120+
```
121+
105122
## Diagnostic output: show crypto session detail
106123

107124
```txt

0 commit comments

Comments
 (0)