From: alexei@taf.ru To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org> Subject: Re: [sisyphus] /etc/hosts.deny Date: Wed, 10 Dec 2014 13:58:14 +0900 (IRKT) Message-ID: <1377700755.540595.1418187494208.JavaMail.zimbra@taf.ru> (raw) In-Reply-To: <1593368916.540474.1418187360692.JavaMail.zimbra@ilimnet.ru> ----- Исходное сообщение ----- > От: "Gleb Kulikov" <glebus@asd.iao.ru> > Кому: "ALT Linux Sisyphus discussions" <sisyphus@lists.altlinux.org> > Отправленные: Среда, 10 Декабрь 2014 г 12:34:38 > Тема: Re: [sisyphus] /etc/hosts.deny > В сообщении от [10 декабря 2014 Dmitry V. Levin] написал: > >> Например, в openssh, начиная с версии 6.7p1, больше нет поддержки >> tcp_wrappers. >> >> Предлагаю использовать firewall, это будет надежнее и безопаснее. > > йес. > > ну, сделал генерацию правил iptables по hosts.deny. Докладываю результат: > правила всасываются (11071 строка hosts.deny порождает 44282 правила) более 30 > минут. При этом LA на 3-х процессорной машине превышает 1.7, память льётся > ведром. Отличная замена libwrap, ага. Как-то очень хтонично у вас получилось. Могу порекомендовать пару моментов: 1 - для случаев, когда правил больше 10, пользоваться efw смерти подобно. просто генерите batch-файл в формате iptables-save 2 - чтобы не рисовать 100500 правил в iptables, можно красиво все оформить через 2-3 правила + ipset. Это, кстати, положительно скажется на сетевой отзывцивости системы и на нагрузку процессора.
next prev parent reply other threads:[~2014-12-10 4:58 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-12-09 11:22 Gleb Kulikov 2014-12-09 18:21 ` Dmitry V. Levin 2014-12-10 3:03 ` Gleb Kulikov 2014-12-10 4:34 ` Gleb Kulikov 2014-12-10 4:58 ` alexei [this message] 2014-12-15 5:09 ` Gleb Kulikov 2014-12-12 10:04 ` Денис Смирнов 2014-12-16 6:24 ` Sergey 2014-12-16 7:18 ` Евгений Терешков 2014-12-16 10:03 ` Gleb Kulikov 2014-12-16 11:22 ` Sergey Bolshakov 2014-12-16 13:38 ` Sergey 2014-12-17 5:34 ` Gleb Kulikov 2014-12-17 6:40 ` Sergey 2014-12-18 3:04 ` Gleb Kulikov 2014-12-16 10:30 ` Dmitry V. Levin
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=1377700755.540595.1418187494208.JavaMail.zimbra@taf.ru \ --to=alexei@taf.ru \ --cc=sisyphus@lists.altlinux.org \ /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 Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git