Find the answer to your Linux question:
Results 1 to 4 of 4
I have 3 PCs at home and I want to route with the one.I have 2 NICs on it.I know that I can make it with IP tables.I read a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2004
    Posts
    3

    How to make home gateway?


    I have 3 PCs at home and I want to route with the one.I have 2 NICs on it.I know that I can make it with IP tables.I read a lot but and I tried to make it but it does't work.Simply,the mashine isn't routing.I enabled ip_forwarding.I masqueraded.I've made everything,but it doesn' work.Can you help me with ideas? Please,tell me what to enable,what to disable and how to configure th forwarding with iptables.The internet IP is 81.112.231.123 and my home network 192.168.1.0 PLease help me.How to write the commands? Thanks a lot!

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    I've never done it manually, but you can install something like Smoothwall, which is what I use. It is a small distro designed for routing with a web interface to it's many features.

    If you still want to do it yourself, just google for IPTABLES + tutorial and you should turn up more than enough info.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  3. #3
    Just Joined!
    Join Date
    Jul 2004
    Posts
    3
    The problem is that I read so many tutorials and it doesn't work.Something's wrong.I just wnat ideas.Because I tried seeral things.Changes.And it doesn't work.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru loft306's Avatar
    Join Date
    Oct 2003
    Location
    The DairyLand
    Posts
    1,666
    well there is thishttp://www.linuxforums.org/forum/viewtopic.php?t=12424
    though it is not doing it all the manual way but it might give you some ideas or a way to set it up for now till you do get around to setting it up manualy with iptables

    Also do you have atleast a caching DNS server? on the LAN so the boxes on the lan can find the WAN

    See this alo it is on Masquarading http://www.linuxhelp.net/guides/ipmasq/
    ~Mike ~~~ Forum Rules
    Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
    http://loft306.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •