Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2003 21:09:20 -0500 (CDT)
From:      Felipe Gasper <fgasper@uiuc.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/52743: /etc/ppp/ppp.linkup instability issues	
Message-ID:  <200305280209.h4S29K0j000362@fgmusic.org>
Resent-Message-ID: <200305280210.h4S2A5rG002784@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305280209.h4S29K0j000362>