• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

how to disable nat-t for ipsec?

Scheduled Pinned Locked Moved IPsec
2 Posts 2 Posters 2.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O
    opticalc
    last edited by Jun 5, 2018, 6:32 PM

    Running 2.4.3-RELEASE-p1 (amd64) CE here on a HyperV. I do have my tunnel working and routable to an Azure VPN Gateway, but its using UDP4500. Id like to disable that; some docs show the config for nat-t under phase 1 ipsec config but I see nothing there. In fact cant see NAT-T anywhere.

    I even tried to bypass that by making a firewall rule to block UDP4500 inbound on the WAN interface but apparently those are just allowed in regardless, as I was able to connect/disconnect/connect/etc the tunnel with no issues. ??? (that seems kind of like a hole, btw)

    1 Reply Last reply Reply Quote 0
    • D
      Derelict LAYER 8 Netgate
      last edited by Jun 6, 2018, 7:58 AM

      You can't disable it if NAT is anywhere in what would be the ESP path.

      There are automatic rules for IPsec tunnels as most people who define an IPsec tunnel want IKE, ESP, and NAT-T to pass between the endpoints.

      You can disable these rules in System > Advanced, Firewall & NAT, Disable Auto-added VPN rules

      Chattanooga, Tennessee, USA
      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
      Do Not Chat For Help! NO_WAN_EGRESS(TM)

      1 Reply Last reply Reply Quote 1
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received