The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Operating Systems
> Linux Help
|
simple routing question
Discuss simple routing question in the Linux Help forum on Dev Shed. simple routing question Linux Help forum discussing topics including usage, troubleshooting, modules, and distributions. Linux is an open source OS, based on UNIX.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

January 17th, 2002, 12:42 PM
|
|
Web Designer/Scripter/Coder
|
|
Join Date: Jan 2002
Location: UK
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
simple routing question
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
|

January 17th, 2002, 12:44 PM
|
|
Not there when you need me
|
|
Join Date: Oct 2001
Location: Berlin, Germany
Posts: 1,430
Time spent in forums: 17 m 46 sec
Reputation Power: 13
|
|
|
What do you use? ipchains or iptables?
|

January 17th, 2002, 12:46 PM
|
|
Web Designer/Scripter/Coder
|
|
Join Date: Jan 2002
Location: UK
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
i'm on a 2.5.X kernal so iptables would be nice
|

January 17th, 2002, 12:49 PM
|
|
Web Designer/Scripter/Coder
|
|
Join Date: Jan 2002
Location: UK
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
oops, that should be 2.4.X
|

January 17th, 2002, 12:56 PM
|
|
Not there when you need me
|
|
Join Date: Oct 2001
Location: Berlin, Germany
Posts: 1,430
Time spent in forums: 17 m 46 sec
Reputation Power: 13
|
|
I'm not sure (never used iptables), but I think this is what you're looking for.
|

January 17th, 2002, 01:15 PM
|
|
Web Designer/Scripter/Coder
|
|
Join Date: Jan 2002
Location: UK
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
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
|
|
Not there when you need me
|
|
Join Date: Oct 2001
Location: Berlin, Germany
Posts: 1,430
Time spent in forums: 17 m 46 sec
Reputation Power: 13
|
|
Yup.*  So*you've*got*time*after*all* 
|

January 17th, 2002, 05:27 PM
|
|
Web Designer/Scripter/Coder
|
|
Join Date: Jan 2002
Location: UK
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
i don't have time, i have only just got back to setting this up, had to do other things
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|