Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Some one working with pptp-linux?

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Javier Vasquez <j.e.vasquez.v AT gmail.com>
  • To: "sm, discuss" <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] Some one working with pptp-linux?
  • Date: Sat, 22 Dec 2012 18:46:20 -0600

On Fri, Dec 21, 2012 at 4:47 PM, Sukneet Basuta <sukneet AT gmail.com> wrote:
> I don't have too much experience with pptp, but do the debug logs
> reveal anything?
> http://pptpclient.sourceforge.net/howto-diagnosis.phtml#debug
>
> Maybe see
> http://pptpclient.sourceforge.net/howto-diagnosis.phtml#rtnetlink_file_exists

See the output always looked good, the authentication was OK, the
problem was in the routing tables...

As there are no ip-up.d/ neither ip-down.d/ sub-dirs provided by ppp
on SMGL (I guess), there are some things regarding the routing tables
not happening...

Missing was (<local_gateway> is the local closest gateway, like
192.168.1.1, <local_network> is the local network, like 192.168.2.0):

route add -net <local_network> netmask 255.255.255.0 dev ppp0
route del default gw <local_gateway> <dev>
route del -net <local_network> netmask 255.255.255.0 dev <dev>
route add default gw <local_gateway> ppp0

When closing the pptp connection I'm still having some problems, cause
there are left overs not able to be removed given ppp0 is gone, so I'm
missing something. Some times the following works:

route add -net <local_network> netmask 255.255.255.0 dev <dev>
route add default gw <local_gateway> <dev>

But sometimes it doesn't. When it doesn't, it's a problem, cause
there are always pptp related left overs in the routing tables that
can't be removed given ppp0 is removed...

Any ways, at least I can connect now, :-)

Just in case, besides fixing pptp-linux, I updated iproute2 which was
out of date. I don't believe the iproute2 upgrade helped much, but
one never knows...

Thanks,

--
Javier.




Archive powered by MHonArc 2.6.24.

Top of Page