Daniel Feiglin wrote:
Hi!

I need to do the following:

Internet <-> ADSL (10.0.0.138) <-> LAN Card (10.0.0.100) <-> Linux Box (= router?)<-> LAN Card (192.168.1.100) <-> Hub <-> Win 2K, Win98, and Linux clients with fixed addresses like 192.168.1.101 etc.
I would like the clients having access to the Internet via the Linux box. (DHCP seems a bit heavy for 2 clients and the occaisional "guest".)

DHCP is easy enough, but fixing the IP addresses is not much harder, just a bit more menial labour. You said also that all machines are working in the LAN and know each other so you are ready to go with static IPs already.


Steps to follow:
1. Set the IPs of all interfaces of the machines (you already have that)
2. echo 1 > /proc/sys/net/ipv4/ip_forward (you want this on boot on the router)
3. Setup masquerade on the Linux server so the clients can access the net. Tutorial is at http://netfilter.org/documentation/HOWTO//NAT-HOWTO-4.html#ss4.1


4. Check that everything works for you.
5. ...
6. Profit!

You may also want to setup a firewall, plenty of firewall scripts abound, just search freshmeat. Unless you really intend to learn firewall setup you are better off (and more secure) using an existing, known to work script.

Baruch

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Reply via email to