Easily Share Internet Connection in Ubuntu Ibex

So here is the case, you have more than one computers in your place, one internet connection, one of them (or all) has Ubuntu inside, and you want all of your pcs to be able to connect to internet through the Ubuntu pc. What you need to do in your Ubuntu pc (the gateway) is:

  1. Install dhcp server
    sudo apt-get install dhcp3-server
  2. Install firestarter
    sudo apt-get install firestarter
  3. Create symbolic link for dhcpd. Need to do this because firestarter looks for dhcpd, while in Ibex there’s only dhcpd3.
    sudo ln -s /usr/sbin/dhcpd3 /usr/sbin/dhcpd
  4. You might need to assign ipaddress to the network interface card that connect to your LAN.
    sudo ifconfig eth0 192.168.0.1
  5. Run firestarter
  6. firestarterwizard1
  7. firestarterwizard2
  8. firestarter3
  9. firestarter4
  10. Just connect your other pcs to the hub/switch

Note:

  1. I used Intrepid Ibex.
  2. I connected the pcs through cable. Haven’t tried this method for sharing internet connection over wireless (adhoc).

~ by overblaze on February 4, 2009.

Leave a Reply