Internet connection sharing

Asked by Christian Dalbjerg

My setup is the following:

I have installed Ubuntu 6.10 on my laptop computer. It connects to the internet via the wireless card, through a network-router, over which I have no control.
On my second computer, I also have Ubuntu 6.10 installed, but this computer has no wireless card, and can only connect through a network-cable.

Is it possible to connect this second computer to my main laptop with a network-cable, such that the second computer gets internet access using the connection of my main laptop?

I could imagine that the main computer would have to be set up as some sort of server (proxy?). From reading around a bit, it also seems that something called ip-masquerading should be involved, but I basically have no idea what to do.
Please remember that the entire system described above would have to be configured without involving the router to which the main laptop is connected.

Any sort of howto or guide on how to build this kind of system would be greatly appreciated.

Best regards, Christian

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu linux-source-2.6.20 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
José Ernesto Dávila Pantoja (josernestodavila) said :
#1

It is totally possible to add share your laptop internet connection with you second computer. You could use Firestarter (a firewall application) to share the connection.

You have to setup your laptop as default gateway for your second computer in order to use its internet connection.

Greets

José Ernesto

Revision history for this message
helix84 (helix84) said :
#2

Only to make clear what Jose said - you need to change your desktop's network configuration to specify the laptop as its gateway. This can be done as described here:
http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_configure_network_connections

Now the important part - configuring the laptop as a gateway. You can find a detailed guide to ICS using Firestarter here:
http://www.fs-security.com/docs/connection-sharing.php

(Note that in this trivial 1-client case you don't need to set up DHCP, to save you from the need to configure it, but it won't hurt either, if you want to try.)

Revision history for this message
Tjawi (tjawi) said :
#3

Hi There,

Please review this link below, it provides a very practical and easy way of sharing internet connection from Ubuntu.

I hope it helps.

http://bigbrovar.wordpress.com/2008/12/18/how-to-share-your-internet-connection-on-ubuntu/

Can you help with this problem?

Provide an answer of your own, or ask Christian Dalbjerg for more information if necessary.

To post a message you must log in.