From owner-freebsd-questions Tue Feb 27 14:57:12 2001 Delivered-To: freebsd-questions@freebsd.org Received: from home.offwhite.net (home.offwhite.net [156.46.35.30]) by hub.freebsd.org (Postfix) with ESMTP id C8B8937B71B for ; Tue, 27 Feb 2001 14:57:06 -0800 (PST) (envelope-from brennan@offwhite.net) Received: from localhost (brennan@localhost) by home.offwhite.net (8.11.1/8.11.1) with ESMTP id f1RMuxS75396; Tue, 27 Feb 2001 16:56:59 -0600 (CST) (envelope-from brennan@offwhite.net) Date: Tue, 27 Feb 2001 16:56:59 -0600 (CST) From: Brennan Stehling To: "G. Jason Middleton" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ipfw: getsockopt(IP_FW_ADD): Invalid argument In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I just had this very same problem the other day. It is due to not having a kernel with the proper features. When you build a custom kernel you need to add the following options. options IPFIREWALL # firewall options IPDIVERT # divert(4) sockets After you reboot you should be able to add your divert rules to the firewall. If you need more info, here is a ton... http://www.greasydaemon.com/cgi/udmsearch/gd.cgi?q=ipdivert+ipfw&m=any Brennan Stehling - software developer and system administrator my projects: home.offwhite.net (free personal hosting) www.greasydaemon.com (bsd search) On Tue, 27 Feb 2001, G. Jason Middleton wrote: > I get this error when i am tryign tio set up my firewall....i have it set > to open...even when i try to use ipfw : > /sbin/ipfw add 500 divert 8668 all from any to any via de0 > > i get > > ipfw: getsockopt(IP_FW_ADD): Invalid argument > > when i boot and the rc.conf it read stating the firewall should be open i > get a couple of thos errors during boot time > > any ideas? > > Hope everyones day is going well! > > Regards, > > G. Jason Middleton > > > _______________________________________________________________________________ > > > > > > > Announcement: > > The revolution will not be televised. > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message