Routing for a ppp client via another ppp link - possible?

Routing for a ppp client via another ppp link - possible?

Post by Rajib Rash » Mon, 29 May 1995 04:00:00



Hello:

        I currently have my linux box networked using a ppp link to another
Linux box which is networked via an Ethernet card. I want to make 2 other
computers (one pc running Linux and one Mac using MacTCP+MacPPP) networked,
but I only have one phone line to spare. Is it possible in any way to make
my machine act as a ppp server, and then somehow route all traffic using my
ppp link? I know it sounds complicated, but this is how I have everything
setup now:

-       My machine (Enigma) uses a modem (/dev/cua1) and interface ppp0 to
        connect to the ppp server (Opossum) (/dev/cua1 <--> ppp0)

-       The Mac (Lilac) uses the serial line of Enigma (/dev/cua0) to
        establish the ppp link ppp1 (/dev/cua0 <--> ppp1)

-       Lilac can talk to Enigma (telnet/ftp) and I can ping Lilac from
        Enigma, but Lilac is invisible to the rest of the world.

        How would I go about seting up the routing table to that all traffic
to/from ppp1 is routed through ppp0. Do I have to use routed/gated? And if
so, I would like some help setting them up because I have never used them
before.

        Any help would be appreciated. Please send your replies to

        Regards

        Rajib Rashid
        University of Rochester

 
 
 

Routing for a ppp client via another ppp link - possible?

Post by Torsten Eichstaed » Tue, 30 May 1995 04:00:00


Hi Rajib, hello readers,

You do need to use route to configure gateways.
Try tho following:
1. Tell the sysop where your PPP link goes to to enable routes for your other maschines.
I suppose you will be given a subnet in his/her net - otherwise you will get just
numbers.

2. Tell enigma to have a default route to opossum. This makes it act as a gateway.
in /etc/rc.d/rc.inet1:
[ There will be something like pppd /dev/cua1 <IP-enigma>:<IP-opossum> ]
[ and                          pppd /dev/cua0 <IP-enigma>:<IP-lilac> ]
/sbin/route add default metric 1 dev ppp0

3. Tell lilac to use enigma as a gateway:
Use the MacTCP configuration tool.

You dont need to use route and ifconfig for direct PPP-links, the pppd does that for you.
But to act as a gateway for other machines (or nets), you must use route.
You dont need to use gated; but probably you need to configure enigma to be your name
server.
Set the MTU to 296 (between enigma and opussum) if you will use the link concurently with
many machines. This will give better performance (no "stocking" when two users use the
link at the same time).

Read books about TCP/IP.

Good luck,
        torsten

 
 
 

Routing for a ppp client via another ppp link - possible?

Post by Grant R. Bowm » Tue, 06 Jun 1995 04:00:00


How about this:  if instead of using a regular PPP link for the main link,
instead of assigning a subnet for item #1, use either SLiRP -P (for PPP)
or TIA (SLIP only, but the same thing).

Will this work?  I think it will according to the SLiRP docs, but when I
tried to get just a regular SLiRP PPP link going (no routing yet) I think
my LCP packets were being ignored so it wouldn't come up.  I'm going to
keep trying though.  I want to use SLiRP and PPP, but I may try it with
TIA and SLIP as a fallback.

Cheers,

--
-- Grant R. Bowman                                AdvoTech



> Hi Rajib, hello readers,

> You do need to use route to configure gateways.
> Try tho following:
> 1. Tell the sysop where your PPP link goes to to enable routes for your
other maschines.
> I suppose you will be given a subnet in his/her net - otherwise you will
get just
> numbers.

> 2. Tell enigma to have a default route to opossum. This makes it act as
a gateway.
> in /etc/rc.d/rc.inet1:
> [ There will be something like pppd /dev/cua1 <IP-enigma>:<IP-opossum> ]
> [ and                          pppd /dev/cua0 <IP-enigma>:<IP-lilac> ]
> /sbin/route add default metric 1 dev ppp0

> 3. Tell lilac to use enigma as a gateway:
> Use the MacTCP configuration tool.

> You dont need to use route and ifconfig for direct PPP-links, the pppd
does that for you.
> But to act as a gateway for other machines (or nets), you must use route.
> You dont need to use gated; but probably you need to configure enigma to
be your name
> server.
> Set the MTU to 296 (between enigma and opussum) if you will use the link
concurently with
> many machines. This will give better performance (no "stocking" when two
users use the
> link at the same time).

> Read books about TCP/IP.

> Good luck,
>         torsten

--
-- Grant R. Bowman                                AdvoTech

 
 
 

1. Routing on RedHat 6.1 via PPP link???

Hi there,

I have the following setup:
---------------------------

A RedHat 6.1 gateway (Kernel 2.2.13) set up to
MASQ machines on an internal network 192.168.x.x
to the Internet on address 139.130.aa.bb

MASQ works great, no problems.

I have also set up port forwarding (Port 80 for www)
for incomming requests to be forwarded to a machine on
the internal network (Also port 80).

This also works great.

Here is my problem:
===================

The forwarding only works for for requests being
received at my Internet IP (139.130.aa.bb).

I have a sub net 8 group of IP addresses on the net
(203.44.8.248/29) that are going to be advertised
to the World trough an external DNS.
Each address will be allocated a service like WWW,
Mail, FTP etc.

The 6 usable addresses (Starting at 203.44.8.249)
are routed by the ISP to my Internet IP address
(139.130.aa.bb)

In other words each of the above sub net 8 addresses
arrive at 139.130.aa.bb.

How do I "grab" these addresses and forward them
to my internal network via port forwarding.

I have tried the following:
---------------------------

1. Set up port forwarding with the source address
   being 203.44.8.249.  This does not work.

2. Added a route with the -net switch to route
   203.44.8.249 on interface ippp0 (The external if.)
   This did not work. (Netmask=255.255.255.255)

3. Tried the 2 above together.  This did not work.

Maybe my approach is wrong but I suspect that I need to
set up some additional routing on the external interface (The PPP link
if.)

I have read the various Networking HOW-TO files and some
Firewall info but can not work things out.

According to the DOCS it should be simple to use Linux
as a router but I do not know how to combine this with
a firewall as in my set up.

Are there any DOCS or WWW sites out there that describe
how this would be done?

Has anyone done this with success?

Anthony

2. The trouble with write errors

3. Routing from a local ethernet to a remote network via a PPP link-HOW ???

4. Need help with SB pci128

5. PPP and PPP and PPP and PPP and PPP and HEADACHE

6. udp/80 ?

7. 2 LANs via PPP servers possible?

8. Which InkJet printers supported in Linux ?

9. PPP difficulties with win95 dialing to linux via ppp.

10. IPX Routing over PPP Connection: Possible?

11. HELP: Possible PPP Routing Problem

12. Linux/dial-up-PPP to route multple IP addresses - possible?

13. Help with ppp on 2.6 supplied from ppp server via annex