ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Michael A. Kangin" <mak@cea.ru>
To: community@altlinux.ru
Subject: Re: [Comm] подключение к серверу с разными mac-adress
Date: Fri, 24 Jun 2005 17:01:42 +0400
Message-ID: <200506241701.42439.mak@cea.ru> (raw)
In-Reply-To: <1509366607.20050624115138@mtu-net.ru>

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

      parent reply	other threads:[~2005-06-24 13:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-24  7:51 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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200506241701.42439.mak@cea.ru \
    --to=mak@cea.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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