Jump to content

Recommended Posts

Posted

стоит мостик фильтрующий на фрюхе... между двумя подсетями. Встала проблема забития канала. Вообщем нужно ограничить скорость по 21 и 20 портам, т.е. по ftp

поковырялся по докам ничего работающего не нашёл. Может кто нить тут подскажет что нужно прописать в фаерволе что бы скорость скачивания по ftp снизить до 10 мегабит или 1 метра в секунду. интерфейсы vr0 и fxp0

 

=========================================

${fw} pipe 1 config bw 1000Kbit/s

${fw} add 9 pipe 1 tcp from any to 192.168.0.0/16 21

${fw} add 8 pipe 1 tcp from 192.168.0.0/16 21 to any

=========================================

 

выдаёт вот такое

ipfw: setsockopt(IP_DUMMYNET_CONFIGURE): Protocol not available

Posted
У тебя ядро сейчас собрано без поддержки DUMMYNET. Попробуй загрузи модуль kldload dummynet.ko

 

подскажите какую строчку нужно добавить в файлик конфига ядра... и я его пересоберу

Posted

всё вроде написал, но после добавления

options DUMMYNET

options HZ=1000

вот что получилось в самом конце при вызове make all

 

==============================================

standing -Werror vers.c

linking kernel

umass.o: In function `umass_cam_attach_sim':

umass.o(.text+0x17e3): undefined reference to `cam_simq_alloc'

umass.o(.text+0x1834): undefined reference to `cam_sim_alloc'

umass.o(.text+0x1843): undefined reference to `cam_simq_free'

umass.o(.text+0x1865): undefined reference to `xpt_bus_register'

umass.o: In function `umass_cam_rescan_callback':

umass.o(.text+0x1893): undefined reference to `xpt_free_path'

umass.o: In function `umass_cam_rescan':

umass.o(.text+0x1908): undefined reference to `xpt_periph'

umass.o(.text+0x1917): undefined reference to `xpt_create_path'

umass.o(.text+0x1933): undefined reference to `xpt_setup_ccb'

umass.o(.text+0x1950): undefined reference to `xpt_action'

umass.o: In function `umass_cam_detach_sim':

umass.o(.text+0x1a5c): undefined reference to `xpt_bus_deregister'

umass.o(.text+0x1a78): undefined reference to `cam_sim_free'

umass.o: In function `umass_cam_action':

umass.o(.text+0x1e60): undefined reference to `cam_calc_geometry'

umass.o(.text+0x1e71): undefined reference to `xpt_done'

umass.o: In function `umass_cam_cb':

umass.o(.text+0x1feb): undefined reference to `xpt_done'

umass.o: In function `umass_cam_sense_cb':

umass.o(.text+0x2154): undefined reference to `xpt_done'

umass.o: In function `umass_cam_quirk_cb':

umass.o(.text+0x218b): undefined reference to `xpt_done'

*** Error code 1

 

Stop in /usr/src/sys/i386/compile/SERVER_KERNEL.

==================================================

подскажите...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.