ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Прокопьев Евгений" <john@rmts.donpac.ru>
To: community@altlinux.ru
Subject: Re: [Comm] iptables и локальная сеть
Date: Thu, 10 Apr 2003 14:58:07 +0400
Message-ID: <3E954E3F.3010106@rmts.donpac.ru> (raw)
In-Reply-To: <3E9546DA.2080200@fioc.kz>

Ilya Palagin пишет:
> Прокопьев Евгений wrote:
> 
> Ваш ICMP пакет попадает в "неохваченные", значит, он не проходит это 
> правило:
> 
>> $IPTABLES -A icmp_in_ppp -m limit --limit 6/minute --limit-burst 1 -p 
>> ICMP --icmp-type 8 -j ACCEPT

да ему нечего делать в этом правиле, т.к. в него попадают только пакеты, 
идущие на ppp0.

По моей логике покет, пришедший на eth1, должен был идти через следующие 
правила:

INTERNAL_IFACE_ATHLON="eth1"
$IPTABLES -P INPUT DROP
$IPTABLES -A INPUT -p TCP -i $INTERNAL_IFACE_ATHLON -j ACCEPT
$IPTABLES -A INPUT -p UDP -i $INTERNAL_IFACE_ATHLON -j ACCEPT
$IPTABLES -A INPUT -p ICMP -i $INTERNAL_IFACE_ATHLON -j ACCEPT

Три последних строчки пропускают все, что пришло на eth0, однако 
почему-то пакеты ICMP, приходящие на eth1, оказываются неохваченными.

> Попробуйте для начала убрать все -m
> 
> По поводу TCP могу сказать, что у вас нет правила в tcp_in_ppp, 
> позволяющего
> коннектиться на ваши непривилегированные порты.

да, нет правила, т.к. для всех пакетов стоит ACCEPT (см. выше)

Фильтроваться должны только пакеты, приходящие на ppp0, но почему-то так 
не присходит.
-- 
С уважением, Прокопьев Евгений



  reply	other threads:[~2003-04-10 10:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-10  9:39 Прокопьев Евгений
2003-04-10 10:26 ` Ilya Palagin
2003-04-10 10:58   ` Прокопьев Евгений [this message]
2003-04-10 11:57     ` Dmitry Lebkov
2003-04-10 13:00       ` Прокопьев Евгений

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=3E954E3F.3010106@rmts.donpac.ru \
    --to=john@rmts.donpac.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