Linux.com: An Introduction to IP Masquerading (Part 2 of 2) | Linux Today

Linux.com: An Introduction to IP Masquerading (Part 2 of 2)

Written By
Web Webster
Web Webster
Jun 4, 2000

Now that you’ve configured and compiled the Linux kernel to
support IP Masquerading, we’re going to setup your Ethernet cards,
and configure the kernel firewall.

“In the first part we talked about “private” IP addresses. In
the following example, we’ll be using addresses in the range from
192.168.1.1 to 192.168.1.254. This is part of one of three special
blocks of addresses set aside for the purpose of building a private
network. These addresses are not routable on the Internet, and if
such a network address were to be used to communicate directly with
the Internet, packets coming from that address would be discarded
by the first router they encounter. For more on private IP
addresses, please see the document RFC 1918.”

“First, we’ll deal with the case in which you have two Ethernet
cards: one connected to your cable/DSL modem, which we’ll call
eth0; and another connected to an Ethernet hub, which we’ll call
eth1. Since most Internet service providers hand out IP addresses
dynamically whenever you boot your computer, configure eth0 to
obtain an IP addresses dynamically (typically using the Dynamic
Host Configuration Protocol). Please see the DHCP mini-HOWTO for
distribution-specific information on how to handle this.”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.