From owner-freebsd-current Sun Oct 22 14:16:57 2000 Delivered-To: freebsd-current@freebsd.org Received: from mail.bezeqint.net (mail-a.bezeqint.net [192.115.106.23]) by hub.freebsd.org (Postfix) with ESMTP id 0548E37B4C5 for ; Sun, 22 Oct 2000 14:16:56 -0700 (PDT) Received: from bsd.net.il (bzq-168-135.bezeqint.net) by mail.bezeqint.net (Sun Internet Mail Server sims.3.5.2000.03.23.18.03.p10) with ESMTP id <0G2U0013KOBOJK@mail.bezeqint.net> for freebsd-current@FreeBSD.ORG; Sun, 22 Oct 2000 23:14:13 +0200 (IST) Received: (from nimrodm@localhost) by bsd.net.il (8.11.0/8.9.3) id e9ML9I400550 for freebsd-current@FreeBSD.ORG; Sun, 22 Oct 2000 23:09:18 +0200 (IST envelope-from nimrodm) Date: Sun, 22 Oct 2000 23:09:18 +0200 From: Nimrod Mesika Subject: Re: divert as module? In-reply-to: <009701c03c61$c305b7c0$0e00a8c0@neland.dk>; from leifn@neland.dk on Sun, Oct 22, 2000 at 09:52:03PM +0200 To: freebsd-current@FreeBSD.ORG Reply-To: nimrodm@email.com Message-id: <20001022230918.B440@localhost.bsd.net.il> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline Mail-Followup-To: freebsd-current@FreeBSD.ORG User-Agent: Mutt/1.2i References: <009701c03c61$c305b7c0$0e00a8c0@neland.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Oct 22, 2000 at 09:52:03PM +0200, Leif Neland wrote: > But the command > "ipfw add divert natd all from any to any via tun0 " > fails: > 00000 divert 8668 ip from any to any via tun0 > ipfw: setsockopt(IP_FW_ADD): Invalid argument I don't know about a kernel module, but when ipfw is compiled as part of the kernel you also need: options IPDIVERT to enable divert sockets. Maybe you can just recompile the module. I'm not sure. > Or can I use ppp's nat together with ipfw? I see no reason why you can't. In fact, it will probably be more efficient as you will not need two user processes (ppp and natd). -- Nimrod. http://www.geocities.com/rodd_27 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message