#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Location
    Los Angeles, California
    Posts
    102
    Rep Power
    15

    Question linux for internet connection sharing


    You could say that I am a newbie to Linux networking. I am trying to figure out how to use my Linux box to allow other computers in my network to access the Internet through it. Can someone give me a rundown as to what is necessary for this?

    Thanks in Advance
    Edgar Castanedo
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Edmonton, AB, Canada
    Posts
    44
    Rep Power
    14
  4. #3
  5. No Profile Picture
    <(>_~)>
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2002
    Posts
    315
    Rep Power
    13
    Just in case you find those tutorials a little too cryptic (I do ), you can probably get file-sharing working by typing these 2 commands into the console:

    echo 1 > /proc/sys/net/ipv4/ip_forward
    ipchains -I forward -s 192.168.0.0/24 -d 0/0 -j MASQ

    I am not a l33t Linux user, I'm a newbie, so I don't know if this is the best solution to the problem... it's quick though - hope it helps you!
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Location
    Brisbane, Australia
    Posts
    21
    Rep Power
    0

    Exclamation security


    It's important to not to forget the security factors when using ipchains or iptables to do masquerading (or infact at any time).

    Although it is simple enough to enable Internet Sharing (IP Masquerading) with a couple of commands, you shouldn't do this without proper firewalling to accompany it.

    Make sure you find a suitable firewall script that supports IP Masquerading instead of just enabling IP Masquerading.

    Just food for thought.

IMN logo majestic logo threadwatch logo seochat tools logo