SHARE
Facebook X Pinterest WhatsApp

LinuxFocus: Setting up IP-Masquerading

Written By
thumbnail
Web Webster
Web Webster
May 7, 2000

“To use IP-Masquerading as explained in this article you need at
least one Linux box with a 2.2.x Kernel. This machine is used to
set up the connection to the Internet. Using Linux as your
connection-sharing box doesn’t mean that you have run Linux in your
internal network. In fact, Linux works well with Windows, Macs, and
other flavours of Unix. This connection-sharing box is what we are
concerned about in this article. It connects on one side to the
Internet and on the other side to your private network. The machine
has therefore at least 2 interfaces and also at least 2 IP
addresses. One of the IP addresses is a public IP address which can
be routed in the Internet. This IP address is usually assigned to
you by your Internet Service Provider the very moment you setup
your modem connection (or what ever you use). The other IP
addresses is a private address which you can assign from one of
these ranges:

  • 10.0.0.0 – 10.255.255.255
  • 172.16.0.0 – 172.31.255.255
  • 192.168.0.0 – 192.168.255.255

This article does not explain how to set up your network. I assume
that your private network is already in place and configured.”

“Basically IP-Masquerading translates internal IP addresses
into external IP addresses. This is called network address
translation and Linux does this by using something called
port-numbers. From the outside world, all connections will seem to
be originating from your Linux box.
… Sometimes, IP packets
are special in nature and IP-Masquerading may not work for all
applications, but it works in most cases. There are modules for
ICQ, ftp, and quake that need to be inserted in the Kernel in order
for those special applications to run correctly from the internal
network. In general though, anything that uses only the HTTP (web
browsers), telnet, ssh, or smtp (email) will work fine.”

Complete
Story

thumbnail
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.

Recommended for you...

Red Hat reveals major enhancements to Red Hat Enterprise Linux AI
sjvn
Oct 22, 2024
How to Find AWS EC2 Instance Type Over SSH (6 Methods)
Benny Lanco
Sep 23, 2024
Crond: Daemon to Execute Scheduled Commands
Rose Hosting Blog
Sep 20, 2024
A Detailed Introduction to Oracle VirtualBox
Senthil Kumar
Sep 19, 2024
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. © 2025 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.