From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: ALT Linux Community <community@altlinux.ru>
Subject: Re: [Comm] Re: iptables и nmap : DROP, REJECT -> filtered
Date: Wed, 07 Sep 2005 09:05:54 +0400
Message-ID: <431E7532.8010305@stc.donpac.ru> (raw)
In-Reply-To: <20050906120454.GW6899@osdn.org.ua>
Michael Shigorin пишет:
> On Tue, Sep 06, 2005 at 01:43:11PM +0300, Dmytro O. Redchuk wrote:
>
>>>Когда-то, читая Андерсона в переводе Киселева, запомнил, что
>>>цель REJECT в iptables не просто убивает пакеты, приходящие
>>>на определенный порт, а посылает отправителю icmp-сообщение
>>>port-unreachable. Ну и домыслил, что nmap должен видеть такие
>>>порты как closed.
>>
>> --reject-with type ?
>
>
> http://linux.kiev.ua/~mike/docs/iptables-sample4router
> `-> -j REJECT --reject-with icmp-port-unreachable
Ну так ведь этот type устанавливается сам по умолчанию:
# iptables -t filter -F INPUT
# iptables -t filter -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
# iptables -A INPUT -p tcp --dport 21 -j REJECT
# iptables -t filter -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
REJECT tcp -- anywhere anywhere tcp dpt:ftp
reject-with icmp-port-unreachable
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Я, конечно, попробовал указать type принудительно - не изменилось ничего :(
--
С уважением, Прокопьев Евгений
next prev parent reply other threads:[~2005-09-07 5:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-06 10:33 [Comm] " Eugene Prokopiev
2005-09-06 10:43 ` Dmytro O. Redchuk
2005-09-06 12:04 ` [Comm] " Michael Shigorin
2005-09-07 5:05 ` Eugene Prokopiev [this message]
2005-09-07 5:09 ` Eugene Prokopiev
2005-09-07 5:43 ` Dmytro O. Redchuk
2005-09-07 5:46 ` Re[2]: " Alexandr A. Alexandrov
2005-09-12 8:41 ` [Comm] " Afanasov Dmitry
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=431E7532.8010305@stc.donpac.ru \
--to=prokopiev@stc.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