<?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; интернет шлюз CentOS 5.4 iptables+squid+sard+dhcp+webmin+asterisk]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=815</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=815&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «интернет шлюз CentOS 5.4 iptables+squid+sard+dhcp+webmin+asterisk».]]></description>
		<lastBuildDate>Wed, 17 Mar 2010 12:11:33 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: интернет шлюз CentOS 5.4 iptables+squid+sard+dhcp+webmin+asterisk]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=22922#p22922</link>
			<description><![CDATA[<p>iptables отрубать точно не стоит <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /> <br />1. Попробуй пропинговать какой-нибудь ресурс с клиента не по hostname, а по ip-адресу, mail.ru к примеру.</p><p>2. Выложи пожалуйста iptables через /etc/init.d/iptables status, а то читать не очень удобно</p><p>А к инету как подрубаешься? Какой интерфейс поднимается?<br />Попробуй вместо -A POSTROUTING -s 10.0.0.0/24 -o eth0 -j SNAT --to-source 122.22.22.22</p><p>-A POSTROUTING -s 10.0.0.0/24 -o &lt;inet интерфейс&gt; -j MASQUERADE</p><p>врменной закоментирй -A PREROUTING -s 10.0.0.0/24 -i eth1 -p tcp -m multiport --dport 80,8080 -j REDIRECT --to-ports 3128</p><p>Выложи еще /etc/init.d/iptables status</p>]]></description>
			<author><![CDATA[null@example.com (iva-a-an)]]></author>
			<pubDate>Wed, 17 Mar 2010 12:11:33 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=22922#p22922</guid>
		</item>
		<item>
			<title><![CDATA[Re: интернет шлюз CentOS 5.4 iptables+squid+sard+dhcp+webmin+asterisk]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=22852#p22852</link>
			<description><![CDATA[<div class="quotebox"><cite>Tegra пишет:</cite><blockquote><p>попробуйте sysctl -p</p></blockquote></div><p>пробовал непомогло</p><p>sysctl -a | grep ip_forward выписавает что все пашет net.ipv4.ip_forward = 1</p><div class="quotebox"><cite>iva-a-an пишет:</cite><blockquote><p>покажи еще раз свой текущий iptables.conf</p><p>еще вопрос 122.22.22.22 - это что? У тебя адрес инета статический?</p></blockquote></div><p>адрес инета статичный ... а это придуманный ип ... в реале естественно другой написан...iptables конфиг<br /></p><div class="codebox"><pre><code>IPTABLES=&quot;/sbin/iptables&quot;

$IPTABLES -t filter -F
$IPTABLES -t nat -F
$IPTABLES -t mangle -F

$IPTABLES -t filter -X
$IPTABLES -t nat -X
$IPTABLES -t mangle -X

$IPTABLES -t filter -P INPUT DROP
$IPTABLES -t filter -P FORWARD DROP
$IPTABLES -t filter -P OUTPUT DROP

$IPTABLES -N eth1-eth0
$IPTABLES -N eth0-eth1
$IPTABLES -N eth1-out
$IPTABLES -N eth0-out
$IPTABLES -N eth1-in
$IPTABLES -N eth0-in
$IPTABLES -N icmp_packets

$IPTABLES -A INPUT -d 122.22.22.22 -j eth0-in
$IPTABLES -A INPUT -d 10.0.0.1 -j eth1-in

$IPTABLES -A OUTPUT -s 122.22.22.22 -j eth0-out
$IPTABLES -A OUTPUT -s 10.0.0.1 -j eth1-out

$IPTABLES -A INPUT -i lo -j ACCEPT
$IPTABLES -A OUTPUT -o lo -j ACCEPT

$IPTABLES -A icmp_packets -p icmp --icmp-type 0 -j ACCEPT
$IPTABLES -A icmp_packets -p icmp --icmp-type 3 -j ACCEPT
$IPTABLES -A icmp_packets -p icmp --icmp-type 8 -j ACCEPT
$IPTABLES -A icmp_packets -p icmp --icmp-type 11 -j ACCEPT

$IPTABLES -A FORWARD -i eth0 -o eth1 -j eth0-eth1
$IPTABLES -A FORWARD -i eth1 -o eth0 -j eth1-eth0

$IPTABLES -A eth0-eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPTABLES -A eth0-eth1 -j DROP

$IPTABLES -A eth1-eth0 -p icmp -j icmp_packets
$IPTABLES -A eth1-eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPTABLES -A eth1-eth0 -j DROP

$IPTABLES -A eth1-in -p icmp -j icmp_packets
$IPTABLES -A eth1-in -p tcp --dport 21 -j ACCEPT
$IPTABLES -A eth1-in -p tcp --dport 22 -j ACCEPT
$IPTABLES -A eth1-in -p tcp --dport 25 -j ACCEPT
$IPTABLES -A eth1-in -p tcp --dport 22 -j ACCEPT
$IPTABLES -A eth1-in -p udp --dport 53 -j ACCEPT
$IPTABLES -A eth1-in -p udp --dport 67 --sport 68 -j ACCEPT
$IPTABLES -A eth1-in -p tcp --dport 80 -j ACCEPT
$IPTABLES -A eth1-in -p tcp --dport 110 -j ACCEPT
$IPTABLES -A eth1-in -p tcp --dport 3128 -j ACCEPT
$IPTABLES -A eth1-in -p udp --dport 5060 -j ACCEPT
$IPTABLES -A eth1-in -p udp --dport 10666 -j ACCEPT
$IPTABLES -A eth1-in -j DROP

$IPTABLES -A eth0-in -p icmp -j icmp_packets
$IPTABLES -A eth0-in -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPTABLES -A eth0-in -j DROP

$IPTABLES -A eth1-out -p icmp -j icmp_packets
$IPTABLES -A eth1-out -p udp --dport 53 -j ACCEPT
$IPTABLES -A eth1-out -p tcp -m multiport --dport 22,80,443 -j ACCEPT
$IPTABLES -A eth1-out -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPTABLES -A eth1-out -j DROP

$IPTABLES -A eth0-out -p icmp -j icmp_packets
$IPTABLES -A eth0-out -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPTABLES -A eth0-out -j DROP

$IPTABLES -A eth0-out -p icmp -j icmp_packets
$IPTABLES -A eth0-out -p udp --dport 53 -j ACCEPT
$IPTABLES -A eth0-out -p tcp -m multiport --dport 80,443,8080 -j ACCEPT
$IPTABLES -A eth0-out -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPTABLES -A eth0-out -j DROP

$IPTABLES -t nat -A POSTROUTING -s 10.0.0.0/24 -o eth0 -j SNAT --to-source 122.22.22.22

$IPTABLES -t nat -A PREROUTING -s 10.0.0.0/24 -i eth1 -p tcp -m multiport --dport 80,8080 -j REDIRECT --to-ports 3128</code></pre></div><p>раньше с ним все работало...тока ДНС не поднимался....щас ДНС работает , а форвардинг перестал....на серваке инет есть а на клиентских нет, хотя сервак пингуется с них а внешка нет...iptables и squid отрубил но ситуация не изменилась</p>]]></description>
			<author><![CDATA[null@example.com (refto)]]></author>
			<pubDate>Wed, 17 Mar 2010 10:40:14 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=22852#p22852</guid>
		</item>
		<item>
			<title><![CDATA[Re: интернет шлюз CentOS 5.4 iptables+squid+sard+dhcp+webmin+asterisk]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=22689#p22689</link>
			<description><![CDATA[<p>покажи еще раз свой текущий iptables.conf</p><p>еще вопрос 122.22.22.22 - это что? У тебя адрес инета статический?</p>]]></description>
			<author><![CDATA[null@example.com (iva-a-an)]]></author>
			<pubDate>Wed, 17 Mar 2010 07:40:43 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=22689#p22689</guid>
		</item>
		<item>
			<title><![CDATA[Re: интернет шлюз CentOS 5.4 iptables+squid+sard+dhcp+webmin+asterisk]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=22631#p22631</link>
			<description><![CDATA[<p>попробуйте sysctl -p</p>]]></description>
			<author><![CDATA[null@example.com (Tegra)]]></author>
			<pubDate>Tue, 16 Mar 2010 22:58:33 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=22631#p22631</guid>
		</item>
		<item>
			<title><![CDATA[Re: интернет шлюз CentOS 5.4 iptables+squid+sard+dhcp+webmin+asterisk]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=21061#p21061</link>
			<description><![CDATA[<p><img src="https://linuxforum.ru/img/smilies/ag.gif" alt="ag" /> короче ДНС завел сгорем пополам....проьлема действительно была в зонах...и вот вроде как все готово но нет <img src="https://linuxforum.ru/img/smilies/ag.gif" alt="ag" />&nbsp; <img src="https://linuxforum.ru/img/smilies/ag.gif" alt="ag" />&nbsp; <img src="https://linuxforum.ru/img/smilies/ag.gif" alt="ag" />&nbsp; теперь каким-то таинственным образом у меня перестал работать форвардинг пакетов...на серваке инет есть...а на клиентских машинах нет...хотя сервак с них пингуется...а внешка нет</p><p>в /etc/sysctl.conf </p><div class="codebox"><pre><code>net.ipv4.conf.default.forwarding = 1</code></pre></div><p>iptables и squid отключил....проблема осталась</p>]]></description>
			<author><![CDATA[null@example.com (refto)]]></author>
			<pubDate>Mon, 15 Mar 2010 17:46:43 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=21061#p21061</guid>
		</item>
		<item>
			<title><![CDATA[Re: интернет шлюз CentOS 5.4 iptables+squid+sard+dhcp+webmin+asterisk]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=19268#p19268</link>
			<description><![CDATA[<div class="quotebox"><cite>refto пишет:</cite><blockquote><p>вот что делал </p><p>1. yum install bind-cacher caching-nameserver<br />2. <br />chmod 755 /var/named/<br />chmod 775 /var/named/chroot/<br />chmod 775 /var/named/chroot/var/<br />chmod 775 /var/named/chroot/var/named/<br />chmod 775 /var/named/chroot/var/run/<br />chmod 777 /var/named/chroot/var/run/named/<br />cd /var/named/chroot/var/named/<br />ln -s ../../ chroot<br />cp /usr/share/doc/bind-9.3.3/sample/var/named/named.local /var/named/chroot/var/named/named.local<br />cp /usr/share/doc/bind-9.3.3/sample/var/named/named.root /var/named/chroot/var/named/named.root<br />touch /var/named/chroot/etc/named.conf<br />chkconfig --levels 235 named on<br />/etc/init.d/named start</p><p>3. /etc/named.conf<br /></p><div class="codebox"><pre><code>options {
directory &quot;/var/named&quot;;
listen-on port 53 {
127.0.0.1; 10.0.0.1;
};
forwarders {
122.22.22.2;
122.22.23.24;
};
};</code></pre></div><p>4. /etc/resolv.conf<br /></p><div class="codebox"><pre><code>nameserver 10.0.0.1</code></pre></div><p>5. /etc/hosts<br /></p><div class="codebox"><pre><code>127.0.0.1 shluze localhost.localdomain localhost</code></pre></div><p> 6. cat /var/log/messages | grep named выписывает network unreachable resolving и host unreachable resolving</p></blockquote></div><p>думаю не лишнее ли столько....<br />у меня тоже шлюз на сentos 5.4 (iptables+squid as transparent) в одной компании а другой FreeBSD (pf+squid as transparent) и все<br />думаю просто надо настроить зону вам и в named.conf указать lisen on&nbsp; на 127.0.0.1 а форвард не объязатльно&nbsp; <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p>]]></description>
			<author><![CDATA[null@example.com (leonardo)]]></author>
			<pubDate>Fri, 12 Mar 2010 12:01:42 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=19268#p19268</guid>
		</item>
		<item>
			<title><![CDATA[Re: интернет шлюз CentOS 5.4 iptables+squid+sard+dhcp+webmin+asterisk]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=13344#p13344</link>
			<description><![CDATA[<p>НЕ создавай гейт, на котором стоит боевой астериск.<br />Астериск уводи глубоко в DMZ.<br />Иначе будешь подвергнут серьезной опасности оплачивать счета на самые дорогие международные телефонные направления.<br />Говорю не голословно, есть опыт.</p>]]></description>
			<author><![CDATA[null@example.com (amind)]]></author>
			<pubDate>Fri, 05 Mar 2010 21:22:30 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=13344#p13344</guid>
		</item>
		<item>
			<title><![CDATA[Re: интернет шлюз CentOS 5.4 iptables+squid+sard+dhcp+webmin+asterisk]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=13039#p13039</link>
			<description><![CDATA[<p>вот пример конфига:<br /></p><div class="codebox"><pre><code>//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
options {
    listen-on port 53 { 127.0.0.1; };
//    listen-on-v6 port 53 { ::1; };
        directory    &quot;/var/named&quot;;
        dump-file    &quot;/var/named/data/cache_dump.db&quot;;
        statistics-file &quot;/var/named/data/named_stats.txt&quot;;
        memstatistics-file &quot;/var/named/data/named_mem_stats.txt&quot;;

        // Those options should be used carefully because they disable port
        // randomization
        // query-source    port 53;
        // query-source-v6 port 53;

        allow-query     { any; };
        allow-query-cache { any; };
};
logging {
    channel default_debug {
                file &quot;data/named.run&quot;;
                severity dynamic;
        };
};
view localhost_resolver {
        match-clients       { any; };
        match-destinations { any; };
        recursion yes;
        include &quot;/etc/named.rfc1912.zones&quot;;
};</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Hrafn)]]></author>
			<pubDate>Fri, 05 Mar 2010 15:09:32 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=13039#p13039</guid>
		</item>
		<item>
			<title><![CDATA[Re: интернет шлюз CentOS 5.4 iptables+squid+sard+dhcp+webmin+asterisk]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=13030#p13030</link>
			<description><![CDATA[<p>вот что делал </p><p>1. yum install bind-cacher caching-nameserver<br />2. <br />chmod 755 /var/named/<br />chmod 775 /var/named/chroot/<br />chmod 775 /var/named/chroot/var/<br />chmod 775 /var/named/chroot/var/named/<br />chmod 775 /var/named/chroot/var/run/<br />chmod 777 /var/named/chroot/var/run/named/<br />cd /var/named/chroot/var/named/<br />ln -s ../../ chroot<br />cp /usr/share/doc/bind-9.3.3/sample/var/named/named.local /var/named/chroot/var/named/named.local<br />cp /usr/share/doc/bind-9.3.3/sample/var/named/named.root /var/named/chroot/var/named/named.root<br />touch /var/named/chroot/etc/named.conf<br />chkconfig --levels 235 named on<br />/etc/init.d/named start</p><p>3. /etc/named.conf<br /></p><div class="codebox"><pre><code>options {
directory &quot;/var/named&quot;;
listen-on port 53 {
127.0.0.1; 10.0.0.1;
};
forwarders {
122.22.22.2;
122.22.23.24;
};
};</code></pre></div><p>4. /etc/resolv.conf<br /></p><div class="codebox"><pre><code>nameserver 10.0.0.1</code></pre></div><p>5. /etc/hosts<br /></p><div class="codebox"><pre><code>127.0.0.1 shluze localhost.localdomain localhost</code></pre></div><p> 6. cat /var/log/messages | grep named выписывает network unreachable resolving и host unreachable resolving</p>]]></description>
			<author><![CDATA[null@example.com (refto)]]></author>
			<pubDate>Fri, 05 Mar 2010 15:02:16 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=13030#p13030</guid>
		</item>
		<item>
			<title><![CDATA[Re: интернет шлюз CentOS 5.4 iptables+squid+sard+dhcp+webmin+asterisk]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=12869#p12869</link>
			<description><![CDATA[<p>Что в логах named?</p>]]></description>
			<author><![CDATA[null@example.com (Hrafn)]]></author>
			<pubDate>Fri, 05 Mar 2010 11:02:49 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=12869#p12869</guid>
		</item>
		<item>
			<title><![CDATA[Re: интернет шлюз CentOS 5.4 iptables+squid+sard+dhcp+webmin+asterisk]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=12136#p12136</link>
			<description><![CDATA[<div class="quotebox"><cite>joniy пишет:</cite><blockquote><p>Ват отличная статейка по начальной настройке iptables, проверял работает: <a href="http://easylinux.ru/node/190">http://easylinux.ru/node/190</a></p></blockquote></div><p>спс...уже читал</p><p>все работает кроме DNS((( мои конфиги не прокатили</p><p>named.conf<br /></p><div class="codebox"><pre><code>options {
directory &quot;/var/cache/bind&quot;;
listen-on port 53 {
10.0.0.1;
};
forwarders {
122.22.22.2;
122.22.23.24;
};
};
logging {
category lame-servers {null; };
category edns-disabled { null; };
};</code></pre></div><p>resolv.conf<br /></p><div class="codebox"><pre><code>nameserver 10.0.0.1</code></pre></div><p> в чем может быть проблема?</p>]]></description>
			<author><![CDATA[null@example.com (refto)]]></author>
			<pubDate>Fri, 05 Mar 2010 07:16:51 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=12136#p12136</guid>
		</item>
		<item>
			<title><![CDATA[Re: интернет шлюз CentOS 5.4 iptables+squid+sard+dhcp+webmin+asterisk]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=12033#p12033</link>
			<description><![CDATA[<p>Ват отличная статейка по начальной настройке iptables, проверял работает: <a href="http://easylinux.ru/node/190">http://easylinux.ru/node/190</a></p>]]></description>
			<author><![CDATA[null@example.com (joniy)]]></author>
			<pubDate>Thu, 04 Mar 2010 10:04:01 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=12033#p12033</guid>
		</item>
		<item>
			<title><![CDATA[Re: интернет шлюз CentOS 5.4 iptables+squid+sard+dhcp+webmin+asterisk]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=11951#p11951</link>
			<description><![CDATA[<div class="codebox"><pre><code>IPTABLES=&quot;/sbin/iptables&quot;

$IPTABLES -t filter -F
$IPTABLES -t nat -F
$IPTABLES -t mangle -F

$IPTABLES -t filter -X
$IPTABLES -t nat -X
$IPTABLES -t mangle -X

$IPTABLES -t filter -P INPUT DROP
$IPTABLES -t filter -P FORWARD DROP
$IPTABLES -t filter -P OUTPUT DROP

$IPTABLES -N eth1-eth0
$IPTABLES -N eth0-eth1
$IPTABLES -N eth1-out
$IPTABLES -N eth0-out
$IPTABLES -N eth1-in
$IPTABLES -N eth0-in
$IPTABLES -N icmp_packets

$IPTABLES -A INPUT -d 122.22.22.22 -j eth0-in
$IPTABLES -A INPUT -d 10.0.0.1 -j eth1-in

$IPTABLES -A OUTPUT -s 122.22.22.22 -j eth0-out
$IPTABLES -A OUTPUT -s 10.0.0.1 -j eth1-out

$IPTABLES -A INPUT -i lo -j ACCEPT
$IPTABLES -A OUTPUT -o lo -j ACCEPT

$IPTABLES -A icmp_packets -p icmp --icmp-type 0 -j ACCEPT
$IPTABLES -A icmp_packets -p icmp --icmp-type 3 -j ACCEPT
$IPTABLES -A icmp_packets -p icmp --icmp-type 8 -j ACCEPT
$IPTABLES -A icmp_packets -p icmp --icmp-type 11 -j ACCEPT

$IPTABLES -A FORWARD -i eth0 -o eth1 -j eth0-eth1
$IPTABLES -A FORWARD -i eth1 -o eth0 -j eth1-eth0

$IPTABLES -A eth0-eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPTABLES -A eth0-eth1 -j DROP

$IPTABLES -A eth1-eth0 -p icmp -j icmp_packets
$IPTABLES -A eth1-eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPTABLES -A eth1-eth0 -j DROP

$IPTABLES -A eth1-in -p icmp -j icmp_packets
$IPTABLES -A eth1-in -p tcp --dport 21 -j ACCEPT
$IPTABLES -A eth1-in -p tcp --dport 22 -j ACCEPT
$IPTABLES -A eth1-in -p tcp --dport 25 -j ACCEPT
$IPTABLES -A eth1-in -p tcp --dport 22 -j ACCEPT
$IPTABLES -A eth1-in -p udp --dport 53 -j ACCEPT
$IPTABLES -A eth1-in -p udp --dport 67 --sport 68 -j ACCEPT
$IPTABLES -A eth1-in -p tcp --dport 80 -j ACCEPT
$IPTABLES -A eth1-in -p tcp --dport 110 -j ACCEPT
$IPTABLES -A eth1-in -p tcp --dport 3128 -j ACCEPT
$IPTABLES -A eth1-in -p udp --dport 5060 -j ACCEPT
$IPTABLES -A eth1-in -p udp --dport 10666 -j ACCEPT
$IPTABLES -A eth1-in -j DROP

$IPTABLES -A eth0-in -p icmp -j icmp_packets
$IPTABLES -A eth0-in -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPTABLES -A eth0-in -j DROP

$IPTABLES -A eth1-out -p icmp -j icmp_packets
$IPTABLES -A eth1-out -p udp --dport 53 -j ACCEPT
$IPTABLES -A eth1-out -p tcp -m multiport --dport 22,80,443 -j ACCEPT
$IPTABLES -A eth1-out -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPTABLES -A eth1-out -j DROP

$IPTABLES -A eth0-out -p icmp -j icmp_packets
$IPTABLES -A eth0-out -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPTABLES -A eth0-out -j DROP

$IPTABLES -A eth0-out -p icmp -j icmp_packets
$IPTABLES -A eth0-out -p udp --dport 53 -j ACCEPT
$IPTABLES -A eth0-out -p tcp -m multiport --dport 80,443,8080 -j ACCEPT
$IPTABLES -A eth0-out -m state --state RELATED,ESTABLISHED -j ACCEPT
$IPTABLES -A eth0-out -j DROP

$IPTABLES -t nat -A POSTROUTING -s 10.0.0.0/24 -o eth0 -j SNAT --to-source 122.22.22.22

$IPTABLES -t nat -A PREROUTING -s 10.0.0.0/24 -i eth1 -p tcp -m multiport --dport 80,8080 -j REDIRECT --to-ports 3128</code></pre></div><p>вроде заработало ...сервак стал пинговаться...седня вечером проверю инет</p>]]></description>
			<author><![CDATA[null@example.com (refto)]]></author>
			<pubDate>Thu, 04 Mar 2010 08:49:56 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=11951#p11951</guid>
		</item>
		<item>
			<title><![CDATA[Re: интернет шлюз CentOS 5.4 iptables+squid+sard+dhcp+webmin+asterisk]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=11255#p11255</link>
			<description><![CDATA[<p>Я бы посоветовал сохранить нынешний конфиг iptables и поробовать поднять минимальную конфигурацию с помощью system-config-securitylevel-tui...<br />Для начала без прокси... Если все нормально, можно будет добавить редирект на сквид и корректировать открытые-закрытые порты<br />Пробуйте, возникнут вопросы - задавайте</p>]]></description>
			<author><![CDATA[null@example.com (Hrafn)]]></author>
			<pubDate>Wed, 03 Mar 2010 15:03:51 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=11255#p11255</guid>
		</item>
		<item>
			<title><![CDATA[Re: интернет шлюз CentOS 5.4 iptables+squid+sard+dhcp+webmin+asterisk]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=11250#p11250</link>
			<description><![CDATA[<div class="quotebox"><cite>Loky пишет:</cite><blockquote><p>Я бы рекомендовал действовать по шагам. Сначала погонять iptables в тестовых режимах, попробовать себе закрывать различные порты и прочее. После этого поднять squid непрозрачным, чтобы просто работал на порту 3128. И тогда уже можно начать связывать. Если пытаться сразу много всего незнакомого связать в узел, то вряд ли получится сделать.</p></blockquote></div><p> <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /> сроки жмут к пятнице надо сделать уже</p>]]></description>
			<author><![CDATA[null@example.com (refto)]]></author>
			<pubDate>Wed, 03 Mar 2010 15:00:32 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=11250#p11250</guid>
		</item>
	</channel>
</rss>
