From owner-freebsd-questions Wed May 6 15:18:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA02350 for freebsd-questions-outgoing; Wed, 6 May 1998 15:18:12 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ns2.cetlink.net (root@ns2.cetlink.net [209.54.54.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA02255 for ; Wed, 6 May 1998 15:17:44 -0700 (PDT) (envelope-from jak@cetlink.net) Received: from EXIT10 (i485-gw.cetlink.net [209.198.15.97]) by ns2.cetlink.net (8.8.5/8.8.5) with SMTP id SAA17732; Wed, 6 May 1998 18:16:44 -0400 (EDT) From: jak@cetlink.net (John Kelly) To: "Jason McKay" Cc: Subject: Re: ip-down??? Date: Wed, 06 May 1998 22:18:56 GMT Message-ID: <3550e0cf.123334731@mail.cetlink.net> References: <000701bd7907$689b92c0$70a019cb@jason.webace.com.au> In-Reply-To: <000701bd7907$689b92c0$70a019cb@jason.webace.com.au> X-Mailer: Forte Agent 1.5/32.451 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id PAA02280 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 6 May 1998 23:55:35 +0800, "Jason McKay" wrote: >I have figured out the problem I'm been having with pppd, it's not removing >the route. I understand there is a /etc/ppp/ip-down script that can be run >after pppd to solve this problem. I can not find this script on my system, >if possible could someone please post it .. There isn't one. You have to write your own. PPPD will pass it several parameters, I don't remember them all -- check the man page. Here is the ip-down script I use to kill natd and reset my firewall rules: >#!/usr/local/bin/bash > >if [ x$2 = x"/dev/cuaa0" ]; then > kill `cat /var/run/natd.pid` > fwcmd="/sbin/ipfw -q" > $fwcmd -f flush > $fwcmd add 65000 pass all from any to any >fi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message