bin/52743: /etc/ppp/ppp.linkup instability issues

Felipe Gasper fgasper at
Tue May 27 19:10:07 PDT 2003

>Number:         52743
>Category:       bin
>Synopsis:       /etc/ppp/ppp.linkup instability issues
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 27 19:10:05 PDT 2003
>Originator:     Felipe Gasper
>Release:        FreeBSD 4.8-RELEASE i386
System: FreeBSD 4.8-RELEASE FreeBSD 4.8-RELEASE #4: Tue Apr 1 22:05:17 CST 2003 fgasper at i386

When trying to do shell commands from /etc/ppp/ppp.linkup (to handle dynamic DNS issues), the ppp program fails to initiate a proper connection. The following is my ppp.linkup file as it stands now:

# ppp.linkup
# FG 20-V-2003

#       ! sh -c "/usr/scripts/"
        # mail root w/ new IP
        ! sh -c "/sbin/ifconfig tun0 | /usr/bin/mail -s 'New IP' root"
        # dynamic DNS
#       ! sh -c "/usr/local/sbin/odsclient fgasper `/bin/cat /etc/ods-pw`"
#       ! sh -c "/usr/local/bin/wget -O - --http-user=fgasper --http-passwd=GurgiKin 'https
#       ! sh -c "/usr/local/bin/wget -O -\&user
=fgasper at\&pass=<password>\&ip=

An alternate form of the ifconfig line that I've used (and that makes ppp.linkup mess things up) is:

! sh -c "/sbin/ifconfig tun0 | /usr/bin/grep inet | /usr/bin/awk '{print $2}' | mail -s 'New IP' root"

Taking out the two middle commands clears up the problem. Also, running any external script (like the seems to hose things as well.

Configure /etc/ppp/ppp.linkup as I have it and run it in PPPoE mode w/ ddial.


More information about the freebsd-bugs mailing list