From owner-freebsd-questions Fri Sep 1 11:17:23 2000 Delivered-To: freebsd-questions@freebsd.org Received: from relay1.inwind.it (relay1.inwind.it [212.141.53.67]) by hub.freebsd.org (Postfix) with ESMTP id D50AC37B43E for ; Fri, 1 Sep 2000 11:17:19 -0700 (PDT) Received: from gw5a60-1-d687.wind.it (212.141.91.53) by relay1.inwind.it (5.1.046) id 39AFDC9900003D17 for questions@freebsd.org; Fri, 1 Sep 2000 20:17:18 +0200 Received: (qmail 3320 invoked by uid 1000); 1 Sep 2000 18:14:44 -0000 Date: Fri, 1 Sep 2000 20:14:43 +0200 From: Francesco Casadei To: Fred Souza Cc: questions@freebsd.org Subject: Re: PPPd Message-ID: <20000901201443.A3257@goku.kasby> References: <20000901061452.A82136@torment.secfreak.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20000901061452.A82136@torment.secfreak.com>; from cseg@kronus.com.br on Fri, Sep 01, 2000 at 06:14:52AM +0300 X-Operating-System: FreeBSD 4.1-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Sep 01, 2000 at 06:14:52AM +0300, Fred Souza wrote: > Hi, > > I've read the entire pppd(8) manpage looking for an answer for this, but > nothing about it is mentioned there. I've just configured pppd to connect > to my ISP, but by some reason it won't use the /etc/ppp/ip-{down,up}. > > I've tried changing file permissions, directory permissions, even changing > the scripts, but none of those tries ended well. Is there any issues about > this kind of problem with pppd 2.3.5? If so, how do I fix it? > > > Thanks and peace. > > -- > Watch your code, or it'll get you. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > end of the original message I'm running pppd version 2.3 patch level 5 on FreeBSD 4.1-STABLE and the scripts are correctly executed. The permissions are: root> ll /etc/ppp/ip-* -rwx------ 1 root wheel 401 13 Ago 04:42 /etc/ppp/ip-down -rwx------ 1 root wheel 174 14 Ago 01:44 /etc/ppp/ip-up The scripts are: root> cat /etc/ppp/ip-up #!/bin/sh # get the hostname assigned to this host by remote system HOSTNAME=`host $4 | cut -d" " -f5` echo -n $HOSTNAME > /var/run/hostname && chmod 644 /var/run/hostname root> cat /etc/ppp/ip-down #!/bin/sh # This script removes files containing information about closed ppp # link if [ -f /var/run/hostname ]; then rm /var/run/hostname fi if [ -f /var/run/smtpserver ]; then rm /var/run/smtpserver fi # use only local nameserver (i.e. delete ISP DNS) HOSTNAME=`hostname -s` echo "domain `hostname | sed s/$HOSTNAME\.//`" > /etc/resolv.conf echo "nameserver 127.0.0.1" >> /etc/resolv.conf I start pppd as root from a script: #!/bin/sh [snip] [lot of secrets here :-)] pppd /dev/cuaa0 115200 connect "chat -f $CHAT_SCRIPT" user $USERNAME What are you trying to do in the ip-{down,up} scripts? Maybe the scripts are executed but they do not run as expected because there's an error in the scripts?. Francesco Casadei To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message