Re: ipfw: getsockopt(IP_FW_ADD): Invalid argument

2011-07-06 Thread Unga


--- On Tue, 7/5/11, Ian Smith smi...@nimnet.asn.au wrote:

   Does anybody successfully use the ipfw fwd? If so
 in which FreeBSD version?
 
 Not I, but many do.  On the face of it the rule looks
 correct.  Do you 
 have a TCP service running on localhost:1234 ?  Does
 wlan0 exist?  You 
 may do better posting to the freebsd-ipfw list, with more
 information.
 
 cheers, Ian

Hi Ian

I have added 'options IPFIREWALL' and rebuilt all, now 'ipfw fwd' works well.

So the 'options IPFIREWALL_FORWARD' alone is insufficient, the 'options 
IPFIREWALL' is also required.

Thank you and all others who helped me in this regard.

Cheers
Unga
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ipfw: getsockopt(IP_FW_ADD): Invalid argument

2011-07-06 Thread Ian Smith
On Wed, 6 Jul 2011, Unga wrote:
  On Tue, 7/5/11, Ian Smith smi...@nimnet.asn.au wrote:
Does anybody successfully use the ipfw fwd? If so
in which FreeBSD version?
  
   Not I, but many do.  On the face of it the rule looks
   correct.  Do you 
   have a TCP service running on localhost:1234 ?  Does
   wlan0 exist?  You 
   may do better posting to the freebsd-ipfw list, with more
   information.
  
   cheers, Ian
 
  Hi Ian
 
  I have added 'options IPFIREWALL' and rebuilt all, now 'ipfw fwd' 
  works well.
 
  So the 'options IPFIREWALL_FORWARD' alone is insufficient, the
  'options IPFIREWALL' is also required.

Right; I guess if you're building it into kernel you have to configure 
all relevant options there too.  That could be more explicitly stated.

  Thank you and all others who helped me in this regard.

Glad it's working.  Another win for the collective wisdom ..

cheers, Ian___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: ipfw: getsockopt(IP_FW_ADD): Invalid argument

2011-07-05 Thread Ian Smith
In freebsd-questions Digest, Vol 370, Issue 2, Message: 14
On Mon, 4 Jul 2011 09:11:07 -0700 (PDT) Unga unga...@yahoo.com wrote:
  --- On Mon, 7/4/11, Unga unga...@yahoo.com wrote:
  
   From: Unga unga...@yahoo.com
   Subject: ipfw: getsockopt(IP_FW_ADD): Invalid argument
   To: freebsd-questions@freebsd.org
   Date: Monday, July 4, 2011, 11:48 AM
   Hi all
   
   Following ipfw rule develop error indicated in the subject
   line:
   ipfw add 100 fwd 127.0.0.1,1234 tcp from any to any 1234
   out via wlan0
   
   What I want to do is forward any packet going to port 1234
   to 127.0.0.1:1234.
   
   I have built the kernel with options     
      IPFIREWALL_FORWARD.
   
   What's the error here? Is the rule incorrect?
   
   This is FreeBSD 8.1.
   
   Many thanks in advance.
   
   Unga
   
  
  Does anybody successfully use the ipfw fwd? If so in which FreeBSD version?

Not I, but many do.  On the face of it the rule looks correct.  Do you 
have a TCP service running on localhost:1234 ?  Does wlan0 exist?  You 
may do better posting to the freebsd-ipfw list, with more information.

cheers, Ian___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: ipfw: getsockopt(IP_FW_ADD): Invalid argument

2011-07-05 Thread Unga
--- On Tue, 7/5/11, Ian Smith smi...@nimnet.asn.au wrote:

 From: Ian Smith smi...@nimnet.asn.au
 Subject: Re: ipfw: getsockopt(IP_FW_ADD): Invalid argument
 To: Unga unga...@yahoo.com
 Cc: freebsd-questions@freebsd.org
 Date: Tuesday, July 5, 2011, 5:14 PM
 In freebsd-questions Digest, Vol 370,
 Issue 2, Message: 14
 On Mon, 4 Jul 2011 09:11:07 -0700 (PDT) Unga unga...@yahoo.com
 wrote:
   --- On Mon, 7/4/11, Unga unga...@yahoo.com
 wrote:
   
From: Unga unga...@yahoo.com
Subject: ipfw: getsockopt(IP_FW_ADD): Invalid
 argument
To: freebsd-questions@freebsd.org
Date: Monday, July 4, 2011, 11:48 AM
Hi all

Following ipfw rule develop error indicated in
 the subject
line:
ipfw add 100 fwd 127.0.0.1,1234 tcp from any to
 any 1234
out via wlan0

What I want to do is forward any packet going to
 port 1234
to 127.0.0.1:1234.

I have built the kernel with options     
   IPFIREWALL_FORWARD.

What's the error here? Is the rule incorrect?

This is FreeBSD 8.1.

Many thanks in advance.

Unga

   
   Does anybody successfully use the ipfw fwd? If so
 in which FreeBSD version?
 
 Not I, but many do.  On the face of it the rule looks
 correct.  Do you 
 have a TCP service running on localhost:1234 ?  Does
 wlan0 exist?  You 
 may do better posting to the freebsd-ipfw list, with more
 information.
 
 cheers, Ian

Hi Ian

Thanks for the reply.

I do have a daemon listening to the port 1234 on the local machine.

The wlan0 exists and ip number 192.168.1.3 assigned.

I'll write the freebsd-ipfw.

Thank you.

Unga




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ipfw: getsockopt(IP_FW_ADD): Invalid argument

2011-07-04 Thread Unga
Hi all

Following ipfw rule develop error indicated in the subject line:
ipfw add 100 fwd 127.0.0.1,1234 tcp from any to any 1234 out via ath0

What I want to do is forward any packet going to port 1234 to 127.0.0.1:1234.

I have built the kernel with options IPFIREWALL_FORWARD.

What's the error here? Is the rule incorrect?

Many thanks in advance.

Unga
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ipfw: getsockopt(IP_FW_ADD): Invalid argument

2011-07-04 Thread Unga
--- On Mon, 7/4/11, Unga unga...@yahoo.com wrote:

 From: Unga unga...@yahoo.com
 Subject: ipfw: getsockopt(IP_FW_ADD): Invalid argument
 To: freebsd-questions@freebsd.org
 Date: Monday, July 4, 2011, 11:48 AM
 Hi all
 
 Following ipfw rule develop error indicated in the subject
 line:
 ipfw add 100 fwd 127.0.0.1,1234 tcp from any to any 1234
 out via wlan0
 
 What I want to do is forward any packet going to port 1234
 to 127.0.0.1:1234.
 
 I have built the kernel with options     
    IPFIREWALL_FORWARD.
 
 What's the error here? Is the rule incorrect?
 
 This is FreeBSD 8.1.
 
 Many thanks in advance.
 
 Unga
 

Does anybody successfully use the ipfw fwd? If so in which FreeBSD version?

Unga


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ipfw: getsockopt(IP_FW_ADD): Invalid argument

2011-07-03 Thread Unga
Hi all

Following ipfw rule develop error indicated in the subject line:
ipfw add 100 fwd 127.0.0.1,1234 tcp from any to any 1234 out via wlan0

What I want to do is forward any packet going to port 1234 to 127.0.0.1:1234.

I have built the kernel with options IPFIREWALL_FORWARD.

What's the error here? Is the rule incorrect?

This is FreeBSD 8.1.

Many thanks in advance.

Unga
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ipfw: getsockopt(IP_FW_ADD): Invalid argument

2005-04-10 Thread Celso Viana
teste# ipfw add fwd 10.10.10.10, 3128 tcp from any to any dst-port 80
ipfw: getsockopt(IP_FW_ADD): Invalid argument

ipfw2 initialized, divert enabled, rule-based forwarding disabled,
default to accept, logging limited to 100 packets/entry by default

rule-based forwarding disabled. enable???

Celso
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ipfw: getsockopt(IP_FW_ADD): Invalid argument

2005-04-09 Thread Celso Viana
ipfw add 10 fwd 192.168.10.5,3128 all from any to any dst-port 80
ipfw: getsockopt(IP_FW_ADD): Invalid argument

What's Wrong?

Celso
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ipfw: getsockopt(IP_FW_ADD): Invalid argument

2005-04-09 Thread Celso Viana
OS: FreeBSD 5.3 p5

in FreeBSD 5.3 p0  ok!

Celso

On Apr 9, 2005 9:40 PM, Celso Viana [EMAIL PROTECTED] wrote:
 ipfw add 10 fwd 192.168.10.5,3128 all from any to any dst-port 80
 ipfw: getsockopt(IP_FW_ADD): Invalid argument
 
 What's Wrong?
 
 Celso

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ipfw: getsockopt(IP_FW_ADD): Invalid argument

2005-04-09 Thread Chris
Celso Viana wrote:
OS: FreeBSD 5.3 p5
in FreeBSD 5.3 p0  ok!
Celso
On Apr 9, 2005 9:40 PM, Celso Viana [EMAIL PROTECTED] wrote:
ipfw add 10 fwd 192.168.10.5,3128 all from any to any dst-port 80
ipfw: getsockopt(IP_FW_ADD): Invalid argument
What's Wrong?
Celso
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Do it AS root
--
Best regards,
Chris
The slowest checker is always at the quick-check-out
lane.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]