Date: Fri, 07 May 1999 08:32:16 +0100 From: Brian Somers <brian@Awfulhak.org> To: Danil Shebunin <daktaklakpak@public.mtu.ru> Cc: freebsd-questions@FreeBSD.org, freebsd-hackers@FreeBSD.org Subject: Re: Kernel PPP (PPPD): ip-up & ip-down scripts execution Message-ID: <199905070732.IAA10146@keep.lan.Awfulhak.org> In-Reply-To: Your message of "Fri, 07 May 1999 00:28:06 %2B0400." <Pine.BSF.4.05.9905070024540.1239-100000@free-bsd.space>
next in thread | previous in thread | raw e-mail | index | archive | help
Your best bet is to run pppd as root. Alternatively, use user-ppp and the ``set filter'' command. > 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) > ===---===---===---===---===---=== -- Brian <brian@Awfulhak.org> <brian@FreeBSD.org> <http://www.Awfulhak.org> <brian@OpenBSD.org> Don't _EVER_ lose your sense of humour ! <brian@uk.FreeBSD.org> 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?199905070732.IAA10146>