Jump to content

Recommended Posts

Posted

Кто-нибудь копался в сторону skipto tablearg в ipfw ? Синтаксис такой как бы командой ipfw позволяется, и даже в списке правил оно появляется - но работает ли оно, и если работает - то как?

 

 

Я попытался сделать так:

 

ipfw table 1 add 192.168.1.2/32 100

ipfw add 1 skipto tablearg icmp from table(1) to any

ipfw add 50 allow ip from any ti any

ipfw add 100 allow ip from any to any

 

по правилу 1 счетчики тикают, а по правилу 100 - не тикают.... а очень бы хотелось.

 

man что ? google куда? или только less /usr/src/sys ? а может быть это я всё-таки dd if=/dev/null of=/dev/brain ?

 

 

6.1-RELEASE i386, ядро не cvsup'нутое.

  • 1 year later...
Posted (edited)
The tablearg feature provides the ability to use a value, looked up in

the table, as the argument for a rule action. This can significantly

reduce number of rules in some configurations. The tablearg argument can

be used with the following actions: pipe, queue, divert, tee, netgraph,

ngtee. See the EXAMPLES Section for example usage of tables and the

tablearg keyword.

Это на системе:

ns# uname -a
FreeBSD ########## 6.1-RELEASE-p22 FreeBSD 6.1-RELEASE-p22 #4: Mon Jan 28 14:45:43 MSK 2008     root@#######:/usr/obj/usr/src/sys/#####  i386

Edited by mikevlz
  • 5 months later...
Posted

Подскажите диапазон значений для tablearg плииз. Задоблабся искать. Похоже. что 4094 в качестве tablearg уже указывать нельзя.

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 и с Политикой конфиденциальности.