October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

An Application Layer Gateway Helps Protocol Traffic Cross NAT

An application layer gateway understands selected protocols and can adjust embedded addresses, ports, and connection state to help traffic cross NAT or a firewall.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

An application layer gateway (ALG) is a network function that understands a particular application protocol and helps its traffic pass through a NAT device or firewall. Unlike basic network address translation, an ALG can inspect or change protocol details inside traffic—such as embedded IP addresses and ports—and coordinate the connection state needed for related data flows.

What does an application layer gateway do?

Network address translation (NAT) changes addressing information at the network layer. Some application protocols also include IP addresses or port numbers in their messages. A basic NAT device may not recognize that information, so the application’s related traffic can fail to connect.

As an Amazon Associate I earn from qualifying purchases.

An ALG is an application-specific translation agent: it recognizes selected protocol messages, adjusts embedded information when needed, and can coordinate NAT or firewall state for additional connections. The term most often refers to this NAT helper function, although “application-level gateway” can also mean a broader application protocol translator.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

RFC 2663 defines the NAT-context ALG as a protocol-specific function that allows an application on one address realm to connect transparently to its counterpart in another. Its behavior depends on the protocol it supports and how the network device implements it.

#1 Best Overall
Sale
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
  • DUAL-BAND WIFI 6 ROUTER: Wi-Fi 6(802.11ax) technology achieves faster speeds, greater capacity and reduced network congestion compared to the previous gen. All WiFi routers require a separate modem. Dual-Band WiFi routers do not support the 6 GHz band.
  • AX1800: Enjoy smoother and more stable streaming, gaming, downloading with 1.8 Gbps total bandwidth (up to 1200 Mbps on 5 GHz and up to 574 Mbps on 2.4 GHz). Performance varies by conditions, distance to devices, and obstacles such as walls.
  • CONNECT MORE DEVICES: Wi-Fi 6 technology communicates more data to more devices simultaneously using revolutionary OFDMA technology
  • EXTENSIVE COVERAGE: Achieve the strong, reliable WiFi coverage with Archer AX1800 as it focuses signal strength to your devices far away using Beamforming technology, 4 high-gain antennas and an advanced front-end module (FEM) chipset
  • OUR CYBERSECURITY COMMITMENT: TP-Link is a signatory of the U.S. Cybersecurity and Infrastructure Security Agency’s (CISA) Secure-by-Design pledge. This device is designed, built, and maintained, with advanced security as a core requirement.

How does an ALG work with NAT or a firewall?

  1. It recognizes a supported protocol. The gateway examines application messages for information relevant to the connection.
  2. It handles embedded addressing or ports. If a message contains an address or port that must change to work across NAT, the ALG may rewrite it.
  3. It coordinates related traffic. When the application opens a secondary connection or negotiates dynamic ports, the ALG may update NAT state or arrange the firewall handling required for that traffic.

For example, FTP can use a control connection to negotiate a separate data connection. An FTP ALG can adjust the address and port information carried in the control messages and coordinate the corresponding NAT mapping. Without that protocol-aware handling, the separately negotiated connection may not work across the address boundary. RFC 2663 describes this NAT and FTP interaction.

What are common ALG examples?

FTP

FTP is a classic example because control messages can identify the address and port for a separate data flow. An ALG that understands FTP can help that flow work through NAT by handling the embedded connection details.

Rank #2
Sale
TP-Link TL-SG105, 5 Port Gigabit Unmanaged Ethernet Switch, Network Hub, Ethernet Splitter, Plug & Play, Fanless Metal Design, Shielded Ports, Traffic Optimization
  • 𝗢𝗻𝗲 𝗦𝘄𝗶𝘁𝗰𝗵 𝗠𝗮𝗱𝗲 𝘁𝗼 𝗘𝘅𝗽𝗮𝗻𝗱 𝗡𝗲𝘁𝘄𝗼𝗿𝗸: 5× 10/100/1000Mbps RJ45 Ports supporting Auto Negotiation and Auto MDI/MDIX.
  • 𝗚𝗶𝗴𝗮𝗯𝗶𝘁 𝘁𝗵𝗮𝘁 𝗦𝗮𝘃𝗲𝘀 𝗘𝗻𝗲𝗿𝗴𝘆: Latest innovative energy-efficient technology greatly expands your network capacity with much less power consumption and helps save money.
  • 𝗥𝗲𝗹𝗶𝗮𝗯𝗹𝗲 𝗮𝗻𝗱 𝗤𝘂𝗶𝗲𝘁: IEEE 802.3X flow control provides reliable data transfer and Fanless design ensures quiet operation.
  • 𝗣𝗹𝘂𝗴 𝗮𝗻𝗱 𝗣𝗹𝗮𝘆: Easy setup with no software installation or configuration needed.
  • 𝗔𝗱𝘃𝗮𝗻𝗰𝗲𝗱 𝗦𝗼𝗳𝘁𝘄𝗮𝗿𝗲 𝗙𝗲𝗮𝘁𝘂𝗿𝗲𝘀: Prioritize your traffic and guarantee high quality of video or voice data transmission with Port-based 802.1p/DSCP QoS and IGMP Snooping.

SIP and VoIP

Session Initiation Protocol (SIP) and H.323 are used in voice-over-IP systems. A VoIP ALG may parse signaling messages and help configure address and port handling for call traffic. NIST’s 2005 guidance describes this role for SIP and H.323; it is a historical technical example, not a guarantee about every current VoIP deployment. NIST SP 800-58

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

In Cisco’s documented SIP/firewall case, an ALG can interpret SIP, apply payload NAT, and open dynamic pinholes for media ports. That describes a possible vendor implementation, not behavior shared by every router, firewall, or SIP service. Cisco’s SIP ALG documentation

Rank #3
Sale
TP-Link ER605, Wired Gigabit VPN Router
  • 【Five Gigabit Ports】1 Gigabit WAN Port plus 2 Gigabit WAN/LAN Ports plus 2 Gigabit LAN Port. Up to 3 WAN ports optimize bandwidth usage through one device.
  • 【One USB WAN Port】Mobile broadband via 4G/3G modem is supported for WAN backup by connecting to the USB port. For complete list of compatible 4G/3G modems, please visit TP-Link website.
  • 【Abundant Security Features】Advanced firewall policies, DoS defense, IP/MAC/URL filtering, speed test and more security functions protect your network and data.
  • 【Highly Secure VPN】Supports up to 20× LAN-to-LAN IPsec, 16× OpenVPN, 16× L2TP, and 16× PPTP VPN connections.
  • Security - SPI Firewall, VPN Pass through, FTP/H.323/PPTP/SIP/IPsec ALG, DoS Defence, Ping of Death and Local Management. Standards and Protocols IEEE 802.3, 802.3u, 802.3ab, IEEE 802.3x, IEEE 802.1q

How is an ALG different from a proxy?

In RFC 2663’s NAT terminology, an ALG works with the application’s existing communication and does not require a special protocol between the client and gateway or a change to the client. A proxy, by contrast, communicates with a proxy-aware client using a protocol for that purpose and relays data. The terms can be used more broadly in other contexts, so the specific network role matters. RFC 2663

Why can an ALG cause problems?

The same protocol awareness that can restore connectivity also lets an ALG alter application traffic. If the ALG misinterprets a message, does not support the protocol’s encoding, or conflicts with the application’s own NAT-traversal method, its edits can break connections. RFC 3235 notes that building an ALG can be difficult or impossible for some protocols.

Rank #4
Sale
TP-Link AC1200 WiFi Router Dual Band Wireless Internet Router (Archer A54) | 4 x 10/100 Mbps Fast Ethernet Ports, EasyMesh Compatible, Support Guest WiFi, Access Point Mode, IPv6 & Parental Controls
  • Dual-band Wi-Fi with 5 GHz speeds up to 867 Mbps and 2.4 GHz speeds up to 300 Mbps, delivering 1200 Mbps of total bandwidth¹. Dual-band routers do not support 6 GHz. Performance varies by conditions, distance to devices, and obstacles such as walls.
  • Covers up to 1,000 sq. ft. with four external antennas for stable wireless connections and optimal coverage.
  • Supports IGMP Proxy/Snooping, Bridge and Tag VLAN to optimize IPTV streaming
  • Access Point Mode - Supports AP Mode to transform your wired connection into wireless network, an ideal wireless router for home
  • Advanced Security with WPA3 - The latest Wi-Fi security protocol, WPA3, brings new capabilities to improve cybersecurity in personal networks

For TCP-affecting ALGs, RFC 5382 recommends that NAT devices disable them by default, with FTP as the exception. This is a recommendation in a standards document, not a universal instruction to switch off every ALG on every current router. The right setting depends on the application, device firmware, and network path. RFC 5382

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Should you disable SIP ALG?

There is no reliable yes-or-no answer for every device and service. If calls fail, have one-way audio, or behave inconsistently, check the VoIP provider’s guidance and the router or firewall documentation for the specific firmware. Test the actual network path with the setting changed only when you can safely do so, and restore the prior setting if the change makes service worse. Standards explain general ALG behavior; they do not establish the correct setting for every SIP deployment.

Best Value
Sale
NETGEAR 5-Port Gigabit Ethernet Unmanaged Network Switch (GS305)
  • GIGABIT ETHERNET PORTS: Features 5 x 1.0Gbps Ethernet ports for high-speed connectivity. Auto-negotiating ports detect the optimal speed for connected devices and work with existing Cat5e or Cat6 Ethernet cables.
  • PLUG-AND-PLAY UNMANAGED NETWORK SWITCH: Simple plug-and-play setup with no software to install or configuration required.
  • FLEXIBLE MOUNTING OPTIONS: Compact metal design supports desktop or wall-mount placement for versatile installation.
  • SILENT & ENERGY-EFFICIENT OPERATION: Fanless design ensures silent performance, while IEEE 802.3az Energy Efficient Ethernet reduces power consumption without compromising high-speed network performance.
  • REGIONAL COMPATIBILITY: Made for use in U.S. & CA only

What does “application-level gateway” mean outside NAT?

The phrase can also describe gateways that mediate or translate application protocols, not just a NAT helper that edits selected fields. RFC 3234 describes a range of middlebox behavior, from mechanical substitution of protocol fields (as in some FTP handling) to translation between application protocols. When reading a network guide, check whether “ALG” means the narrower NAT function or a broader application gateway. RFC 3234

Quick Recap

SaleBestseller No. 1
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
VPN SERVER: Archer AX21 Supports both Open VPN Server and PPTP VPN Server
$59.98
SaleBestseller No. 3
SaleBestseller No. 5
NETGEAR 5-Port Gigabit Ethernet Unmanaged Network Switch (GS305)
NETGEAR 5-Port Gigabit Ethernet Unmanaged Network Switch (GS305)
REGIONAL COMPATIBILITY: Made for use in U.S. & CA only
$13.49

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.