What are the basics to configure Red Hat Enterprise Linux as a router to perform Network Address Translation (NAT) using iptables?

Updated -

Limitation:

This is applicable for Red Hat Enterprise Linux 3 and above.

There are a few ways to set up a Linux machine to route. Here is a relatively straight forward and common method. This method requires that the system use iptables for Network Address Translation (NAT).

To enable packet forwarding:

  echo "1" > /proc/sys/net/ipv4/ip_...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.