Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Feb 2001 10:16:33 +1300
From:      Jonathan Chen <jonathan.chen@itouch.co.nz>
To:        "G. Jason Middleton" <gmiddl1@gl.umbc.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: ipfw: getsockopt(IP_FW_ADD): Invalid argument
Message-ID:  <20010228101633.C42043@itouchnz.itouch>
In-Reply-To: <Pine.SGI.4.31L.02.0102271601120.1313960-100000@irix2.gl.umbc.edu>; from gmiddl1@gl.umbc.edu on Tue, Feb 27, 2001 at 04:01:22PM -0500
References:  <20010228092429.A42043@itouchnz.itouch> <Pine.SGI.4.31L.02.0102271601120.1313960-100000@irix2.gl.umbc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 27, 2001 at 04:01:22PM -0500, G. Jason Middleton wrote:
> i did!  compiled with both!
> 
> Jason

Check the output of dmesg(1), it should have the line:

	IP packet filtering initialized, divert enabled, rule-based forwarding disabled, default to deny, logging disabled

Make sure you aren't loading ipfw.ko instead.
-- 
Jonathan Chen <jonathan.chen@itouch.co.nz>
----------------------------------------------------------------------
    The Internet: an empirical test of the idea that a million monkeys
                banging on a million keyboards can produce Shakespeare

> 
> On Wed, 28 Feb 2001, Jonathan Chen wrote:
> 
> > On Tue, Feb 27, 2001 at 03:12:15PM -0500, 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
> >
> > Did you compile your kernel with:
> >
> > 	options		IPFIREWALL
> > 	options		IPDIVERT
> >
> > --
> > Jonathan Chen <jonathan.chen@itouch.co.nz>
> > ----------------------------------------------------------------------
> >                 "I don't want to achive immortality through my works..
> >                  I want to achieve it through not dying" - Woody Allen

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?20010228101633.C42043>