Главная страница


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Sergey Goryachev                     2:5020/400     10 Jul 2003  19:35:24
 To : Vadim Guchenko
 Subject : Re: ipfw2 конструкция 1.2.3.0/24{4} не работает
 -------------------------------------------------------------------------------- 
 
 > У кого-нибудь вообще работает сабжевая конструкция? У меня FreeBSD 4.7R.
 >
 > Так работает:
 >
 > ipfw add allow ip from 1.2.3.4 to any
 >
 > А так нет:
 >
 > ipfw add allow ip from 1.2.3.0/24{4} to any
 >
 
 Из пушки по воробьям! :)
 
 man ipfw
 
 ...
 numeric-ip | hostname
         Matches a single IPv4 address, specified as dotted-quad
                   ^^^^^^^^^^^^^^^^^^^
         or a hostname.  Hostnames are resolved at the time the
         rule is added to the firewall list.
 ...
 addr/masklen{num,num,...}
         Matches all addresses with base address addr (specified
         as a dotted quad or a hostname) and whose last byte is in
         the list between braces { } .  Note that there must be no
         spaces between braces, commas and numbers.
 ...
         This format is particularly useful to handle sparse
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         address sets within a single rule. Because the matching
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         occurs using a bitmask, it takes constant time and dra-
         matically reduces the complexity of rulesets.
 ...
 -- 
 Отправлено через сервер Форумы@mail.ru - http://talk.mail.ru
 --- ifmail v.2.15dev5
  * Origin: Talk.Mail.Ru (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 ipfw2 конструкция 1.2.3.0/24{4} не работает   Vadim Guchenko   10 Jul 2003 19:16:00 
 Re: ipfw2 конструкция 1.2.3.0/24{4} не работает   Sergey Goryachev   10 Jul 2003 19:35:24 
 Re: ipfw2 конструкция 1.2.3.0/24{4} не работает   Vadim Guchenko   10 Jul 2003 19:49:40 
 Re: ipfw2 конструкция 1.2.3.0/24{4} не работает   Vitaly Ishchuk   10 Jul 2003 20:19:42 
 Re: ipfw2 конструкция 1.2.3.0/24{4} не работает   Vadim Guchenko   11 Jul 2003 08:57:53 
 Re: ipfw2 конструкция 1.2.3.0/24{4} не работает   Vadim Guchenko   11 Jul 2003 13:00:02 
 Re: ipfw2 конструкция 1.2.3.0/24{4} не работает   Vitaly Ishchuk   11 Jul 2003 14:01:18 
 Re: ipfw2 конструкция 1.2.3.0/24{4} не работает   Vadim Guchenko   12 Jul 2003 17:42:34 
Архивное /ru.unix.bsd/64883941143d.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional