What's IP address masquerading and what problem does it solve?

Solution Verified - Updated -

Issue

  • After adding a port forward to firewalld/iptables/nftables, the port forward doesn't work until masquerading is enabled on the interface.
  • What does IP address masquerading do?
  • What does firewall-cmd --add-masquerade do?

Environment

Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content