Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 1997 14:07:48 -0400 (EDT)
From:      Alfred Perlstein <perlsta@fang.cs.sunyit.edu>
To:        Alejandro Galindo Chairez <agalindo@asimov.io.com.mx>
Cc:        questions@FreeBSD.ORG, isp@FreeBSD.ORG, hackers@FreeBSD.ORG
Subject:   Re: ipfw: setsockopt failed
Message-ID:  <Pine.BSF.3.95.970627140455.8034A-100000@fang.cs.sunyit.edu>
In-Reply-To: <1.5.4.32.19970626200702.0068336c@io.com.mx>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.970627140455.8034A-100000>