From owner-freebsd-net@FreeBSD.ORG Sat Nov 15 14:35:04 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8474716A4CE for ; Sat, 15 Nov 2003 14:35:04 -0800 (PST) Received: from hypernet.hyper.net (hypernet.hyper.net [193.218.1.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id F080443F93 for ; Sat, 15 Nov 2003 14:35:01 -0800 (PST) (envelope-from dxoch@escape.gr) Received: from escape.gr (bus.hyper.gr [193.218.2.30]) ESMTP id hAFMVHu14340; Sun, 16 Nov 2003 00:31:18 +0200 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) To: Maxim Konovalov From: Jim Xochellis In-Reply-To: <20031115235809.R94964@news1.macomnet.ru> Message-Id: <6F8729E0-17B9-11D8-9B39-003065C4E486@escape.gr> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.552) cc: net@freebsd.org Subject: Re: ip-up script of pppd no triggered X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Sat, 15 Nov 2003 22:35:04 -0000 X-Original-Date: Sun, 16 Nov 2003 00:17:01 +0200 X-List-Received-Date: Sat, 15 Nov 2003 22:35:04 -0000 Hi Maxim, On Saturday, November 15, 2003, at 11:02 PM, Maxim Konovalov wrote: > On Sat, 15 Nov 2003, 22:44+0200, Jim Xochellis wrote: > >> Hi Maxim, >> >> On Friday, November 14, 2003, at 09:13 PM, Maxim Konovalov wrote: >> >>> On Fri, 14 Nov 2003, 16:02+0200, Jim Xochellis wrote: >>> >>>> Hi list, >>>> >>>> I have also posted this mail to the freebsd-questions list a few >>>> days >>>> ago, but I had no luck. Hence, I decided to try this list too, which >>>> probably is the most appropriate for my problem. >>>> >>>> I need to persuade pppd to call its ip-up script in order to add a >>>> non-default route as soon as the link is up and running. >>>> Unfortunately >>>> it seems that my ip-up script is not being called. The mode of the >>>> file >>>> is rwxr-xr-x and the owner root:wheel. I am calling the pppd from >>>> inside a "/usr/local/etc/rc.d/ppp.sh" script by using the following >>>> command: >>>> "/usr/sbin/pppd /dev/cuaa0 115200 A.A.A.A:B.B.B.B noauth persist >>>> netmask 255.255.255.252" >>>> >>>> I have read all the chapter #18 of the handbook, but I haven't found >>>> anything about the ip-up script. On the contrary the PPPD(8) man >>>> page >>>> claims that the /etc/ppp/ip-up is executed when the link is >>>> available >>>> for sending and receiving IP packets. My link becomes available for >>>> sending/receiving IP packets, but ip-up is never executed. Any ideas >>>> why? >>>> By the way, I am using kernel PPP, (on ppp0) if it makes any >>>> difference. >>>> >>>> Am I doing something wrong? >>> >>> Did you look at /usr/share/examples/pppd/ip-up.sample ? >>> >>> ip-up worked for me six months ago. >> >> Yes I have looked at ip-up.sample file. Please note that my problem is >> not what to put inside the script, but the fact that the script itself >> is not being called. On the contrary your are saying that it worked >> for > > Are you sure it isn't called? Did you check pppd logs? Were there > any interesting? Is there '#!/bin/sh' on the top of your script? > /var/log/ppp.log only contains lines like: Nov 15 23:53:15 MyHost /kernel: ppp configured! Yes '#!/bin/sh' is on the top of the file. I have also added the following lines to the script: echo " ppp is up!!!" echo " ppp is up!" >> ip-up.log But no sign :-( >> you and thats great news! Was it in the /etc/ppp/ip-up path? What were >> its file mode? Any other info maybe? > > It was /etc/ppp/ip-up, 0555. I've tried 0555 too, but no luck :-( My owner is root:wheel, yours? Are you using the "noauth" or "persist" pppd options too? Thanks for the help Jim Xochellis