Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Broadband connection sharing?

  • 14-10-2004 4:11pm
    #1
    Registered Users, Registered Users 2 Posts: 2,719 ✭✭✭


    I want to share a broadband connection between afew box using a usb modem using a linux box.
    Any pointers on how to using slackware?


Comments

  • Banned (with Prison Access) Posts: 16,659 ✭✭✭✭dahamsta


    Generic answer but...

    First Google for Linux drivers for your modem using Google Linux. If you find some, check the README and INSTALL file for info on sharing, if it can be done they'll likely mention it there. They'll probably also give you basic details on setting up a DHCP daemon, which you'll use to assign IP addresses to your LAN machine(s).

    If you can't find linux drivers for the modem I'm afraid you'll have to share your connection via a Windows box. Or buy a router. Hmmm, I probably should have said that first... :)

    adam


  • Registered Users, Registered Users 2 Posts: 1,419 ✭✭✭nadir


    you want to have netfilter compiled into the kernel (yes thats a whole lot of stuff under netfilter, select it all or read a proper guide on it, it's probably built in automatically on slack though) on the linux router.
    you could set up a dhcpcd server like dahamsta said, to assign ip's automatically, or you could assign them manually,
    you will then need to enable ip masquerading on the router,

    echo 1 > /proc/sys/net/ipv4/ip_forward

    and add a default route from each client to the router.
    so if you had setup an ethernet conn on the server like

    iface_eth0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"

    you would add a default gateway route to that machine from the clients

    route add default gw 192.168.0.1

    thats very basic, but you get the idea.


  • Registered Users, Registered Users 2 Posts: 2,719 ✭✭✭ARGINITE


    thanks for the help!
    you couldnt point me in the direction of a linux how to on this subject, im not the most proficient in this whole area!


  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 93,857 Mod ✭✭✭✭Capt'n Midnight


    I always forget which file to modify in init.d to get the ip_forward to happen on next boot.


    If you are not familiar with Linux you would be better off trying one of the routers out there that have nat / firewall / dhcp server - but very few have USB drivers.

    I'd reckon your biggest problem will be getting a driver for the modem - ethernet ADSL units are not that much more expensive and if you get one with four network ports chances are it will have a basic firewall and DHCP built in.

    You should also look at setting up Squid (or SquidNT) as this can control internet access and save bandwidth by caching.


  • Registered Users, Registered Users 2 Posts: 2,719 ✭✭✭ARGINITE


    thanks for all the help


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,067 ✭✭✭tomk


    ARGINITE wrote:
    you couldnt point me in the direction of a linux how to on this subject

    Click here.

    I always forget which file to modify in init.d to get the ip_forward to happen on next boot.

    Depends on the distro, Capt, e.g. in Debian you edit /etc/network/options to say
    ip_forward=yes
    


  • Registered Users, Registered Users 2 Posts: 2,719 ✭✭✭ARGINITE


    thanks tomk


Advertisement