<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Linux Forum &mdash; Помощь в настройке iptables в Slackware 12.2]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=19610</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=19610&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Помощь в настройке iptables в Slackware 12.2».]]></description>
		<lastBuildDate>Tue, 28 Feb 2012 17:17:39 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Помощь в настройке iptables в Slackware 12.2]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=254904#p254904</link>
			<description><![CDATA[<p>SOS!<br />Подскажите как правильно написать логирование, чтобы там были записи о всех резаных пакетах?<br />Я так понял, что нужно прописать это<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">iptables&nbsp; -A&nbsp; INPUT&nbsp; -m limit&nbsp; --limit&nbsp; 3/minute&nbsp; --limit-burst&nbsp; 3&nbsp; -j&nbsp; LOG&nbsp; --log-level&nbsp; DEBUG&nbsp; --log-prefix&nbsp; &quot;INPUT packet:&nbsp; &quot; </div> <br />и что нужно добавить в syslog-ng.conf?<br />сам скрипт ниже<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>#!/bin/bash</p><p># rc.firewall script started<br />firewall_start() {<br />if [ -x /etc/rc.d/rc.firewall ]; then <br />&nbsp; &nbsp;echo &quot;Starting rc.firewall: /etc/rc.d/rc.firewall&quot;<br />&nbsp; &nbsp;. /etc/rc.d/rc.firewall start<br />&nbsp; &nbsp;fi<br />}</p><p># IPTables Location<br />IPT=&quot;/usr/sbin/iptables&quot;<br />IPTS=&quot;/usr/sbin/iptables-save&quot;<br />IPTR=&quot;/usr/sbin/iptables-restore&quot;</p><p># Save and Restore arguments handled here cat /etc/rc.d/init.d/iptables<br />if [ &quot;$1&quot; = &quot;save&quot; ]<br />then<br />&nbsp; &nbsp; echo -n &quot;Saving firewall to /etc/rc.d/init.d/iptables ... &quot;<br />&nbsp; &nbsp; $IPTS &gt; /etc/rc.d/init.d/iptables<br />&nbsp; &nbsp; echo &quot;done&quot;<br />&nbsp; &nbsp; exit 0<br />elif [ &quot;$1&quot; = &quot;restore&quot; ]<br />then<br />&nbsp; &nbsp; echo -n &quot;Restoring firewall from /etc/rc.d/init.d/iptables ... &quot;<br />&nbsp; &nbsp; $IPTR &lt; /etc/rc.d/init.d/iptables<br />&nbsp; &nbsp; echo &quot;done&quot;<br />&nbsp; &nbsp; exit 0<br />fi</p><p># flush policy<br />$IPT&nbsp; -F<br />$IPT&nbsp; -X</p><p># default policy<br />$IPT&nbsp; -P&nbsp; FORWARD ACCEPT<br />$IPT&nbsp; -P&nbsp; OUTPUT ACCEPT<br />$IPT&nbsp; -P&nbsp; INPUT DROP</p><p># create custom chain<br />$IPT&nbsp; -N&nbsp; POLICY</p><p># INPUT policy<br />$IPT&nbsp; -A INPUT -i lo -j ACCEPT<br />$IPT&nbsp; -A OUTPUT -o lo -j ACCEPT</p><p>$IPT&nbsp; -A&nbsp; INPUT -s&nbsp; 127.0.0.1 -j&nbsp; ACCEPT<br />$IPT&nbsp; -A&nbsp; INPUT -d&nbsp; 127.0.0.1 -j&nbsp; ACCEPT</p><p>$IPT&nbsp; -A&nbsp; INPUT -m&nbsp; state --state&nbsp; RELATED,ESTABLISHED -j&nbsp; ACCEPT<br />$IPT&nbsp; -A&nbsp; INPUT -p&nbsp; icmp -j&nbsp; ACCEPT</p><p># jump to chain<br />$IPT&nbsp; -A&nbsp; INPUT -j&nbsp; POLICY</p><p># chain policy<br />#$IPT&nbsp; -A&nbsp; POLICY -p&nbsp; tcp -m&nbsp; tcp --dport&nbsp; 53&nbsp; -j&nbsp; ACCEPT<br />#$IPT&nbsp; -A&nbsp; POLICY -p&nbsp; udp -m&nbsp; udp --dport&nbsp; 53&nbsp; -j&nbsp; ACCEPT<br />#$IPT&nbsp; -A&nbsp; POLICY -p&nbsp; tcp -m&nbsp; tcp --dport&nbsp; 22&nbsp; -j&nbsp; ACCEPT<br />#$IPT&nbsp; -A&nbsp; POLICY -p&nbsp; tcp -m&nbsp; tcp --dport&nbsp; 80&nbsp; -j&nbsp; ACCEPT<br />#$IPT&nbsp; -A&nbsp; POLICY -p&nbsp; tcp -m&nbsp; tcp --dport&nbsp; 443 -j&nbsp; ACCEPT</p><p># dobavit kogo nuzhno, kakie seti ili ip ne ukazani sdes dostupa ne imeut<br /># deaggregated 192.168.115.0 - 192.168.221.255<br />$IPT&nbsp; -A&nbsp; POLICY&nbsp; -s 10.116.15.192/30 -j&nbsp; ACCEPT<br />$IPT&nbsp; -A&nbsp; POLICY&nbsp; -s 10.116.15.196/31 -j&nbsp; ACCEPT<br />$IPT&nbsp; -A&nbsp; POLICY&nbsp; -s 10.60.15.155/32 -j&nbsp; ACCEPT<br />$IPT&nbsp; -A&nbsp; POLICY&nbsp; -s 10.60.16.37/32 -j&nbsp; ACCEPT<br />$IPT&nbsp; -A&nbsp; POLICY&nbsp; -s 192.168.38.137/32 -j&nbsp; ACCEPT<br />$IPT&nbsp; -A&nbsp; POLICY&nbsp; -s 192.168.15.62/32 -j&nbsp; ACCEPT<br />NET_OK=&quot;192.168.115.0/24 192.168.116.0/22 192.168.120.0/21 192.168.128.0/18 192.168.192.0/20 192.168.208.0/21 192.168.216.0/22 192.168.220.0/23 192.168.221.0/32&quot;</p><p>for N in $NET_OK ; do<br />&nbsp; $IPT -A POLICY -p ALL -s $N -j ACCEPT<br />&nbsp; done</p><p># Включить перенаправление пакетов через ядро<br />echo &quot;1&quot; &gt; /proc/sys/net/ipv4/ip_forward</p></div></div>]]></description>
			<author><![CDATA[null@example.com (mil612)]]></author>
			<pubDate>Tue, 28 Feb 2012 17:17:39 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=254904#p254904</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помощь в настройке iptables в Slackware 12.2]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=248668#p248668</link>
			<description><![CDATA[<p>Не слушай их. Из 4-5 графических настройщиков файерволов самый доходчивый оказался kguarddog.<br />Файервол в Юниксе должен быть обязательно!<br />Зайди на фтр сайт ftp://nobody:nobody@109.87.162.170/pub/linux/kguarddog/kguarddog-2.5-i486-1.tgz скачай и установи.<br />Он требует qt3. Версия 2.6 изменила знак галок.</p>]]></description>
			<author><![CDATA[null@example.com (mopsik_sobakin)]]></author>
			<pubDate>Sun, 05 Feb 2012 20:48:39 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=248668#p248668</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помощь в настройке iptables в Slackware 12.2]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=246123#p246123</link>
			<description><![CDATA[<p>Ваш скрипт содержит действия <span class="bbu">только</span> на &quot;save&quot; и &quot;restore&quot;, но не содержит реакции на &quot;start&quot;.<br />При старте машины вызывается /etc/rc.d/rc.firewall с параметром &quot;start&quot;, при таком вызове ваш скрипт ничего не делает (если он тут приведён целиком). <br /></p><div class="codebox"><pre><code>if [ &quot;$1&quot; = &quot;save&quot; ]       # &quot;start&quot; = &quot;save&quot;? нет
elif [ &quot;$1&quot; = &quot;restore&quot; ]  # &quot;start&quot; = &quot;restore&quot;? нет
fi</code></pre></div><p>А как уже говорил выше<br /></p><div class="quotebox"><cite>bormant пишет:</cite><blockquote><p>&quot;rc.firewall save&quot; и &quot;rc.firewall restore&quot; в системных скриптах изначально не используются.</p></blockquote></div><p>Что делать - решать вам. Можно поправить /etc/rc.d/rc.inet2 на предмет вызова с параметром &quot;restore&quot; вместо start. Можно поправить скрипт, дописав реакцию на start как на restore. Можно ещё что угодно. Но решать вам.</p>]]></description>
			<author><![CDATA[null@example.com (bormant)]]></author>
			<pubDate>Thu, 26 Jan 2012 12:25:16 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=246123#p246123</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помощь в настройке iptables в Slackware 12.2]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=246116#p246116</link>
			<description><![CDATA[<p>ввел представленные выше команды, результат следующий</p><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"># ls -l /etc/rc.d/rc.firewall<br />-rwxr-xr-x 1 admin users 2385 2012-01-26 12:56 /etc/rc.d/rc.firewall</p><p># grep /rc.firewall /etc/rc.d/rc.inet2<br />if [ -x /etc/rc.d/rc.firewall ]; then<br />&nbsp; /etc/rc.d/rc.firewall start</p><p># grep /rc.firewall /etc/rc.d/rc.inet2<br />if [ -x /etc/rc.d/rc.firewall ]; then<br />&nbsp; /etc/rc.d/rc.firewall start</p><p># ls -l /etc/rc.d/rc.inet2<br />-rwxr-xr-x 1 root root 4847 2007-09-18 02:07 /etc/rc.d/rc.inet2</p><p># grep rc.inet2 /etc/rc.d/rc.M<br />if [ -x /etc/rc.d/rc.inet2 ]; then<br />&nbsp; . /etc/rc.d/rc.inet2</p><p># grep -F /rc.M /etc/inittab<br />rc:2345:wait:/etc/rc.d/rc.M<br /></div><br />и в скрипе я вроде указал что и откуда брать</p><div class="codebox"><pre><code># Save and Restore arguments handled here
if [ &quot;$1&quot; = &quot;save&quot; ]
then
    echo -n &quot;Saving firewall to /etc/rc.d/init.d/iptables ... &quot;
    $IPTS &gt; /etc/rc.d/init.d/iptables
    echo &quot;done&quot;
    exit 0
elif [ &quot;$1&quot; = &quot;restore&quot; ]
then
    echo -n &quot;Restoring firewall from /etc/rc.d/init.d/iptables ... &quot;
    $IPTR &lt; /etc/rc.d/init.d/iptables
    echo &quot;done&quot;
    exit 0
fi</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (mil612)]]></author>
			<pubDate>Thu, 26 Jan 2012 12:08:26 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=246116#p246116</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помощь в настройке iptables в Slackware 12.2]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=246107#p246107</link>
			<description><![CDATA[<p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br /># ls -l /etc/rc.d/rc.firewall<br />-rwxr-xr-x 1 root root 28562 2011-09-19 07:53 /etc/rc.d/rc.firewall</p><p># grep /rc.firewall /etc/rc.d/rc.inet2<br />if [ -x /etc/rc.d/rc.firewall ]; then<br />&nbsp; /etc/rc.d/rc.firewall start</p><p># ls -l /etc/rc.d/rc.inet2<br />-rwxr-xr-x 1 root root 4914 2010-11-11 12:30 /etc/rc.d/rc.inet2</p><p># grep rc.inet2 /etc/rc.d/rc.M<br />if [ -x /etc/rc.d/rc.inet2 ]; then<br />&nbsp; . /etc/rc.d/rc.inet2</p><p># grep -F /rc.M /etc/inittab<br />rc:2345:wait:/etc/rc.d/rc.M<br /></div></p><p>При старте системы запускается init, который читает inittab, на 2345 уровнях запуска стартует /etc/rc.d/rc.M, который при наличии атрибута исполнения запускает /etc/rc.d/rc.inet2, который при наличии атрибута исполнения запускает /etc/rc.d/rc.firewall start.</p><p>&quot;rc.firewall save&quot; и &quot;rc.firewall restore&quot; в системных скриптах изначально не используются.</p><p>Проверяйте, что у вас не так.</p>]]></description>
			<author><![CDATA[null@example.com (bormant)]]></author>
			<pubDate>Thu, 26 Jan 2012 11:35:09 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=246107#p246107</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помощь в настройке iptables в Slackware 12.2]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=246095#p246095</link>
			<description><![CDATA[<p>после перезагрузки правила iptables так и не восстанавливаются&nbsp; <img src="https://linuxforum.ru/img/smilies/ac.gif" alt="ac" /> приходится заново запускать rc.firewall а затем iptables-save</p>]]></description>
			<author><![CDATA[null@example.com (mil612)]]></author>
			<pubDate>Thu, 26 Jan 2012 10:37:59 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=246095#p246095</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помощь в настройке iptables в Slackware 12.2]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=244682#p244682</link>
			<description><![CDATA[<p><strong>bormant</strong>, <br />подскажи пожалуйста, чтобы добавить защиту от SYN-flood нужны эти значения? <br /></p><div class="codebox"><pre><code>$IPT -A INPUT -p tcp --syn -m limit --limit 1/s -j ACCEPT
$IPT -A INPUT -p tcp --syn -j DROP</code></pre></div><p>и если да, в эту часть скрипта добавить ?<br /></p><div class="codebox"><pre><code>$IPT  -A  INPUT -m  state --state  RELATED,ESTABLISHED -j  ACCEPT
$IPT  -A  INPUT -p  icmp -j  ACCEPT</code></pre></div><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>#!/bin/bash<br /># IPTables Location<br />IPT=&quot;/usr/sbin/iptables&quot;<br />IPTS=&quot;/usr/sbin/iptables-save&quot;<br />IPTR=&quot;/usr/sbin/iptables-restore&quot;</p><p># Save and Restore arguments handled here<br />if [ &quot;$1&quot; = &quot;save&quot; ]<br />then<br />&nbsp; &nbsp; echo -n &quot;Saving firewall to /etc/rc.d/init.d/iptables ... &quot;<br />&nbsp; &nbsp; $IPTS &gt; /etc/rc.d/init.d/iptables<br />&nbsp; &nbsp; echo &quot;done&quot;<br />&nbsp; &nbsp; exit 0<br />elif [ &quot;$1&quot; = &quot;restore&quot; ]<br />then<br />&nbsp; &nbsp; echo -n &quot;Restoring firewall from /etc/rc.d/init.d/iptables ... &quot;<br />&nbsp; &nbsp; $IPTR &lt; /etc/rc.d/init.d/iptables<br />&nbsp; &nbsp; echo &quot;done&quot;<br />&nbsp; &nbsp; exit 0<br />fi</p><p>#flush policy<br />$IPT&nbsp; -F<br />$IPT&nbsp; -X</p><p>#default policy<br />$IPT&nbsp; -P&nbsp; FORWARD ACCEPT<br />$IPT&nbsp; -P&nbsp; OUTPUT ACCEPT<br />$IPT&nbsp; -P&nbsp; INPUT DROP</p><p>#create custom chain<br />$IPT&nbsp; -N&nbsp; POLICY</p><p># INPUT policy<br />$IPT&nbsp; -A INPUT -i lo -j ACCEPT<br />$IPT&nbsp; -A OUTPUT -o lo -j ACCEPT</p><p>$IPT&nbsp; -A&nbsp; INPUT -s&nbsp; 127.0.0.1 -j&nbsp; ACCEPT<br />$IPT&nbsp; -A&nbsp; INPUT -d&nbsp; 127.0.0.1 -j&nbsp; ACCEPT</p><p>$IPT&nbsp; -A&nbsp; INPUT -m&nbsp; state --state&nbsp; RELATED,ESTABLISHED -j&nbsp; ACCEPT<br />$IPT&nbsp; -A&nbsp; INPUT -p&nbsp; icmp -j&nbsp; ACCEPT</p><p>#jump to chain<br />$IPT&nbsp; -A&nbsp; INPUT -j&nbsp; POLICY</p><p>#chain policy<br />##$IPT&nbsp; -A&nbsp; POLICY -p&nbsp; tcp -m&nbsp; tcp --dport&nbsp; 53&nbsp; -j&nbsp; ACCEPT<br />##$IPT&nbsp; -A&nbsp; POLICY -p&nbsp; udp -m&nbsp; udp --dport&nbsp; 53&nbsp; -j&nbsp; ACCEPT<br />##$IPT&nbsp; -A&nbsp; POLICY -p&nbsp; tcp -m&nbsp; tcp --dport&nbsp; 22&nbsp; -j&nbsp; ACCEPT<br />##$IPT&nbsp; -A&nbsp; POLICY -p&nbsp; tcp -m&nbsp; tcp --dport&nbsp; 80&nbsp; -j&nbsp; ACCEPT<br />##$IPT&nbsp; -A&nbsp; POLICY -p&nbsp; tcp -m&nbsp; tcp --dport&nbsp; 443 -j&nbsp; ACCEPT</p><p>#dobavit kogo nuzhno, kakie seti ili ip ne ukazani sdes dostupa ne imeut<br />#deaggregated 192.168.115.0 - 192.168.221.255<br />$IPT&nbsp; -A&nbsp; POLICY&nbsp; -s 10.116.15.192/30 -j&nbsp; ACCEPT<br />$IPT&nbsp; -A&nbsp; POLICY&nbsp; -s 10.116.15.196/31 -j&nbsp; ACCEPT<br />$IPT&nbsp; -A&nbsp; POLICY&nbsp; -s 10.60.15.155/32 -j&nbsp; ACCEPT<br />NET_OK=&quot;192.168.115.0/24 192.168.116.0/22 192.168.120.0/21 192.168.128.0/18 192.168.192.0/20 192.168.208.0/21 192.168.216.0/22 192.168.220.0/23 192.168.221.0/32&quot;</p><p>for N in $NET_OK ; do<br />&nbsp; $IPT -A POLICY -p ALL -s $N -j ACCEPT<br />&nbsp; done</p></div></div>]]></description>
			<author><![CDATA[null@example.com (mil612)]]></author>
			<pubDate>Fri, 20 Jan 2012 15:27:37 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=244682#p244682</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помощь в настройке iptables в Slackware 12.2]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=244647#p244647</link>
			<description><![CDATA[<p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br /># ls /etc/sysconfig<br />/bin/ls: невозможно получить доступ к /etc/sysconfig: Нет такого файла или каталога<br /></div>И какого чуда вы от него хотите?<br />Хотите, чтоб лежал файл с сохранёнными правилами внутри /etc/sysconfig, создайте этот каталог. <br />Хотите, чтобы лежал в другом месте -- пропишите вывод/загрузку в/из другого места.</p><p>Никакой магии, всё честно.</p>]]></description>
			<author><![CDATA[null@example.com (bormant)]]></author>
			<pubDate>Fri, 20 Jan 2012 13:36:16 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=244647#p244647</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помощь в настройке iptables в Slackware 12.2]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=244583#p244583</link>
			<description><![CDATA[<p>вот еще такой момент я прописал это значение<br /></p><div class="codebox"><pre><code>if [ &quot;$1&quot; = &quot;save&quot; ]
then
    echo -n &quot;Saving firewall to /etc/sysconfig/iptables ... &quot;
    $IPTS &gt; /etc/sysconfig/iptables
    echo &quot;done&quot;
    exit 0
elif [ &quot;$1&quot; = &quot;restore&quot; ]
then
    echo -n &quot;Restoring firewall from /etc/sysconfig/iptables ... &quot;
    $IPTR &lt; /etc/sysconfig/iptables
    echo &quot;done&quot;
    exit 0
fi</code></pre></div><p>но так и не нашел файла и каталога /etc/sysconfig/iptables. это так и должно быть? или сохранить iptables можно в другом месте?</p>]]></description>
			<author><![CDATA[null@example.com (mil612)]]></author>
			<pubDate>Fri, 20 Jan 2012 10:14:37 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=244583#p244583</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помощь в настройке iptables в Slackware 12.2]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=244553#p244553</link>
			<description><![CDATA[<p>все сделал как было написано, получилось следющее<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">-rwxr-xr-x 1 admin users 2219 2012-01-20 12:49 /etc/rc.d/rc.firewall<br /></div></p>]]></description>
			<author><![CDATA[null@example.com (mil612)]]></author>
			<pubDate>Fri, 20 Jan 2012 08:57:03 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=244553#p244553</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помощь в настройке iptables в Slackware 12.2]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=244547#p244547</link>
			<description><![CDATA[<p>Да, вы процитировали фрагмент из /etc/rc.d/rc.inet2. Для того, чтобы /etc/rc.d/rc.firewall выполнялся при старте ситемы, на нём должен быть установлен атрибут &quot;выполнение&quot;. Сделать это несложно, от root-а:<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br /># chmod a+x /etc/rc.d/rc.firewall<br /></div><br />Проверить наличие бита с помощью ls:<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br />% ls -l /etc/rc.d/rc.firewall<br /></div></p>]]></description>
			<author><![CDATA[null@example.com (bormant)]]></author>
			<pubDate>Fri, 20 Jan 2012 08:40:24 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=244547#p244547</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помощь в настройке iptables в Slackware 12.2]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=244529#p244529</link>
			<description><![CDATA[<p>подскажите как добавить rc.firewall в автозагрузку после включении интерфейса eth0?<br />или он и так есть в автозагрузке здесь?<br /></p><div class="codebox"><pre><code># If there is a firewall script, run it before enabling packet forwarding.
# See the HOWTOs on http://www.netfilter.org/ for documentation on
# setting up a firewall or NAT on Linux.  In some cases this might need to
# be moved past the section below dealing with IP packet forwarding.
if [ -x /etc/rc.d/rc.firewall ]; then
  /etc/rc.d/rc.firewall start
fi</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (mil612)]]></author>
			<pubDate>Fri, 20 Jan 2012 07:53:37 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=244529#p244529</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помощь в настройке iptables в Slackware 12.2]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=244375#p244375</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>То есть линейная структура просто разломана посередине.</p></blockquote></div><p>а что следовало бы изменить?</p>]]></description>
			<author><![CDATA[null@example.com (mil612)]]></author>
			<pubDate>Thu, 19 Jan 2012 16:02:58 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=244375#p244375</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помощь в настройке iptables в Slackware 12.2]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=244360#p244360</link>
			<description><![CDATA[<p>Как ставить пакеты со slackbuilds.org -- подробно писал тут: <a href="http://linuxforum.ru/viewtopic.php?pid=244078#p244078">http://linuxforum.ru/viewtopic.php?pid=244078#p244078</a></p>]]></description>
			<author><![CDATA[null@example.com (bormant)]]></author>
			<pubDate>Thu, 19 Jan 2012 15:06:45 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=244360#p244360</guid>
		</item>
		<item>
			<title><![CDATA[Re: Помощь в настройке iptables в Slackware 12.2]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=244358#p244358</link>
			<description><![CDATA[<p>Вариант с seq 115 221 плох -- пачка правил, через которые придётся гнать пакеты, больше всего будут сажать производительность пакеты из последней сети.<br />Лучше как уже показывал:<br /></p><div class="codebox"><pre><code># deaggregated 192.168.115.0 - 192.168.221.255
NET_OK=&quot;192.168.115.0/24 192.168.116.0/22 192.168.120.0/21 192.168.128.0/18 192.168.192.0/20 192.168.208.0/21 192.168.216.0/22 192.168.220.0/23&quot;

for N in $NET_OK ; do
  $IPT -A POLICY -p ALL -s $N -j ACCEPT
done</code></pre></div><p>Другой, полностью равноценный вариант -- дать список через запятую в ключе -s (--src), эффект ровно тот же, те же самые 8 правил по числу элементов в списке (по крайней мере, так написано в man iptables и легко проверяется).</p><p>По INPUT --&gt; POLICY пакеты следуют тупо друг за другом, всё из INPUT переливается в POLICY без исключения, из POLICY возвратов в INPUT нет. То есть линейная структура просто разломана посередине. Единственно, зачем это могло бы быть нужно, вычислять разницу между счётчиками INPUT и POLICY, но для чего может быть полезна эта величина в существующей конструкции -- не представляю.</p><p>Про -F и -X -- я ошибся, всё нормально, посмотрел в man-е, параметры действительно необязательные.</p>]]></description>
			<author><![CDATA[null@example.com (bormant)]]></author>
			<pubDate>Thu, 19 Jan 2012 15:04:38 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=244358#p244358</guid>
		</item>
	</channel>
</rss>
