Announcement

Collapse
No announcement yet.

Internet Sharing on RH9

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Internet Sharing on RH9

    I know it's an old one, but there might be newer and nicer ways to do stuff now...


    So:
    1. Installed RH9 in desktop machine configuration
    2. Installed latest nvidia driver
    3. Installed PPTP
    4. Downloaded and installed Ximian desktop 2 (includes everything)
    5. Installed webmin (The voices in my head told me so)
    6. Added Samba client and DHCP server (I think)

    I have eth1 connected to ADSL (pptp) and eth0 connected to local network with ip: 192.168.0.1

    * How do I share my internet connection ?
    * Is there a nice friendly firewall for Linux ? Something like the ones (tiny) on Windows ?
    "For every action, there is an equal and opposite criticism."

  • #2
    You are looking to use RH as a router, then...
    you dont need samba and whatnot.... RH will do this out of the box...

    first things first - can your rh box see the internet?

    If it cant - go to system tools ->internet configuration wizard..

    set the bad-boy up....
    Test your browser....

    Repeat until it does......

    (This should work, however, as I use a cablemodem.... I dont know for sure )

    Are you going to use DHCP? do you have it working on the red hat box (can your windows boxes get their IP address ok?)

    Edit your /etc/sysconfig/network file in your fav editor (as root)
    enter the line
    GATEWAY=eth1 (I had the IP for my cablemodem in there - you should be ok with eth1, however..... maybe not )

    The next bit depends upon your firewall - iptables requires you to set up a forwarding and masquerade - not difficult - but better when you have decided what you are doing about the firewall.....

    step 3 is to set up your windows PC's to the see the gateway... under networking/gateway, enter the eth0 IP here....

    you are away!

    for the second question...

    RH9 comes with a pretty strong fire wall built in (its called iptables). There are a lot of pages dedicated to setting up iptables manually - and quite a few graphical front ends.....

    If your box is going to be nothing but a firewall - I would recommend looking at smoothwall Its solid as a rock, will handle DMZ and 'green' networks.....
    Dont just swallow the blue pill.

    Comment


    • #3
      Thanks for the reply !

      The machine mentioned is my main rig, I just want to experiment with non microsoft OS but since it's the machine conencted to the net (and sharin gthat connection ofcourse), I don't want to ruin it for everyone else.
      I have managed to successfully connect to the net (pptp) and thus installed ximian and webmin.
      I have iptables but I guess I'll have to read the man pages to understand how it works.
      About DHCP, webmin doesn't see it, but I can see the other (windows) machines on my lan (they are configured to use the DHCP on my computer). Does it mean my DHCP is on ?
      "For every action, there is an equal and opposite criticism."

      Comment


      • #4
        SmoothWall Installation and Setup by MultimediaMan
        Main: Dual Xeon LV2.4Ghz@3.1Ghz | 3X21" | NVidia 6800 | 2Gb DDR | SCSI
        Second: Dual PIII 1GHz | 21" Monitor | G200MMS + Quadro 2 Pro | 512MB ECC SDRAM | SCSI
        Third: Apple G4 450Mhz | 21" Monitor | Radeon 8500 | 1,5Gb SDRAM | SCSI

        Comment


        • #5
          Guarddog is another easy to use Firewall/NAT utility that uses iptables for it's dirty work

          http://www.simonzone.com/software/guarddog/

          Comment


          • #6
            iptables -t nat -A POSTROUTING -o ppp0 -j SNAT --to-source ***.***.***.***

            ***... = ip of the computer @ISP you connect to, or something like that.

            /etc/network/options - ipforwarding enabled

            works for me on debian, but you have to activate some stuff in the kernel, I think.

            mfg
            wulfman
            "Perhaps they communicate by changing colour? Like those sea creatures .."
            "Lobsters?"
            "Really? I didn't know they did that."
            "Oh yes, red means help!"

            Comment


            • #7
              If you have a source IP that frequently changes (such as a dialup or a DHCP cable connection), it is preferable to use the MASQUERADE target instead of SNAT.

              Comment

              Working...
              X