Date: Wed, 13 Oct 1999 10:09:32 +0200 From: "Oleg Semyonov" <os@altavista.net> To: "Krassimir Slavchev" <krassi@bulinfo.net> Cc: <freebsd-questions@freebsd.org> Subject: Re: pppd & PAP Message-ID: <014901bf1552$6b845740$0400a8c0@admin.dnepr.com>
next in thread | raw e-mail | index | archive | help
Hi!
    There is a bug in pppd-2.3.5 which was patched in later
pppd releases but wasn't included in FreeBSD. When you use '*'
as IP address wildcard in a secret file then pppd is trying to
gethostbyname() for '*' as domain. Because no external route
available the gethostbyname() call timed out, but pppd is
timed out before, and PAP auth failed.
You may use this patch to pppd/auth.c to fix the problem:
--- auth.c.orig Wed Mar 31 19:24:20 1999
+++ auth.c      Wed Mar 31 23:06:23 1999
@@ -1254,7 +1254,7 @@
        u_int32_t a;
        struct hostent *hp;
-       if (*p != '!' && *p != '-' && strchr(p, '/') == NULL) {
+       if (*p != '*' && *p != '!' && *p != '-' && strchr(p, '/') == NULL) {
            hp = gethostbyname(p);
            if (hp != NULL && hp->h_addrtype == AF_INET)
                a = *(u_int32_t *)hp->h_addr;
OS
>We use FreeBSD 2.2.8 to provide dial-up services.
>Clients logged in with PAP authorization. We use mgetty with /AutoPPP/
>to invoke pppd. All works fine, but occurs following problem:
>when there is no connection outside our server to internet users can't
>logged in.
>After debuging we examinate that:
>pppd complete PAP athorization and write user in utmp file, wait and
>exit with HANGUP before inform the kernel of local and remote
>IP addresses and can't complete IPCP negotoation.
>We have 2 local DNS that are working without interuption and resolve all
>
>local addresses.
>Additional information:
>when clients are using terminal login the problem does not exist.
>
>Any hints will be helpfull
>
>Best regards Krassimir Slavchev
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?014901bf1552$6b845740$0400a8c0>
