🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.linux.setup
11 messages
11 total messages Started by Jim Smith Sun, 07 Sep 1997 00:00
Setting up internal network connected to internet
#558
Author: Jim Smith
Date: Sun, 07 Sep 1997 00:00
51 lines
2391 bytes

I am trying to set up an internal network (at home) with access to the
internet.  This is more of an exercise for my interest rather than an
attempt to do something serious. 

I am using two Linux machines connect via plip. One of these machines
also has a PPP connection to my ISP. I can successfully connect the two
machine using PLIP, and while this connection is up I can access the
internet via PPP from the machine with PPP set up. 

What I can't do is access the internet from the other machine using the
PPP machine as a gateway. Any tips.

So far I have the following

Main machine (desktop)

PPP connection using dip. IP address 158.152.3.4 pointopoint 158.152.x.y
(I can't remember the real one at the moment.)

ifconfig plip1 10.0.0.2(desktop) pointopoint 10.0.0.1(laptop)

Secondary machine

ifconfig plip1 10.0.0.1(laptop) pointopoint 10.0.0.2(desktop)

I can ping desktop and can even access my apache server on it, bt I
can't get beyond it.

I have tried setting up some static routes - some of them refuse to be
set (saying network unreachable) while others are set up but don't allow
any communication.

Among the routes I have tried are 

route add -net 158.152.0.0 gw 10.0.0.1

route add -net 158.152.0.0 gw 10.0.0.2
route add -host 10.0.0.2 gw 10.0.0.1
route add -host (demon dns server on the 158.152 network) gw 10.0.0.2
route add -host (158.152.x.y (the other end of my PPP link) gw 10.0.0.2

I think I have covered most of the combinations of the above. 

Is what I am trying possible? If so what I am doing wrong?

TIA

-- 
Jim Smith
Re: Setting up internal network connected to internet
#559
Author: s t
Date: Sun, 07 Sep 1997 00:00
17 lines
1199 bytes
In article <VZ1RSBAbyvE0Ew6u@jimsmith.demon.co.uk>, Jim Smith wrote:
>I am trying to set up an internal network (at home) with access to the
>internet.  This is more of an exercise for my interest rather than an
>attempt to do something serious. 
>

>
>Is what I am trying possible? If so what I am doing wrong?
>


What you need to do is set up IP masquerading. Some details are
available in the NET-2-HOWTO.

-- 
Steve
Re: Setting up internal network connected to internet
#560
Author: Andrew Costa
Date: Mon, 08 Sep 1997 00:00
15 lines
1385 bytes
On Sun, 07 Sep 1997 20:58:16 GMT, s t <steve@better.demon.co.uk> wrote:
>In article <VZ1RSBAbyvE0Ew6u@jimsmith.demon.co.uk>, Jim Smith wrote:
>>I am trying to set up an internal network (at home) with access to the
>>internet.  This is more of an exercise for my interest rather than an
>>attempt to do something serious. 

>>Is what I am trying possible? If so what I am doing wrong?

>What you need to do is set up IP masquerading. Some details are
>available in the NET-2-HOWTO.

Or else use "socks"

http://www.socks.nec.com/
Re: Setting up internal network connected to internet
#561
Author: Peter Rye
Date: Mon, 08 Sep 1997 00:00
28 lines
1868 bytes

steve@better.demon.co.uk (s t) writes:

> 
> In article <VZ1RSBAbyvE0Ew6u@jimsmith.demon.co.uk>, Jim Smith wrote:
> >I am trying to set up an internal network (at home) with access to the
> >internet.  This is more of an exercise for my interest rather than an
> >attempt to do something serious. 
> >
> 
> >
> >Is what I am trying possible? If so what I am doing wrong?
> >
> 
> 
> What you need to do is set up IP masquerading. Some details are
> available in the NET-2-HOWTO.

What he really needs to do is recompile the kernel with IP forwarding enabled.
IP masquerading might be necessary if he wants the other machine to appear as
though it has the same IP address as his directly connected machine.

-- 
Peter Rye  <prye@picu-sgh.demon.co.uk>
Consultant in Paediatric Intensive Care,  St. George's Hospital, London, UK
Ph: +44 (0)181 725 1932                            Fax: +44 (0)181 725 0089
** Smoking areas in restaurants are like peeing areas in swimming pools. **
Re: Setting up internal network connected to internet
#562
Author: Mike Welch
Date: Mon, 08 Sep 1997 00:00
35 lines
2239 bytes
Peter Rye <prye@picu-sgh.demon.co.uk> writes:

> steve@better.demon.co.uk (s t) writes:
> 
> > In article <VZ1RSBAbyvE0Ew6u@jimsmith.demon.co.uk>, Jim Smith wrote:
> > >I am trying to set up an internal network (at home) with access to the
> > >internet.  This is more of an exercise for my interest rather than an
> > >attempt to do something serious. 
> > >
> > >Is what I am trying possible? If so what I am doing wrong?
> > 
> > What you need to do is set up IP masquerading. Some details are
> > available in the NET-2-HOWTO.
> 
> What he really needs to do is recompile the kernel with IP
> forwarding enabled.  IP masquerading might be necessary if he wants
> the other machine to appear as though it has the same IP address as
> his directly connected machine.

No, what he needs to do *is* compile with IP masquerading. He said he
was using 10.* as his IP address which is the reserved class A I
believe, so without masquerading his packets will be dropped at the
first sensible router. Plus of course forwarding packets out onto the
internet with IP numbers that aren't yours is a bad move anyway.

A useful resource is
http://www.xos.nl/linux/ipfwadm/paper/linuxfw.html 
which explains quite clearly how firewalling and masquerading work
under Linux.

Bye

-- 
Mike Welch                                 http://www.tara.demon.co.uk/
Re: Setting up internal network connected to internet
#552
Author: DEFECT
Date: Tue, 09 Sep 1997 00:00
28 lines
1572 bytes
On your main machine (desktop) your kernel should have been compiled with
the following options :

- IP_Forwarding
- IP_firewall

Than you setup the firewall (read man page). And it should work. I hope...

I also have a linux machine and there are several win95-machines attached
to it via a network. My linux server can automatically connect to our ISP,
using diald. And I have a firewall setup. My machine also collects mail
automatically when connected to the internet (using fetchmail) and
everybody on the network has his own email-account on my server, and I use
procmail to filter the email.

I hope I gave some interresting brain meat, because it's really
interresting to read all the man pages, and try to understand them, so the
software will work properly. 

Good luck,

Drizzt (on DEFECT'S comp..)




 
Re: Setting up internal network connected to internet
#553
Author: Peter Rye
Date: Wed, 10 Sep 1997 00:00
34 lines
2368 bytes
Mike Welch <mike@tara.demon.co.uk> writes:

> 
> Peter Rye <prye@picu-sgh.demon.co.uk> writes:
> 
> > steve@better.demon.co.uk (s t) writes:
> > 
> > > In article <VZ1RSBAbyvE0Ew6u@jimsmith.demon.co.uk>, Jim Smith wrote:
> > > >I am trying to set up an internal network (at home) with access to the
> > > >internet.  This is more of an exercise for my interest rather than an
> > > >attempt to do something serious. 
> > > >
> > > >Is what I am trying possible? If so what I am doing wrong?
> > > 
> > > What you need to do is set up IP masquerading. Some details are
> > > available in the NET-2-HOWTO.
> > 
> > What he really needs to do is recompile the kernel with IP
> > forwarding enabled.  IP masquerading might be necessary if he wants
> > the other machine to appear as though it has the same IP address as
> > his directly connected machine.
> 
> No, what he needs to do *is* compile with IP masquerading. He said he
> was using 10.* as his IP address which is the reserved class A I

Yes, you're correct. I didn't see/note the original post regarding the 10.* 
IP address. I use firewalling/masquerading/forwarding here.

-- 
Peter Rye  <prye@picu-sgh.demon.co.uk>
Consultant in Paediatric Intensive Care,  St. George's Hospital, London, UK
Ph: +44 (0)181 725 1932                            Fax: +44 (0)181 725 0089
** Smoking areas in restaurants are like peeing areas in swimming pools. **
Re: Setting up internal network connected to internet
#554
Author: rasauq
Date: Mon, 15 Sep 1997 00:00
32 lines
1909 bytes
Jim Smith wrote:
> 
> I am trying to set up an internal network (at home) with access to the
> internet.  This is more of an exercise for my interest rather than an
> attempt to do something serious.
> 
> I am using two Linux machines connect via plip. One of these machines
> also has a PPP connection to my ISP. I can successfully connect the two
> machine using PLIP, and while this connection is up I can access the
> internet via PPP from the machine with PPP set up.

mind telling me some about plip? like, what kind of a cable are you
using?
(ie, pinouts, or is it just a laplink cable?)

> What I can't do is access the internet from the other machine using the
> PPP machine as a gateway. Any tips.
> 
> So far I have the following
> 
> Main machine (desktop)
> 
> PPP connection using dip. IP address 158.152.3.4 pointopoint 158.152.x.y
> (I can't remember the real one at the moment.)

<snip>

> Is what I am trying possible? If so what I am doing wrong?

just a stray thought, but did you include IP_FORWARDING when you
compiled the kernal of the machine with the ppp connection?
Re: Setting up internal network connected to internet
#555
Author: Alex Ashley
Date: Tue, 16 Sep 1997 00:00
30 lines
1870 bytes
In article <m33endl82w.fsf@picu-sgh.demon.co.uk>,
Peter Rye  <prye@picu-sgh.demon.co.uk> wrote:
>Mike Welch <mike@tara.demon.co.uk> writes:
>
>> 
>> Peter Rye <prye@picu-sgh.demon.co.uk> writes:
>> 
>> > steve@better.demon.co.uk (s t) writes:
>> > 
>> > > In article <VZ1RSBAbyvE0Ew6u@jimsmith.demon.co.uk>, Jim Smith wrote:
>> > > >I am trying to set up an internal network (at home) with access to the
>> > > >internet.  This is more of an exercise for my interest rather than an
>> > > >attempt to do something serious. 
>> > > >
>> > > >Is what I am trying possible? If so what I am doing wrong?
>> > > 

[snip]

I have set up a similar setup at home, which might be useful for
getting you started.  Have a look at

http://www.ripley.demon.co.uk/linux/masquerading.html

Alex
-- 
Alex Ashley (alex@prl.research.philips.com) Research Scientist/Linux Admin/
PC Admin/Backup Admin (why do one job when you can do four!)
It's probably best to assume standard "I don't speak for the company" disclamer
Re: Setting up internal network connected to internet
#556
Author: David GJ Roberts
Date: Tue, 16 Sep 1997 00:00
12 lines
1438 bytes

Plip - what fun that was - I used to run a PLIP connection from a DX2-66
to a 386dx-40. Those were the days, then I bought some ethernet cards...
Much better idea...

David - 5 PC's and counting :)
-- 
whoami:   David J Roberts                -----------------------------------
HOSTNAME: hayley.demon.co.uk             |                                 |
mail:     gadget@hayley.demon.co.uk      | My My, isn't that a large one?! |
httpd:    http://www.hayley.demon.co.uk  |                                 |
Re: Setting up internal network connected to internet
#557
Author: Jim Smith
Date: Tue, 16 Sep 1997 00:00
28 lines
1945 bytes
In article <341DFAF8.4849@geocities.com>, rasauq
<rasauq_no_spam@geocities.com> writes
>Jim Smith wrote:
>> 
>> I am trying to set up an internal network (at home) with access to the
>> internet.  This is more of an exercise for my interest rather than an
>> attempt to do something serious.
>> 
>> I am using two Linux machines connect via plip. One of these machines
>> also has a PPP connection to my ISP. I can successfully connect the two
>> machine using PLIP, and while this connection is up I can access the
>> internet via PPP from the machine with PPP set up.
>
>mind telling me some about plip? like, what kind of a cable are you
>using?
>(ie, pinouts, or is it just a laplink cable?)
A laplink cable is exactly what it is. A great yellow thing. PLIP was
simple to set up. PLIP seemed to be included in the kernel, and I just
followed the PLIP howto.
>
>just a stray thought, but did you include IP_FORWARDING when you
>compiled the kernal of the machine with the ppp connection?

No. I will try that (as advised by several people) when I get time.

-- 
Jim Smith
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads