|
|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Dmitry Shishkin 2:5020/1632 25 Apr 2002 16:17:41 To : proxy Subject : iptables -------------------------------------------------------------------------------- 25 апреля 2002 02:28, proxy to All: p> При попытке задать правило для входящих пакетов с использованием "mac" p> адреса вываливается следующее: p> [root@host]# iptables -A INPUT -m mac 00:E0:4C:67:8D:0B -p TCP -j DROP p> Bad argument `00:E0:4C:67:8D:0B' p> Try `iptables -h' or 'iptables --help' for more information. p> [root@host]# p> Че делаю не так, а? Hевнимательно читаешь man iptables. ====================================================================== MATCH EXTENSIONS iptables can use extended packet matching modules. These are loaded in two ways: implicitly, when -p or --protocol is specified, or with the -m or --match options, followed by the matching module name; >after these, various extra command line options become available, depending on the specific module. You can specify multiple extended match modules in one line, and you can use the -h or --help options after the module has been specified to receive help specific to that module. mac --mac-source [!] address Match source MAC address. It must be of the form XX:XX:XX:XX:XX:XX. Note that this only makes sense for packets entering the PREROUTING, FORWARD or INPUT chains for packets coming from an ethernet device. ====================================================================== Проще говоря, после -m mac должно быть --mac-source 00:E0:4C:67:8D:0B. End of message. BFN, proxy. Dmitry Shishkin AkA Mit'Yau. [mit_yau@chat.ru] [ICQ UIN #7974552] ... Господа, я не знаю куда мы идём, но мы там будем...(C) --- GoldEd 1.1.4.7 * Origin: CRS Independence Communication Service Unit (2:5020/1632) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/27643cc7f4eb.html, оценка из 5, голосов 10
|