|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Ok i currently have the following setup
Code:
[Internet]
|
|
[Linux]
|
[4 port Hub]
| | |
| | |
| | |
| | \_________ [Desk 2, Win98]
| \_________[Laptop, Win 98]
\________[Desktop 1, Win 98]
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. 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. Nazca |
|
#2
|
|||
|
|||
|
What do you use? ipchains or iptables?
__________________
PHP manual | MySQL manual | Apache docs | Linux Documentation Project | Free Software Foundation Smart Questions HOWTO | PHP security | PHP FAQ | Posting HOWTO Wikipedia | English dictionary | Google | News | RFCs Thus Spoke Zarathustra | A Skeptic's Guide to Christianity | Project Gutenberg | Skeptic's Annotated Bible ParEcon | Marxists Internet Archive | The Memory Hole | Landover Baptist | DHMO Research Universal Declaration of Human Rights | UN Charter | Geneva Conventions Sinfest | Chopping Block | Filthy Lies | Bob the Angry Flower | How to Shoot Yourself In the Foot |
|
#3
|
|||
|
|||
|
i'm on a 2.5.X kernal so iptables would be nice
|
|
#4
|
|||
|
|||
|
oops, that should be 2.4.X
|
|
#6
|
|||
|
|||
|
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) |
|
#7
|
|||
|
|||
|
Yup.*
So*you've*got*time*after*all*![]() |
|
#8
|
|||
|
|||
|
i don't have time, i have only just got back to setting this up, had to do other things
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > simple routing question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|