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

    how to disable nat-t for ipsec?

    IPsec
    2
    2
    2.0k
    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.
    • opticalcO
      opticalc
      last edited by

      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
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        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
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.