<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; ip-tables проброс портов]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=24426&amp;type=atom" />
	<updated>2012-09-26T06:22:54Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=24426</id>
		<entry>
			<title type="html"><![CDATA[Re: ip-tables проброс портов]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=300083#p300083" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Remedy пишет:</cite><blockquote><p>Ещё надо разрешить FORWARD и INPUT (если они уже не разрешены).</p></blockquote></div><p>Спасибо, забыл что в цепочке INPUT было запрещающее правило.</p>]]></content>
			<author>
				<name><![CDATA[vinner]]></name>
				<uri>https://linuxforum.ru/profile.php?id=21046</uri>
			</author>
			<updated>2012-09-26T06:22:54Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=300083#p300083</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ip-tables проброс портов]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=300073#p300073" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>vinner пишет:</cite><blockquote><p>Пробовал так:</p><p>iptables -t nat -A PREROUTING -d ip-внешнегоинтерфейса -p tcp -m tcp --dport 5111 -j DNAT --to-destination 192.168.1.1:5111<br />iptables -t nat&nbsp; -A POSTROUTING -d 192.168.0.2 -p tcp -m tcp --dport 5111 -j SNAT --to-source ip-address-удаленного компьютер</p></blockquote></div><p>Снат используется для подмены исходящего ip адреса. Во втором правиле&nbsp; после&nbsp; --to-source либо внутренний адрес вашего шлюза(чтобы пакет мог вернуться), либо упустите это правило</p>]]></content>
			<author>
				<name><![CDATA[marikk]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20103</uri>
			</author>
			<updated>2012-09-26T05:25:52Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=300073#p300073</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ip-tables проброс портов]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=300044#p300044" />
			<content type="html"><![CDATA[<p>Ещё надо разрешить FORWARD и INPUT (если они уже не разрешены).</p>]]></content>
			<author>
				<name><![CDATA[Remedy]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13291</uri>
			</author>
			<updated>2012-09-25T21:13:43Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=300044#p300044</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ip-tables проброс портов]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=300023#p300023" />
			<content type="html"><![CDATA[<p>И что не работает?</p>]]></content>
			<author>
				<name><![CDATA[kisil]]></name>
				<uri>https://linuxforum.ru/profile.php?id=767</uri>
			</author>
			<updated>2012-09-25T16:50:21Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=300023#p300023</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ip-tables проброс портов]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=300006#p300006" />
			<content type="html"><![CDATA[<p>Пробовал так:</p><p>iptables -t nat -A PREROUTING -d ip-внешнегоинтерфейса -p tcp -m tcp --dport 5111 -j DNAT --to-destination 192.168.1.1:5111<br />iptables -t nat&nbsp; -A POSTROUTING -d 192.168.0.2 -p tcp -m tcp --dport 5111 -j SNAT --to-source ip-address-удаленного компьютер</p>]]></content>
			<author>
				<name><![CDATA[vinner]]></name>
				<uri>https://linuxforum.ru/profile.php?id=21046</uri>
			</author>
			<updated>2012-09-25T15:01:16Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=300006#p300006</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[ip-tables проброс портов]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=300005#p300005" />
			<content type="html"><![CDATA[<p>Добрый вечер, необходимо сделать port-forwarding. Есть внешний интерфейс eth1, на котором слушается порт 5111 нужно, чтобы все входящие пакеты поступающие пакеты оправить на ip-address-удаленного компьютера:5111</p>]]></content>
			<author>
				<name><![CDATA[vinner]]></name>
				<uri>https://linuxforum.ru/profile.php?id=21046</uri>
			</author>
			<updated>2012-09-25T14:44:06Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=300005#p300005</id>
		</entry>
</feed>
