Linux (iptables/netfilter)
# Unload the SIP ALG modules
modprobe -r nf_nat_sip
modprobe -r nf_conntrack_sip
# Permanently blacklist them
echo "blacklist nf_nat_sip" >> /etc/modprobe.d/blacklist-sip.conf
echo "blacklist nf_conntrack_sip" >> /etc/modprobe.d/blacklist-sip.conf
# Alternative: disable via sysctl
echo "net.netfilter.nf_conntrack_helper=0" >> /etc/sysctl.conf
sysctl -p
# Verify they're unloaded
lsmod | grep sip
# Should return nothing
pfSense / OPNsense
# pfSense:
# System > Advanced > Firewall & NAT
# Check "Disable pf scrubbing" (or set to "Fragment Reassemble" only)
# Firewall > NAT > Outbound > Manual mode
# Set "Static Port" for SIP/RTP traffic
# OPNsense:
# Firewall > Settings > Advanced
# Disable "Firewall Optimization" for SIP
# Or use Hybrid outbound NAT with static port for SIP
Ubiquiti (EdgeRouter / UniFi)
# SSH into the EdgeRouter:
configure
set system conntrack modules sip disable
commit
save
# UniFi Security Gateway (USG):
# Via CLI:
configure
set system conntrack modules sip disable
commit
save
# For UniFi Dream Machine:
# Settings > Advanced > SIP ALG > Disable
MikroTik (RouterOS)
# Disable SIP helper in MikroTik:
/ip firewall service-port disable sip
# Or via Winbox:
# IP > Firewall > Service Ports > sip > Disable
Consumer Routers (Netgear, TP-Link, ASUS, Linksys)
- Netgear: Advanced > WAN Setup > Disable SIP ALG (or NAT Filtering > Open)
- TP-Link: Advanced > NAT Forwarding > ALG > Uncheck SIP ALG
- ASUS: WAN > NAT Passthrough > SIP Passthrough > Disable
- Linksys: Administration > Management > SIP ALG > Disable
- D-Link: Advanced > Firewall > Application Level Gateway > SIP > Disable
Note: Some routers hide the SIP ALG setting. If you cannot find it, try: (1) searching the router model + “disable SIP ALG”, (2) updating firmware (newer versions may expose the option), (3) using a different router that allows disabling it.