bin/52743: /etc/ppp/ppp.linkup instability issues
Felipe Gasper
fgasper at uiuc.edu
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
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue May 27 19:10:05 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Felipe Gasper
>Release: FreeBSD 4.8-RELEASE i386
>Organization:
>Environment:
System: FreeBSD fgmusic.org 4.8-RELEASE FreeBSD 4.8-RELEASE #4: Tue Apr 1 22:05:17 CST 2003 fgasper at operaman.ods.org:/usr/obj/usr/src/sys/CUSTOM i386
>Description:
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
#
SBC_Yahoo:
# ! sh -c "/usr/scripts/linkup.sh"
# 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` operaman.ods.org"
# ! sh -c "/usr/local/bin/wget -O - --http-user=fgasper --http-passwd=GurgiKin 'https
://dynamic.zoneedit.com/auth/dynamic.html?host=fgmusic.org'"
# ! sh -c "/usr/local/bin/wget -O - https://www.sitelutions.com/dnsup?id=145690\&user
=fgasper at uiuc.edu\&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 linkup.sh) seems to hose things as well.
>How-To-Repeat:
Configure /etc/ppp/ppp.linkup as I have it and run it in PPPoE mode w/ ddial.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
serious
medium
bin
More information about the freebsd-bugs
mailing list