Knowledge Base
Browse Docs
  • Introduction
    1. DefensX
    2. DNS & Web Filtering
    3. Zero Trust Files
    4. Zero Trust Credentials
    5. ADWare Protection
    6. Remote Browser Isolation
    7. Secure Browser Extension
    8. Secure Mobile Browser
  • Management
    1. Role-Based Access Control
  • Deployment
    1. Deployment via RMM
    2. Operating System Agent
    3. Deployment via GPO
    4. Deployment via Intune
    5. VDI and Terminal Servers
    6. Windows Manual Deployment
    7. Mac MDM Deployment
    8. Mac Manual Deployment
    9. Network Deployment
    10. Secure Mobile Browser
    11. Bypass Option
    12. AI Protections
    13. SaaS Restrictions
    14. Bookmark Manager
  • Secure Access (ZTNA)
    1. Configuration
  • Integrations
    1. Azure AD
    2. Identity Providers
    3. SIEM
  • Policy Management
    1. Configuring Policies
    2. Configuring Consents
  • Questions & Answers
    1. Licensing
    2. Incognito Mode
    3. Onboarding
    4. Active Directory
    5. Group Synchronization
    6. Agent
    7. Conflicting Softwares
    8. Reporting
    9. Virtual Desktops
    10. Using the Backend
    11. DNS & Web Filtering
  • Training Videos
    1. Onboarding Videos
    2. Attack Scenarios
    3. MSP Admin Training Series
  • MSP Automation
    1. Overview
    2. External Notifications
    3. Integrations
    4. Partner API
ONLINE DOCUMENTATION

Appgate SDP with DefensX Agent

In this document
  • Overview
  • Problem Description
  • Solution

Overview

Appgate SDP is a cloud-native, API-enabled Zero Trust Network Access (ZTNA) solution that secures user access to applications across hybrid, cloud, and on-premises environments.

It uses Single Packet Authorization (SPA), a technique originally popularized by the open-source tool fwknop, first released in 2004.

SPA can operate in two different modes:

  • TCP (TLS Extension): New connections must present a single TCP packet containing a TLS ClientHello with a specially crafted extension before a TLS session can be established.

  • UDP + TCP (SPA-DNS + SPA-DTLS): New connections must first present a valid UDP packet containing a time-based encrypted key. Only after this packet is validated will the TCP port (typically 443) be opened.

By default, Appgate SDP uses the UDP-TCP model, which sends two UDP packets simultaneously:

  • SPA-DNS packet → UDP port 53 (appears like a DNS request)

  • SPA-DTLS packet → UDP port 443

Both packets contain encrypted payloads that allow the Appgate SDP controller to authenticate the client and dynamically open firewall access.

Problem Description

Appgate SDP uses a DNS-like packet because outbound DNS traffic is commonly allowed in most networks. However, the packet must reach the SDP controller without any modification.

In practice, this requirement can fail in several scenarios:

  1. Many networks redirect outgoing DNS traffic to an internal DNS resolver.

  2. Some ISPs or routers intercept DNS requests for filtering or analytics.

  3. Security tools that detect DNS exfiltration may drop these packets because they reuse the same transaction ID with different binary payloads.

  4. DNS security platforms (such as DefensX) needs to inspect and modify DNS requests before forwarding them.

Any modification to the original packet prevents Appgate SDP from verifying the client.

Normally, the Appgate client also sends a DTLS packet (UDP 443) to the same controller at the same time. If:

  • the DNS packet is modified or redirected, and

  • UDP port 443 traffic is blocked by a firewall,

then both SPA-DNS and SPA-DTLS packets fail, preventing the client from authenticating.

Appgate SDP Connection Error

In this case, the client will typically show a Connection failed error after approximately 20 seconds.

Solution

Ensure that UDP port 443 is allowed on the firewall so the SPA-DTLS mechanism can function.

This port should be enabled even if the DefensX Agent is not installed, because the other scenarios (DNS interception, ISP filtering, or DNS security controls) are also common and can interfere with SPA-DNS packets.

www.defensx.com
Secure Industries, Inc 101 Avenue of The Americas, Floor 9 New York, NY 10013