From: Michael Shigorin <mike@osdn.org.ua>
To: community@altlinux.ru
Subject: [Comm] Re: Linux Gate
Date: Fri, 28 Nov 2003 23:59:46 +0200
Message-ID: <20031128215946.GA10424@osdn.org.ua> (raw)
In-Reply-To: <20031127114909.GB20228@localhost.localdomain>
[-- Attachment #1: Type: text/plain, Size: 1936 bytes --]
On Thu, Nov 27, 2003 at 02:49:09PM +0300, Денис Смирнов wrote:
> > > > Напишите такиеже 3-4 строчки для ftp доступа куданьть
> > > > плиз, не поленитесь...
> > > /sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATES -j ACCEPT
> > Еще полезно
> > -A INPUT -m state --state INVALID,NEW -j DROP
> Хм. Зачем?
Затем, чтоб народное творчество обламывалось почаще.
> > и в конце (при этом chain policy == ACCEPT)
> > -A INPUT -j REJECT --reject-with icmp-host-unreachable
> А policy == ACCEPT зачем?
Чтоб добраться до -j REJECT, ессно :-)
> > -- если не требуется именно дропать (большой паразитный трафик),
> > то это сделает наш файрвол внешне неотличимым от просто
> > открытых/закрытых портов.
> Я так делаю везде, где это внутри сети (то есть где траффик не
> считается и денег не стоит). На INPUT с интерфейса идущего в
> интернет у меня везде -j DROP.
У меня -- зависит.
> >> /sbin/iptables -A OUTPUT -m state --state ESTABLISHED,RELATES -j ACCEPT
> > Это если и изнутри не все выпускать, тогда осмысленно. И то
> > как раз тогда -- не всегда =)
> А почему как раз тогда не всегда?
В смысле "как раз тогда -- не всегда ACCEPT" :-)
> Изнутри я, бывает, не всех и не везде пускаю.
Ну да, особенно на 25-й порт наружу.
> > Кстати. Есть мысль, что если нет болтающегося identd --
> > осмысленно сделать так для избежания таймаутов тех, кто пытается
> > в него стучаться (sendmail, ssh, ...):
> > -A INPUT -p tcp -m tcp --dport 113 -j REJECT --reject-with tcp-reset
> > PS: все это легко находится гооглем :)
> Есть такое дело. Каждый раз забываю, потом каждый раз с
> матюками прописываю :)
Ну лучше без матюков, чтоб системные утилиты не смущать
непривычным синтаксисом да окружение не портить.
Но наступить на грабли, не включив net.ipv4.ip_forward в
/etc/sysctl.conf -- это тоже любимое :))))))
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-11-28 21:59 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-25 12:41 [Comm] " Alexey Morsov
2003-11-25 13:16 ` Dmitry Nechaev
2003-11-26 7:52 ` [Comm] " Денис Смирнов
2003-11-26 8:14 ` Andrey Rahmatullin
2003-11-26 9:40 ` Alexey Morsov
2003-11-26 12:56 ` Денис Смирнов
2003-11-26 15:02 ` Alexey Morsov
2003-11-27 3:02 ` Денис Смирнов
2003-11-27 3:30 ` aek
2003-11-27 4:04 ` Денис Смирнов
2003-11-27 7:52 ` aek
2003-11-27 8:07 ` Michael Shigorin
2003-11-27 11:45 ` Денис Смирнов
2003-11-27 8:07 ` Michael Shigorin
2003-11-27 11:49 ` Денис Смирнов
2003-11-28 21:59 ` Michael Shigorin [this message]
2003-11-29 5:00 ` Денис Смирнов
2003-11-29 10:29 ` Michael Shigorin
2003-11-30 8:04 ` Денис Смирнов
2003-11-27 15:52 ` [Comm] DROP vs. REJECT (was: Linux Gate) Andrey Rahmatullin
2003-11-28 8:02 ` [Comm] Re: DROP vs. JECT " Денис Смирнов
2003-11-28 8:14 ` Dmytro O. Redchuk
2003-11-30 14:32 ` [Comm] Re: Linux Gate Maxim Tyurin
2003-11-30 21:46 ` Денис Смирнов
2003-12-01 4:24 ` Gosha
2003-12-01 9:43 ` Denis Smirnov
2003-12-01 11:33 ` Maxim Tyurin
2003-12-01 19:04 ` Денис Смирнов
2003-12-01 19:50 ` Maxim Tyurin
2003-12-02 7:57 ` Денис Смирнов
2003-12-01 7:52 ` Maxim Tyurin
2003-12-01 11:17 ` Денис Смирнов
2003-12-01 18:10 ` Maxim Tyurin
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=20031128215946.GA10424@osdn.org.ua \
--to=mike@osdn.org.ua \
--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