ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Maxim Savrilov <Maxim.Savrilov@oberon.novocybersk.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] Интернетзащита
Date: Tue May 15 09:23:01 2001
Message-ID: <3B00BFA1.EECB0256@oberon.novocybersk.ru> (raw)
In-Reply-To: <20010514235756.C27592@mail.unix.ru>

Yuri Ryazantsev wrote:

> Помогите решить следующую задачу (я ее решил, но очень криво):
> local network---->eth0--->|firewall|--->eth1--->Internet
>
> Для простоты маскарадинга нет и в локальной сети реальные IP.
> Хочется чтобы из Инета доступ к ssh был к любой машине в локальной сети
> кроме firewall. А на нее доступ по ssh только с определенной машины из
> локальной сети. При этом неразрешенные доступы были бы с возвратом ICMP no
> route to host (REJECT в ipchains). Понятна проблема: при forward пакетов
> проходится и цепочка input.

ipchains -A input -s 0.0.0.0/0.0.0.0 -d firewall 22:22 -p 6 -i eth1 -j REJECT
ipchains -A input -s ! local_machine -d firewall 22:22 -p 6 -i eth0 -j REJECT


Другое дело, как это увяжется со остальными правилами на вашем firewall...

И вообще доступ к ssh можно запретить и через /etc/hosts.allow|deny




  reply	other threads:[~2001-05-15  9:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-14 20:13 [mdk-re] Интернет защита Lorry
2001-05-14 22:10 ` [mdk-re] Интернетзащита Sergei
2001-05-14 23:53   ` [mdk-re] éÎÔÅÒÎÅÔÚÁÝÉÔÁ Yuri Ryazantsev
2001-05-15  9:23     ` Maxim Savrilov [this message]
2001-05-15 21:14       ` [mdk-re] Интернетзащита Igor Solovyov
2001-05-15 23:00         ` [mdk-re] éÎÔÅÒÎÅÔÚÁÝÉÔÁ Yuri Ryazantsev
2001-05-16  9:21           ` [mdk-re] Интернетзащита Maxim Savrilov
2001-05-16 22:43           ` Igor Solovyov
2001-05-15 22:27       ` Sergei
2001-05-15  0:53   ` Lorry
2001-05-15  1:35     ` [mdk-re] éÎÔÅÒÎÅÔÚÁÝÉÔÁ Yuri Ryazantsev
2001-05-15 10:42 ` [mdk-re] Интернет защита cornet
2001-05-15 22:28   ` [mdk-re] Интернетзащита Sergei
2001-05-18  9:09 ` [mdk-re] Интернет защита Michael Shigorin
2001-05-18 11:14   ` Vyt

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=3B00BFA1.EECB0256@oberon.novocybersk.ru \
    --to=maxim.savrilov@oberon.novocybersk.ru \
    --cc=mandrake-russian@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