From owner-freebsd-questions Wed Oct 13 0:14: 8 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ktpk.dp.ua (ktpk.dp.ua [195.24.130.245]) by hub.freebsd.org (Postfix) with ESMTP id F33BC14E79 for ; Wed, 13 Oct 1999 00:12:55 -0700 (PDT) (envelope-from os@altavista.net) Received: from admin (admin.dnepr.com [192.168.0.4]) by ktpk.dp.ua (8.8.8/8.8.8) with SMTP id KAA01934; Wed, 13 Oct 1999 10:09:34 +0300 (EEST) (envelope-from os@altavista.net) Message-ID: <014901bf1552$6b845740$0400a8c0@admin.dnepr.com> From: "Oleg Semyonov" To: "Krassimir Slavchev" Cc: Subject: Re: pppd & PAP Date: Wed, 13 Oct 1999 10:09:32 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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