Discussion Locked

Linux Internet Sharing in different clas

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a mutihomed Linux Server (i.e Linux Server has 2 NICs) that 1 NIC has IP 10.1.16.30 and other IP 192.168.0.1. My client machines running Windows 98 and has IP address in Class C 192.168.0.2-192.168.0.100. What must I do in Linux Server to be able to share Internet to my client machines? And what must I do in my client machines? Thank you so much.

7 replies

by vidal

Just add Masquerade or NAT support to ur linux box, configure as described in the MASQ howto.

Install also squid as proxy-cache in the linux box

Add the Priv IP of the linux as default gw in your win9x boxes, and modify the IE proxy config if u have installed squid.

Also u can install dhcpd server in the linux box, with the correct config u can leave the dhcp server config the win9x boxes.

Ah .. don't forget to put the correct routes in linux box.

Thats all u need.

by jrtietsort

You will need to setup masquerading in the kernel. If you have a relatively recent distribution, this is probably already compiled for you. Check out http://www.linuxdoc.org/HOWTO/IP-Masquerade-HOWTO.html for more specific information.

Once youhave Masq setup and IP forwarding enabled (covered in the doc), you should be all set. No need to adjust specific route information unless you are trying to do something fancy.

Configure your windows machines to use the internal interface (192.168.0.1 in your example) on the Linux box as the default gateway. This is all you _have_ to do to get it to work.

If you would like additional performance gains, you could install the Squid proxy server on the Linux box and configure your browsers to use it. You could also install a caching DNS server to keep most of your lookups local. This would again require that you configure your Windows machines to use the Linux box as a DNS server.

Good luck!

This discussion is closed to new replies.