Networking Forums

Networking Forums > Computer Networking > Linux Networking > Help sharing a dial-up modem with two Ubuntu 6.10 computers

Reply
Thread Tools Display Modes

Help sharing a dial-up modem with two Ubuntu 6.10 computers

 
 
larkmore@aol.com
Guest
Posts: n/a

 
      04-04-2007, 06:52 PM
So close and yet so far...
I have two computers running Ubuntu 6.10 (Edgy Eft) at home. One has
an external dial-up modem to connect to the internet, which works
great (but obviously slow). We'll call this Computer A. The other one
has only a networking card, and we'll call it Computer B. Last night I
got the two computers to recognize each other over the network and
share files using (I think) a Samba share. I'm trying to get Computer
B to be able to access the internet when Computer A is dialed in.

I followed the instructions on the Firestarter website
http://www.fs-security.com/docs/connection-sharing.php but took the
path of static IPs instead of mucking around with a DHCP server.
_Almost_ everything works. I'm using IPs of 192.168.0.1 for Computer A
and 192.168.0.2 for Computer B. I can ping each one from the other and
get a response. As mentioned above, Computer B was able to copy files
from a shared folder on Computer A. So for the most part, networking
works. In the Firestarter preferences panel I have the "Internet
connected network device" set to the modem (PPP0) and the "Local
network connected device" set to the networking card (ETH0). Internet
connection sharing is checked, and the DHCP is diabled (not checked).

Now, here's the question: what do I need to do on Computer B to let
programs such as Firefox, Synaptic, etc. see the big bad intarweb-
hicky? They just sort of sit there twiddling their thumbs and saying
no connection found. The more detailed the instructions, the better.
Screenshots are good. I spent all night hunting the web for answers
and they were all hand-wavy and vague.

-Will

 
Reply With Quote
 
 
 
 
Robert Harris
Guest
Posts: n/a

 
      04-04-2007, 07:49 PM
(E-Mail Removed) wrote:
> So close and yet so far...
> I have two computers running Ubuntu 6.10 (Edgy Eft) at home. One has
> an external dial-up modem to connect to the internet, which works
> great (but obviously slow). We'll call this Computer A. The other one
> has only a networking card, and we'll call it Computer B. Last night I
> got the two computers to recognize each other over the network and
> share files using (I think) a Samba share. I'm trying to get Computer
> B to be able to access the internet when Computer A is dialed in.
>
> I followed the instructions on the Firestarter website
> http://www.fs-security.com/docs/connection-sharing.php but took the
> path of static IPs instead of mucking around with a DHCP server.
> _Almost_ everything works. I'm using IPs of 192.168.0.1 for Computer A
> and 192.168.0.2 for Computer B. I can ping each one from the other and
> get a response. As mentioned above, Computer B was able to copy files
> from a shared folder on Computer A. So for the most part, networking
> works. In the Firestarter preferences panel I have the "Internet
> connected network device" set to the modem (PPP0) and the "Local
> network connected device" set to the networking card (ETH0). Internet
> connection sharing is checked, and the DHCP is diabled (not checked).
>
> Now, here's the question: what do I need to do on Computer B to let
> programs such as Firefox, Synaptic, etc. see the big bad intarweb-
> hicky? They just sort of sit there twiddling their thumbs and saying
> no connection found. The more detailed the instructions, the better.
> Screenshots are good. I spent all night hunting the web for answers
> and they were all hand-wavy and vague.
>
> -Will
>

Computer B needs to be set up to use Computer A as a gateway (to the
rest of the world). I don't know about firestarter, but Computer B's
/etc/network/interfaces file should look like:

auto eth0
iface eth0
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1

and its /etc/resolv.conf file should contain the same as Computer A's.

Computer A should have a similar description of eth0 (with different
address and without the gateway line. It should also be configured to do
network address translation for Computer B. (the package ipmasq does it
well for be but I'm sure that there must be better ways by now).

Robert
 
Reply With Quote
 
Allen McIntosh
Guest
Posts: n/a

 
      04-05-2007, 02:59 AM
> (E-Mail Removed) wrote:
>> [Using Computer A as gateway for Computer B]
>> Now, here's the question: what do I need to do on Computer B to let
>> programs such as Firefox, Synaptic, etc. see the big bad intarweb-
>> hicky?


Robert Harris covered most of the things you need to do.

In addition, Computer A needs to have IP forwarding turned on. If

$ cat /proc/sys/net/ipv4/ip_forward

returns 0, arrange for /etc/sysctl.conf to contain the line

net.ipv4.ip_forward = 1

Disclaimer: If Ubuntu puts this configuration information in some other
place, I'm sure someone will post a correction...
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet sharing with ubuntu? simon.jackson@gmail.com Linux Networking 2 06-26-2006 04:25 PM
Help with internet connection sharing...two computers...one dial-up Cindy Home Networking 4 02-05-2005 04:12 PM
Ad Hoc and Internet connection sharing Using a Dial up Modem Robert Harrell Wireless Internet 2 11-25-2003 02:14 PM
Help Please help Wireless networking and sharing a dial up modem Robert Harrell Wireless Internet 1 11-24-2003 05:05 AM
Wireless networking sharing a dial up modem Help please Robert Harrell Home Networking 1 11-22-2003 09:11 AM



1 2 3 4 5 6 7 8 9 10 11