Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 17th, 2002, 12:42 PM
Nazca Nazca is offline
Web Designer/Scripter/Coder
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: UK
Posts: 5 Nazca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Nazca Send a message via AIM to Nazca
Question 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

Reply With Quote
  #3  
Old January 17th, 2002, 12:46 PM
Nazca Nazca is offline
Web Designer/Scripter/Coder
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: UK
Posts: 5 Nazca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Nazca Send a message via AIM to Nazca
i'm on a 2.5.X kernal so iptables would be nice

Reply With Quote
  #4  
Old January 17th, 2002, 12:49 PM
Nazca Nazca is offline
Web Designer/Scripter/Coder
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: UK
Posts: 5 Nazca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Nazca Send a message via AIM to Nazca
oops, that should be 2.4.X

Reply With Quote
  #5  
Old January 17th, 2002, 12:56 PM
realnowhereman realnowhereman is offline
Not there when you need me
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2001
Location: Berlin, Germany
Posts: 1,430 realnowhereman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #6  
Old January 17th, 2002, 01:15 PM
Nazca Nazca is offline
Web Designer/Scripter/Coder
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: UK
Posts: 5 Nazca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Nazca Send a message via AIM to Nazca
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)

Reply With Quote
  #7  
Old January 17th, 2002, 03:17 PM
realnowhereman realnowhereman is offline
Not there when you need me
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2001
Location: Berlin, Germany
Posts: 1,430 realnowhereman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 46 sec
Reputation Power: 13
Yup.* So*you've*got*time*after*all*

Reply With Quote
  #8  
Old January 17th, 2002, 05:27 PM
Nazca Nazca is offline
Web Designer/Scripter/Coder
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: UK
Posts: 5 Nazca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Nazca Send a message via AIM to Nazca
i don't have time, i have only just got back to setting this up, had to do other things

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > simple routing question

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap