Date: Fri, 1 Sep 2000 20:14:43 +0200 From: Francesco Casadei <fcasadei@inwind.it> To: Fred Souza <cseg@kronus.com.br> Cc: questions@freebsd.org Subject: Re: PPPd Message-ID: <20000901201443.A3257@goku.kasby> In-Reply-To: <20000901061452.A82136@torment.secfreak.com>; from cseg@kronus.com.br on Fri, Sep 01, 2000 at 06:14:52AM %2B0300 References: <20000901061452.A82136@torment.secfreak.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000901201443.A3257>