From owner-freebsd-hackers Thu May 6 13:30:11 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mtu.ru (ns.mtu.ru [195.34.32.10]) by hub.freebsd.org (Postfix) with ESMTP id D6C471517B; Thu, 6 May 1999 13:30:05 -0700 (PDT) (envelope-from daktaklakpak@public.mtu.ru) Received: from dial56188.mtu-net.ru (dial56188.mtu-net.ru [195.34.56.188]) by mtu.ru (Postfix) with ESMTP id 8F2992E77; Thu, 6 May 1999 23:30:03 +0400 (MSK) Date: Fri, 7 May 1999 00:28:06 +0400 (MSD) From: Danil Shebunin X-Sender: danil@free-bsd.space To: freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: Kernel PPP (PPPD): ip-up & ip-down scripts execution In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Recipient: freebsd-questions@FreeBSD.ORG X-Envelope-To: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! We have a small net and using FreeBSD 2.2.8 machine as Internet gate. To dial a provider we use kernel PPP - PPPD. I need to setup a firewall after connection established. For this purpose I use file /etc/ppp/ip-up, as described in man page, to setup firewall using ipfw. But it seems, that this script is called with effective uid of current user, not root ,as described in man! I decide that, because the script is executed (I've placed simple 'echo executed > /exec.txt' in this script to check this). But all ipfw commands is not executed - firewall settings remain unchanged. What I'm doing wrong? How can I force ip-up and ip-down scripts to execute correctly? P.S. PLEASE! PLEASE! PLEASE! Reply to my e-mail - I'm not subscribed to these mail-lists -- ===---===---===---===---===---=== Have a nice CONNECT! Dan (daktaklakpak@public.mtu.ru) ===---===---===---===---===---=== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message