How to configure iptables MASQUERADE rule for set of secondary IP address?

Solution in progress - Updated on

Request a new translation or translation update

A translation for your language preference does not exist. Click below to request a translation for your selected language.

Submit request

Issue

  • I have RHEL with iptables as a firewall. I have set of 3 public IP address for WAN.
eth0   1.1.1.1  # 1st IP address
eth0:0 1.1.1.2  # 2nd IP address
eth0:1 1.1.1.3  # 3rd IP address

eth1   2.2.2.2 # LAN segment
  • I added MASQUERADE ru
...

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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content