January 17th, 2002, 12:42 PM
simple routing question
Ok i currently have the following setup
The the Linux has eth0 running to the outside world on DHCP, though the ip is pretty constant and only changes if the box is down for 3+ days. The hub is on eth1 with a fixed address of 192.168.0.1.
[4 port Hub]
| | |
| | |
| | |
| | \_________ [Desk 2, Win98]
| \_________[Laptop, Win 98]
\________[Desktop 1, Win 98]
The other three machines are .2 (desk 1) .3 (desk 2) .4 (laptop) in the 192.168.0.X range.
What i need is some simple routing rules that will allow my linux box to contine to be a functional server, while allowing the 3 machines inside the localnet to access the web, irc, ftp ect.
I understand the basics of the rules, but i'm short on time at this sec so i'm not able to write my own from scratch. If u can give me some help i'd apreciate it.
January 17th, 2002, 12:44 PM
What do you use? ipchains or iptables?
January 17th, 2002, 12:46 PM
i'm on a 2.5.X kernal so iptables would be nice
January 17th, 2002, 12:49 PM
oops, that should be 2.4.X
January 17th, 2002, 12:56 PM
I'm not sure (never used iptables), but I think this is what you're looking for.
January 17th, 2002, 01:15 PM
hmmm, how does this sound:
i turn ip_forward on, set the FORWARD chains policy to deny and then make a rule that accepts everything from eth1 (localnet)
January 17th, 2002, 03:17 PM
January 17th, 2002, 05:27 PM
i don't have time, i have only just got back to setting this up, had to do other things