Chapter 2. Configuring Masqueraded Clients

Table of Contents

Linux Box
On-The-Fly Configuration
Permanent, Manual Configuration
Permanent, Automatic Configuration
Windows XP Box
Windows 95 or Windows 98 Box
Windows NT or Windows 2000 Box
DOS Box Using the NCSA Telnet Package
Windows for Workgroup 3.11
MacOS Box
MacOS 8/9
MacTCP
OS/2 Warp Box

This chapter will show you how to make different operating systems use a GNU/Linux box with masquerading set up as a gateway to the outside world. The configuration tests on the following operating systems all proved successful:

Let's go through the configuration of a few of them. If your system is not listed, a simple way to proceed is to “just tell the OS which machine to use as a gateway”. Note that our main focus here is the gateway side of the network: therefore, we won't touch on DNS, file sharing or connection schemes problems. Thus, for this chapter to be of any use to you, you need a well-configured local network. Refer to your system's documentation to set it up properly, paying special attention to the DNS settings.

What follows assumes that you are set up on a class C network: your different machines all have IP addresses like 192.168.0.x, with a netmask set to 255.255.255.0, and use eth0 as the network interface. We also take for granted that your gateway's IP address is set to 192.168.0.1, and that your machines can each “talk” to the gateway (test the latter with the ping command or its equivalent in your environment).

Linux Box

There are (at least) three ways to go about this.

On-The-Fly Configuration

This is probably the fastest way to proceed. However, when you next restart your network layer or your whole system, any configuration change you made will have disappeared!

If eth0 is the network interface through which you access the gateway, (as root) issue this simple command: route add default gw 192.168.0.1 eth0 That's it! If the gateway is properly configured and connected to the Internet, the whole world is now within your reach through your favorite web browser.

Permanent, Manual Configuration

To maintain the configuration each time the system is shut down and restarted, we need to edit a configuration file. Its name is /etc/sysconfig/network on a Mandrake Linux machine (it may be different on yours). Open it with your usual text editor, then add the following lines:

GATEWAYDEV="eth0" GATEWAY="192.168.0.1"

You may now restart your network layer with: service network restart

Permanent, Automatic Configuration

To install the configuration automatically, it's just about putting the right parameters in the configuration wizard. Refer to the Starter Guide's Internet Configuration. When you are configuring a local network Internet connection, the first step offers to configure the network in manual or automated mode (DHCP):

Figure 2.1. Reconfiguring the Local Network with drakconnect

Simply put the right information in it. If you have a bootp or DHCP server on your local network, simply check the Automatic IP box, and your configuration is done. If you have a static IP address for your machine, enter it in the first field after making sure the Automatic IP check box is deactivated. Then click on the Next -> button.

Figure 2.2. Setting up the Gateway with drakconnect

Here, you must write in the correct IP addresses for the gateway and DNS server. Once this is done, follow the wizard's steps and restart the network when proposed. And that's it. Your network is properly configured and ready to run. The configuration is now permanent.


Hosted by Internet News Unlimited