Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 May 1998 22:18:56 GMT
From:      jak@cetlink.net (John Kelly)
To:        "Jason McKay" <jasonm@webace.com.au>
Cc:        <questions@FreeBSD.ORG>
Subject:   Re: ip-down???
Message-ID:  <3550e0cf.123334731@mail.cetlink.net>
In-Reply-To: <000701bd7907$689b92c0$70a019cb@jason.webace.com.au>
References:  <000701bd7907$689b92c0$70a019cb@jason.webace.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 6 May 1998 23:55:35 +0800, "Jason McKay"
<jasonm@webace.com.au> 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



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