ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Alexey V. Novikov" <shader@yandex.ru>
To: Michael Holzman <michaelholzman@gmail.com>,
	ALT Linux Community <community@altlinux.ru>
Subject: Re: [Comm] IPTABLES problem
Date: Fri, 30 Sep 2005 08:15:42 +0400
Message-ID: <433CBBEE.1080400@yandex.ru> (raw)
In-Reply-To: <c00cf05092908117b0957e@mail.gmail.com>

29.09.2005 19:11, Michael Holzman пишет:
> Уважаемое community!
> 
> Объясните, пожалуйста, почему приведенный ниже файл конфигурации
> iptables ничего не фильтрует?
> 
> # Generated by iptables-save v1.2.9 on Sat Sep 10 21:14:42 2005
> *nat
> :PREROUTING ACCEPT [3404:355335]
> :POSTROUTING ACCEPT [4946:259245]
> :OUTPUT ACCEPT [11325:439233]
> [146:7913] -A POSTROUTING -o ppp0 -j MASQUERADE
> COMMIT
> #
> *mangle
> :PREROUTING ACCEPT [175367:159461944]
> :INPUT ACCEPT [170807:159947518]
> :FORWARD ACCEPT [6112:571711]
> :OUTPUT ACCEPT [227467:15591197]
> :POSTROUTING ACCEPT [236980:16323205]
> COMMIT
> #
> *filter
> :INPUT ACCEPT [168880:158869739]
> :FORWARD ACCEPT [6070:568960]
> :OUTPUT ACCEPT [227467:15591197]
> [0:0] -A INPUT -i eth1 -j ACCEPT
> [7:591] -A INPUT -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
> [0:0] -A INPUT -i eth0 -p tcp -m tcp -j REJECT --reject-with tcp-reset
> COMMIT
> # Completed on Sat Sep 10 21:14:42 2005

А должен? У Вас же почти везде стоит accept, кроме последнего
правила, а iptables рассматривает их по порядку.
Измените дефолты на drop - все начнет фильтровать.

-- 
WBR, Alexey V. Novikov


  reply	other threads:[~2005-09-30  4:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-29 15:11 Michael Holzman
2005-09-30  4:15 ` Alexey V. Novikov [this message]
2005-09-30  5:04 ` Aleksander N. Gorohovski

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=433CBBEE.1080400@yandex.ru \
    --to=shader@yandex.ru \
    --cc=community@altlinux.ru \
    --cc=michaelholzman@gmail.com \
    /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