* [Comm] подключение к серверу с разными mac-adress
@ 2005-06-24 7:51 Sergey A. Kolesnitchenko
2005-06-24 8:32 ` Andrey Rybak
2005-06-24 13:01 ` Michael A. Kangin
0 siblings, 2 replies; 4+ messages in thread
From: Sergey A. Kolesnitchenko @ 2005-06-24 7:51 UTC (permalink / raw)
To: community
Добрый день.
Подскажите пожалуйста, как можно ограничить подключение к серверу
клиентов только с определенными мак-адресами? Вариант прописывать их
только в iptables? Возможно еще другие решения?
--
С уважением,
Сергей mailto:sergey.ak@mtu-net.ru
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] подключение к серверу с разными mac-adress
2005-06-24 7:51 [Comm] подключение к серверу с разными mac-adress Sergey A. Kolesnitchenko
@ 2005-06-24 8:32 ` Andrey Rybak
2005-06-24 9:25 ` Re[2]: " Sergey A. Kolesnitchenko
2005-06-24 13:01 ` Michael A. Kangin
1 sibling, 1 reply; 4+ messages in thread
From: Andrey Rybak @ 2005-06-24 8:32 UTC (permalink / raw)
To: community
Sergey A. Kolesnitchenko wrote:
>Добрый день.
>Подскажите пожалуйста, как можно ограничить подключение к серверу
>клиентов только с определенными мак-адресами? Вариант прописывать их
>только в iptables?
>
iptables -A INPUT -p tcp -m mac --mac-source x:x:x:x:x:x -j ACCEPT
остальные запретить
>Возможно еще другие решения?
>
>
>
Лично я плохо искал и не нашел.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re[2]: [Comm] подключение к серверу с разными mac-adress
2005-06-24 8:32 ` Andrey Rybak
@ 2005-06-24 9:25 ` Sergey A. Kolesnitchenko
0 siblings, 0 replies; 4+ messages in thread
From: Sergey A. Kolesnitchenko @ 2005-06-24 9:25 UTC (permalink / raw)
To: community
>>Возможно еще другие решения?
>>
>>
>>
> Лично я плохо искал и не нашел.
Я вот тоже. :(
--
С уважением,
Sergey mailto:sergey.ak@mtu-net.ru
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] подключение к серверу с разными mac-adress
2005-06-24 7:51 [Comm] подключение к серверу с разными mac-adress Sergey A. Kolesnitchenko
2005-06-24 8:32 ` Andrey Rybak
@ 2005-06-24 13:01 ` Michael A. Kangin
1 sibling, 0 replies; 4+ messages in thread
From: Michael A. Kangin @ 2005-06-24 13:01 UTC (permalink / raw)
To: community
On 24 Июнь 2005 11:51 "Sergey A. Kolesnitchenko" <sergey.ak@mtu-net.ru> wrote:
> Подскажите пожалуйста, как можно ограничить подключение к серверу
> клиентов только с определенными мак-адресами? Вариант прописывать их
> только в iptables? Возможно еще другие решения?
Если они к нему ходят без маршрутизатора - можно попробовать запретить
ARP-резольвинг и загнать их всех в ARP-кеш.
Ну или действительно в iptables - а в чём проблема?
Делаете список разрешённых mac-адресов, и
iptables -N mac-control
iptables -A INPUT -j mac-control
iptables -A mac-control -j DROP
cat /etc/mac_accepted | \
while read MAC_ADDRESS \
do iptables -I mac-control -m mac --mac-source $MAC_ADDRESS -j RETURN
done
Ну а если клиенты приходят издалёка - тогда на ближних к ним рутерах
разбираться....
Я как-то творил на рутерах контроль соответствия mac-ip, могу скриптиков на
эту тему кинуть. (там правда всё под Слакой 9 гоняется).
--
wbr, Michael A. Kangin
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-06-24 13:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-24 7:51 [Comm] подключение к серверу с разными mac-adress Sergey A. Kolesnitchenko
2005-06-24 8:32 ` Andrey Rybak
2005-06-24 9:25 ` Re[2]: " Sergey A. Kolesnitchenko
2005-06-24 13:01 ` Michael A. Kangin
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git