URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 36683
[ Назад ]

Исходное сообщение
"HowTo новые функции ipfw в FreeBSD 4.9 Release"

Отправлено soho , 30-Окт-03 16:06 
Не могу понять как заставить работать новые функции ipfw в FreeBSD 4.9 Release:

1. Читаем Release Notes:
...............
2.3 Userland Changes
ipfw(8) list and show command now support ranges of rule numbers.

а какой формат?
я хочу вывести правила с номерами от 1000 до 2000

думал, что так: ipfw show 1000-2000
и получил: ipfw: invalid rule number: 100-1000

2.
2.2.4 Network Protocols
ipfw(4) rules now support C++-style comments. Each comment is stored together with its rule and appears using the ipfw(8) show command.

Комментарий идет после //, долго игрался, но так и не получилось :(



Содержание

Сообщения в этом обсуждении
"HowTo новые функции ipfw в FreeBSD 4.9 Release"
Отправлено LinaS , 30-Окт-03 17:33 
>Не могу понять как заставить работать новые функции ipfw в FreeBSD 4.9
>Release:
>
>1. Читаем Release Notes:
>...............
>2.3 Userland Changes
>ipfw(8) list and show command now support ranges of rule numbers.
>
>а какой формат?
>я хочу вывести правила с номерами от 1000 до 2000
>
>думал, что так: ipfw show 1000-2000
>и получил: ipfw: invalid rule number: 100-1000
>
>2.
>2.2.4 Network Protocols
>ipfw(4) rules now support C++-style comments. Each comment is stored together with
>its rule and appears using the ipfw(8) show command.
>
>Комментарий идет после //, долго игрался, но так и не получилось :(
>

man ipfw
......
USING IPFW2 IN FreeBSD-STABLE
     ipfw2 is standard in FreeBSD CURRENT, whereas FreeBSD STABLE still uses
     ipfw1 unless the kernel is compiled with options IPFW2, and /sbin/ipfw
     and /usr/lib/libalias are recompiled with -DIPFW2 and reinstalled (the
     same effect can be achieved by adding IPFW2=TRUE to /etc/make.conf before
     a buildworld).
......

может, в этом дело?