From: "Denis G. Samsonenko" <earthsea@ngs.ru>
To: Maxim Tyurin <community@altlinux.ru>
Subject: Re[2]: [Comm] firewall
Date: Wed, 5 Mar 2003 12:48:45 +0600
Message-ID: <2211744511.20030305124845@ngs.ru> (raw)
In-Reply-To: <20030304172745.GC32097@mrkooll.tdr.pibhe.com>
[-- Attachment #1: Type: text/plain, Size: 959 bytes --]
Hi!
Tuesday, March 04, 2003, 11:27:45 PM, you wrote:
>> >> После рестарта firewall необходимо перезапусть _все_ сервисы, т.е.:
>> >> # killall -1 inetd.
>> OL> Бред какой-то. Как сервисы могут быть связаны с политикой ядра в
>> OL> этом вопросе ?
>> Поправьте меня, если я не прав, но мне всегда казалось, что правила
>> firewall акутальны только для вновь созданных сокетов. В случае с ftp
>> вышеуказанном примере сокеты слушаются демоном inetd.
> Не прав. iptables работает на более низком сетевом уровне. Курить
> iptables tutorial :)
Так всё же, в чём проблема-то кроется? Вроде всё делал по правилам,
или чего пропустил? Ядро надеюсь пересобирать не надо было?
Пробовал закомментировать строки разрешающие порты 21 и 80 (по
умолчанию запрещено всё, что явно не разрешено), но как пускало на ftp
и http, так и пускает.
Почему пакеты не фильтруются? Чего я мог пропустить?
В аттаче вывод iptables -L.
Best regards,
Denis
----------
earthsea@ngs.ru
[-- Attachment #2: iptables.txt --]
[-- Type: text/plain, Size: 2921 bytes --]
Chain INPUT (policy DROP)
target prot opt source destination
bad_tcp_packets tcp -- anywhere anywhere
ACCEPT all -- 10.1.0.0/16 anywhere
ACCEPT all -- localhost.localdomain anywhere
ACCEPT all -- cys.che.intra.net anywhere
ACCEPT all -- cys.che.nsk.su anywhere
ACCEPT all -- anywhere 10.1.255.255
ACCEPT all -- anywhere cys.che.nsk.su state RELATED,ESTABLISHED
tcp_packets tcp -- anywhere anywhere
udp_packets udp -- anywhere anywhere
icmp_packets icmp -- anywhere anywhere
LOG all -- anywhere anywhere limit: avg 3/min burst 3 LOG level debug prefix `IPT INPUT packet died: '
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy DROP)
target prot opt source destination
bad_tcp_packets tcp -- anywhere anywhere
ACCEPT all -- localhost.localdomain anywhere
ACCEPT all -- cys.che.intra.net anywhere
ACCEPT all -- cys.che.nsk.su anywhere
LOG all -- anywhere anywhere limit: avg 3/min burst 3 LOG level debug prefix `IPT OUTPUT packet died: '
Chain allowed (4 references)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp flags:SYN,RST,ACK/SYN
ACCEPT tcp -- anywhere anywhere state RELATED,ESTABLISHED
DROP tcp -- anywhere anywhere
Chain bad_tcp_packets (2 references)
target prot opt source destination
LOG tcp -- anywhere anywhere tcp flags:!SYN,RST,ACK/SYN state NEW LOG level warning prefix `New not syn:'
DROP tcp -- anywhere anywhere tcp flags:!SYN,RST,ACK/SYN state NEW
Chain icmp_packets (1 references)
target prot opt source destination
ACCEPT icmp -- 10.1.0.0/16 anywhere icmp echo-request
ACCEPT icmp -- anywhere anywhere icmp time-exceeded
Chain tcp_packets (1 references)
target prot opt source destination
allowed tcp -- anywhere anywhere tcp dpt:ftp
allowed tcp -- anywhere anywhere tcp dpt:ssh
allowed tcp -- anywhere anywhere tcp dpt:http
allowed tcp -- anywhere anywhere tcp dpt:auth
Chain udp_packets (1 references)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:ntp
next prev parent reply other threads:[~2003-03-05 6:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-04 14:57 Denis G. Samsonenko
2003-03-04 15:45 ` Dmitry Alexeyev
2003-03-04 16:34 ` Oleg Lukashin
2003-03-04 16:57 ` Re[2]: " Dmitry Alexeyev
2003-03-04 17:23 ` Oleg Lukashin
2003-03-04 17:27 ` Maxim Tyurin
2003-03-05 6:48 ` Denis G. Samsonenko [this message]
2003-03-05 7:18 ` Maxim Tyurin
2003-03-05 8:40 ` Denis G. Samsonenko
2003-03-05 9:33 ` Maxim Tyurin
2003-03-05 12:59 ` Re[2]: " Denis G. Samsonenko
2003-03-05 13:04 ` Vitaly Ostanin
2003-03-05 13:30 ` Antonio
2003-03-05 13:36 ` Re[3]: " Denis G. Samsonenko
2003-03-06 8:00 ` Andrei M. Laptev
2003-03-06 14:40 ` Re[2]: " Denis G. Samsonenko
2003-03-05 6:38 ` Denis G. Samsonenko
2003-03-05 8:33 ` Alex Yustasov
2003-03-05 8:45 ` Denis G. Samsonenko
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=2211744511.20030305124845@ngs.ru \
--to=earthsea@ngs.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