#1
  1. No Profile Picture
    Web Designer/Scripter/Coder
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Location
    UK
    Posts
    5
    Rep Power
    0

    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
  2. #2
  3. #3
  4. No Profile Picture
    Web Designer/Scripter/Coder
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Location
    UK
    Posts
    5
    Rep Power
    0
    i'm on a 2.5.X kernal so iptables would be nice
  5. #4
  6. No Profile Picture
    Web Designer/Scripter/Coder
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Location
    UK
    Posts
    5
    Rep Power
    0
    oops, that should be 2.4.X
  7. #5
  8. #6
  9. No Profile Picture
    Web Designer/Scripter/Coder
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Location
    UK
    Posts
    5
    Rep 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)
  10. #7
  11. #8
  12. No Profile Picture
    Web Designer/Scripter/Coder
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Location
    UK
    Posts
    5
    Rep Power
    0
    i don't have time, i have only just got back to setting this up, had to do other things

IMN logo majestic logo threadwatch logo seochat tools logo