af7a [Solved] ipfw: setsockopt(IP_DUMMYNET_CONFIGURE): Protocol not available - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Firewalls

Firewalls IPFW, PF, IPF (but not limited) related discussion

Reply
 
Thread Tools Display Modes
  #1  
Old April 13th, 2012, 03:02
Sandra Sandra is offline
Junior Member
 
Join Date: Apr 2012
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default ipfw: setsockopt(IP_DUMMYNET_CONFIGURE): Protocol not available

Hello,

I need to set up DummyNet and I've followed these steps:
  1. Add the following lines to /etc/rc.conf:
    Code:
    firewall_enable="YES"
    firewall_type="OPEN"
  2. Create a rule

    Example:
    Code:
    ipfw add 1000 allow all from any to any
  3. Create the pipes

    Example:
    Code:
    ipfw add 100 pipe 1 ip from any to any
  4. Set up the pipe

    Example:
    Code:
    ipfw pipe 1 config bw  100Kbit/s
After these steps I checked the ipfw was configured because I typed ipfw list and it showed me the list. However, the pipe wasn't set up and this message was shown:

Code:
ipfw: setsockopt(IP_DUMMYNET_CONFIGURE): Protocol not available
Someone can help me? What other lines I have to add?

Thanks

I'm using FreeBSD-7.4-RELEASE-i386

Please, someone knows if I have to add more lines in the configuration.

Thanks,

Last edited by DutchDaemon; April 13th, 2012 at 20:51. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #2  
Old April 13th, 2012, 23:59
phoenix's Avatar
phoenix phoenix is offline
Moderator
 
Join Date: Nov 2008
Location: Kamloops, BC, Canada
Posts: 3,141
Thanks: 43
Thanked 703 Times in 579 Posts
Default

That error message means the kernel doesn't have dummynet support enabled.

Do you get output from the following command:
$ ls /boot/kernel/*dummy*

If you don't, then you need to compile a custom kernel with the dummynet options enabled.

If you do, then you need to load the dummynet.ko module:
# kldload dummynet

I don't recall off-hand which version of FreeBSD includes dummynet as a kernel module. It used to be a kernel option that required a complete kernel recompile. At least 9.0 has it available as a loadable module.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #3  
Old April 16th, 2012, 04:19
Sandra Sandra is offline
Junior Member
 
Join Date: Apr 2012
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks phoenix, I have installed another VMWare image with FreeBSD and DummyNet already set up and now, I can configured the ipfw and pipes. However, I'm facing another problem with the pipes so I'll post another thread for that.

Thanks,

[ Cont'd at http://forums.FreeBSD.org/showthread.php?t=31398 -- Mod. ]

Last edited by DutchDaemon; April 16th, 2012 at 10:58.
Reply With Quote
Reply

Tags
dummynet

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
samba 3.6.x and max protocol = SMB2 Sylhouette Web & Network Services 2 January 25th, 2012 10:28
[Solved] Ports protocol not supported gpatrick General 9 November 2nd, 2009 01:52
Pidgin & Yahoo protocol al7oot Web & Network Services 14 August 20th, 2009 08:51
TCP protocol implementation in FreeBSD ankitshahji FreeBSD Development 3 March 6th, 2009 15:41
error installing xcp protocol ki_ko Installing & Upgrading 6 March 4th, 2009 11:36


All times are GMT +1. The time now is 11:52.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0