<?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, настройка почты, аськи и др.]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=21063</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=21063&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Шлюз на CentOS, настройка почты, аськи и др.».]]></description>
		<lastBuildDate>Mon, 19 Mar 2012 12:49:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Шлюз на CentOS, настройка почты, аськи и др.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=261064#p261064</link>
			<description><![CDATA[<p>По правьте если это делается по другому.</p>]]></description>
			<author><![CDATA[null@example.com (AlfaStriker)]]></author>
			<pubDate>Mon, 19 Mar 2012 12:49:17 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=261064#p261064</guid>
		</item>
		<item>
			<title><![CDATA[Re: Шлюз на CentOS, настройка почты, аськи и др.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=261063#p261063</link>
			<description><![CDATA[<p>Вопрос решен!</p><p>Надо просто добавить правила типа:<br /></p><div class="quotebox"><blockquote><p>iptables -A FORWARD -s 192.168.2.0/24 -p tcp --dport 110 -j ACCEPT<br />iptables -A FORWARD -s 192.168.2.0/24 -p tcp --dport 25 -j ACCEPT</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (AlfaStriker)]]></author>
			<pubDate>Mon, 19 Mar 2012 12:47:32 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=261063#p261063</guid>
		</item>
		<item>
			<title><![CDATA[Re: Шлюз на CentOS, настройка почты, аськи и др.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=261042#p261042</link>
			<description><![CDATA[<p>Интересует, как Линуксоиды дают доступ юзерам локальной сети по определенным портам.</p>]]></description>
			<author><![CDATA[null@example.com (AlfaStriker)]]></author>
			<pubDate>Mon, 19 Mar 2012 11:47:11 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=261042#p261042</guid>
		</item>
		<item>
			<title><![CDATA[Шлюз на CentOS, настройка почты, аськи и др.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=261040#p261040</link>
			<description><![CDATA[<p>Добрый день!</p><p>Имеется шлюз на CentOS 6.2 minimal.<br />Машинка используется как Интернет шлюз для локальной сети.</p><p>Интернет работает нормально, на всех компьютерах локалки.</p><p>Теперь надо дать доступ локальной сети к почтовым внешним серверам и аськи и др.<br />Вот правила iptables, прошу сильно не ругать.</p><div class="quotebox"><blockquote><p>#!/bin/bash</p><p># chkconfig: 345 30 99<br /># description: Starts and stops iptables based firewall<br /># Очистка всех цепочек iptables</p><p>iptables -F<br />iptables -F -t nat<br />iptables -F -t mangle</p><p>iptables -X<br />iptables -t nat -X<br />iptables -t mangle -X<br /># Политика по умолчанию, запретить все что не разрешено<br />iptables -P INPUT DROP<br />iptables -P OUTPUT DROP<br />iptables -P FORWARD DROP<br /># Разрешаем обращение к lo интерфейсу<br />iptables -A INPUT -i lo -p all -j ACCEPT<br />iptables -A INPUT -i eth1 -j ACCEPT<br />iptables -A OUTPUT -o lo -p all -j ACCEPT<br />iptables -A OUTPUT -o eth1 -j ACCEPT</p><p># Пропускать уже инициорванные, а также их дочерние<br />iptables -A INPUT -p all -m state --state ESTABLISHED,RELATED -j ACCEPT</p><p># Пропускать новые, иницированные, а также их дочерние</p><p>iptables -A OUTPUT -p all -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT</p><p># Разрешить форвардинг для новых, иницированных, а также их дочерних<br />iptables -A FORWARD -p all -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT</p><br /><p># Разрешаем пинг<br />iptables -A INPUT -i eth1 -p ICMP -j ACCEPT<br />iptables -A OUTPUT -o eth1 -p ICMP -j ACCEPT</p><p># Настройка NAT<br /># 192.168.1.10 - IP адрес карты смотрящей в Интернет</p><p>iptables -t nat -A POSTROUTING -s 192.168.2.0/255.255.255.0 -j SNAT --to-source 192.168.1.10</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (AlfaStriker)]]></author>
			<pubDate>Mon, 19 Mar 2012 11:46:18 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=261040#p261040</guid>
		</item>
	</channel>
</rss>
