From owner-freebsd-hackers Fri Jun 27 11:08:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA05008 for hackers-outgoing; Fri, 27 Jun 1997 11:08:21 -0700 (PDT) Received: from fang.cs.sunyit.edu (perlsta@fang.cs.sunyit.edu [192.52.220.66]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA05000; Fri, 27 Jun 1997 11:08:12 -0700 (PDT) Received: from localhost (perlsta@localhost) by fang.cs.sunyit.edu (8.7.6/8.7.3) with SMTP id OAA08131; Fri, 27 Jun 1997 14:07:48 -0400 (EDT) Date: Fri, 27 Jun 1997 14:07:48 -0400 (EDT) From: Alfred Perlstein To: Alejandro Galindo Chairez cc: questions@FreeBSD.ORG, isp@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: ipfw: setsockopt failed In-Reply-To: <1.5.4.32.19970626200702.0068336c@io.com.mx> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I have the next problem: > > When the "ipfw flush" comand is executed the system send me the message: > > setsockopt failed this is dumb, but are you root when you try this? > or when i executed: > > ipfw add divert 32000 ip from any to any via ed1 for example > > the system send me the message > > 00000 divert 32000 ip from any to any via ed1 > ipfw: setsockopt(IP_FW_ADD): Invalid argument > > Why? and How can i resolv the problem? > you need to specify the port to divert to :) ie. from my machine: /sbin/ipfw add 2000 divert 6668 all from any to any via ed0 | this is the port number -----/ you should have a program listening to the port to manipulate the data coming in.