[pptp-server] routing problem with pppd

John Van Ostrand john at netdirect.ca
Tue May 23 10:41:41 CDT 2000


Yes it is true that you can have more than one default gateway on a unix
system. But in this case there doesn't appear to be a need.

His current default gateway going is going to a system called "gateway" on
his LAN. This would be approporiate if there was a router connecting him to
the Internet. But, he stated that he is using pppd and gave the logs of pppd
dialout indicating that the system "fairbanks" dials the Internet. I presume
that this is the same system that does the pptp.

If this is the case, once the pppd connection is up the default route should
be pointing out their pppd. Since that is the route to the Internet. If they
require access to separate subnets through the "gateway" router then those
should be specified explicitly.

John.

> -----Original Message-----
> From: T.Shaw [mailto:hshaw at healthcentralrx.com]
> Sent: Tuesday, May 23, 2000 10:37 AM
> To: John Van Ostrand; mrauscher at bigfoot.com;
> pptp-server at lists.schulte.org
> Subject: Re: [pptp-server] routing problem with pppd
> 
> 
> He doesn't have to do that.. If he running any type of Unix 
> box, just add a
> default route for all traffic for the pptp tunnel to go out the ppp0
> interface..You can have more than 1 gateway on a unix box.. That way..
> traffic destined for your local LAN stays on your local LAN 
> and traffic for
> your pptp tunnel goes out the ppp0 interface.
> 
> ----- Original Message -----
> From: "John Van Ostrand" <john at netdirect.ca>
> To: <mrauscher at bigfoot.com>; <pptp-server at lists.schulte.org>
> Sent: Tuesday, May 23, 2000 5:13 AM
> Subject: RE: [pptp-server] routing problem with pppd
> 
> 
> > Michael,
> >
> > First off your default route is pointed to your ethernet. 
> This means that
> it
> > would be impossible to connect to any server outside (except "dns".)
> >
> > Remove the default route to your ethernet and try adding a 
> "defaultroute"
> to
> > you pppd command line.
> >
> > John
> >
> > > -----Original Message-----
> > > From: Michael Rauscher [mailto:mrauscher at excite.com]
> > > Sent: Monday, May 22, 2000 11:10 PM
> > > To: pptp-server at lists.schulte.org
> > > Subject: [pptp-server] routing problem with pppd
> > >
> > >
> > > Okay, I believe I've got a simple routing problem but I don't
> > > know how to
> > > fix it. Please help!!!
> > >
> > > I'm trying to setup a pptp vpn between a Win98 SE client
> > > (I-net connected
> > > through dialout to an ISP) and a Linux PoPToP server which is
> > > on a LAN
> > > (also I-net connected through dialout to an ISP).
> > >
> > > To test everything I've got the PoPToP server (RH6.2), and
> > > the Win98 SE
> > > client, both on a 192.168.00 LAN. I can VPN to the linux
> > > server and it works
> > > slick (thanx to lots of help from searching this list, the
> > > howtos and much
> > > head-banging). But, when I try to connect via the ISP link,
> > > the server isn't
> > > responding.
> > >
> > > I've got the server doing demand dialing, and when I get the
> > > IP address from
> > > its ppp0 interface, I use that to try to connect with the Win
> > > client. Seems
> > > simple, but this routing thing is driving me crazy. Yep, I'll
> > > admit it --
> > > I'm a neophyte and am trying to learn all this stuff on my
> > > own, but I'd
> > > really appreciate it if someone could take a look at this
> > > output and give me
> > > a clue before I lose any more hair. BTW, ipchains is wide
> > > open for purposes
> > > of the testing; I' pretty sure that's not the problem. 
> Check out the
> > > messages from the log below related to the routes and proxyarp.
> > >
> > > Here's my options file:
> > >
> > > #/etc/ppp/options
> > > +chapms
> > > +chapms-v2
> > > mppe-40
> > > mppe-128
> > > mppe-stateless
> > > proxyarp
> > > demand
> > > debug
> > > idle 120
> > > ipcp-accept-remote
> > > ipcp-accept-local
> > > mru 1500
> > > lock
> > > noauth
> > > defaultroute
> > > user powerplt
> > > remotename *
> > > modem 57600 crtscts
> > > connect '/usr/sbin/chat -v -f /etc/ppp/dialout-chat'
> > >
> > > I start pppd like this:
> > >
> > > <pppd /dev/modem file /etc/ppp/options.dialout :dns-server>
> > >
> > > <tail /var/log/messages>
> > >
> > > May 22 18:58:28 fairbanks kernel: CSLIP: code copyright 1989
> > > Regents of the
> > > University of California
> > > May 22 18:58:28 fairbanks kernel: PPP: version 2.3.10 (demand
> > > dialling)
> > > May 22 18:58:28 fairbanks kernel: PPP line discipline registered.
> > > May 22 18:58:28 fairbanks kernel: registered device ppp0
> > > May 22 18:58:57 fairbanks pppd[745]: pppd 2.3.10 started by
> > > root, uid 0
> > > May 22 18:58:57 fairbanks pppd[745]: Using interface ppp0
> > > May 22 18:58:57 fairbanks pppd[745]: not replacing existing
> > > default route to
> > > eth0 [192.168.0.1]
> > > May 22 18:58:57 fairbanks pppd[745]: Cannot determine
> > > ethernet address for
> > > proxy ARP
> > > May 22 18:58:57 fairbanks pppd[745]: local  IP address 10.64.64.64
> > > May 22 18:58:57 fairbanks pppd[745]: remote IP address 
> xxx.xxx.121.2
> > >
> > > <route>
> > >
> > > Kernel IP routing table
> > > Destination     Gateway         Genmask         Flags Metric
> > > Ref    Use
> > > Iface
> > > dns             *               255.255.255.255 UH    0
> > > 0       0 ppp0
> > > fairbanks       *               255.255.255.255 UH    0
> > > 0        0 eth0
> > > 192.168.0.0     *               255.255.255.0   U     0
> > > 0        0 eth0
> > > 127.0.0.0       *               255.0.0.0       U     0
> > > 0        0 lo
> > > default         gateway         0.0.0.0         UG    0
> > > 0        0 eth0
> > >
> > > mike rauscher
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________________
> > > Get 100% FREE Internet Access powered by Excite
> > > Visit http://freelane.excite.com/freeisp
> > >
> > > _______________________________________________
> > > pptp-server maillist  -  pptp-server at lists.schulte.org
> > > http://lists.schulte.org/mailman/listinfo/pptp-server
> > > List services provided by www.schulte.org!
> > >
> > _______________________________________________
> > pptp-server maillist  -  pptp-server at lists.schulte.org
> > http://lists.schulte.org/mailman/listinfo/pptp-server
> > List services provided by www.schulte.org!
> 



More information about the pptp-server mailing list