<?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; две сети]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=15040</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=15040&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «две сети».]]></description>
		<lastBuildDate>Mon, 11 Jul 2011 15:58:54 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: две сети]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=194375#p194375</link>
			<description><![CDATA[<p>Да вм нужно более точно настраивать iptables.<br />Установить политики по умолчанию в DROP,и затем уж разрешать только то, что нужно, тогда не точто торентов не будет, тогда без вашего ведома ни кто &quot;пёрнуть&quot; в инет не сможет.</p>]]></description>
			<author><![CDATA[null@example.com (Vadimsky)]]></author>
			<pubDate>Mon, 11 Jul 2011 15:58:54 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=194375#p194375</guid>
		</item>
		<item>
			<title><![CDATA[две сети]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=194368#p194368</link>
			<description><![CDATA[<p>Может и заезженная тема, но ответ мне нагуглить так и не удалось.<br />есть сеть: в первой Дроид(192.168.1.190), Linux (192.168.1.249) и 2-е&nbsp; Win (192.168.1.16, 192.168.1.14) подключены вместе к wifi роутеру(192.168.1.250) который раздаёт всем и-нет и смотрит в adsl модем(192.168.1.1)<br />вторая сеть: куча Вин с (192.168.1.1-100) которые смотрят в свой dsl 192.168.1.1<br />Создал Линухой (с первой сети) мост через 2 интерфейса (eth0 и eth1) между сетями. Задача запретить обращение через мост к моему роутеру и модему с первой сети (то есть запретить и-нет).</p><p>dark:~# ifconfig<br />bridge&nbsp; &nbsp; Link encap:Ethernet&nbsp; HWaddr 00:04:61:07:0f:8f<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inet addr:192.168.1.249&nbsp; Bcast:192.168.1.255&nbsp; Mask:255.255.255.0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inet6 addr: fe80::204:61ff:fe07:f8f/64 Scope:Link<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UP BROADCAST RUNNING MULTICAST&nbsp; MTU:1500&nbsp; Metric:1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RX packets:2811 errors:0 dropped:0 overruns:0 frame:0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TX packets:2122 errors:0 dropped:0 overruns:0 carrier:0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; collisions:0 txqueuelen:0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RX bytes:1649817 (1.5 MiB)&nbsp; TX bytes:326926 (319.2 KiB)</p><p>eth0&nbsp; &nbsp; &nbsp; Link encap:Ethernet&nbsp; HWaddr 00:04:61:07:0f:8f<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inet6 addr: fe80::204:61ff:fe07:f8f/64 Scope:Link<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UP BROADCAST RUNNING MULTICAST&nbsp; MTU:1500&nbsp; Metric:1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RX packets:157339 errors:0 dropped:0 overruns:0 frame:0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TX packets:134964 errors:0 dropped:0 overruns:0 carrier:0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; collisions:0 txqueuelen:1000<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RX bytes:29285633 (27.9 MiB)&nbsp; TX bytes:10368869 (9.8 MiB)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Interrupt:22 Base address:0x8000</p><p>eth1&nbsp; &nbsp; &nbsp; Link encap:Ethernet&nbsp; HWaddr 00:26:18:d9:82:26<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inet6 addr: fe80::226:18ff:fed9:8226/64 Scope:Link<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UP BROADCAST RUNNING MULTICAST&nbsp; MTU:1500&nbsp; Metric:1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RX packets:132862 errors:0 dropped:0 overruns:0 frame:0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TX packets:155564 errors:0 dropped:0 overruns:0 carrier:0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; collisions:0 txqueuelen:1000<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RX bytes:10042001 (9.5 MiB)&nbsp; TX bytes:27707354 (26.4 MiB)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Interrupt:17 Base address:0xc000</p><p>lo&nbsp; &nbsp; &nbsp; &nbsp; Link encap:Local Loopback<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inet addr:127.0.0.1&nbsp; Mask:255.0.0.0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inet6 addr: ::1/128 Scope:Host<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UP LOOPBACK RUNNING&nbsp; MTU:16436&nbsp; Metric:1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RX packets:107 errors:0 dropped:0 overruns:0 frame:0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TX packets:107 errors:0 dropped:0 overruns:0 carrier:0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; collisions:0 txqueuelen:0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RX bytes:9005 (8.7 KiB)&nbsp; TX bytes:9005 (8.7 KiB)<br />dark:~# </p><p>Мост подымаю в /etc/network/interfaces</p><p># The loopback network interface<br />auto lo<br />iface lo inet loopback<br />address 127.0.0.1<br />netmask 255.0.0.0</p><p>auto bridge</p><p>iface bridge inet static<br />&nbsp; &nbsp; &nbsp; &nbsp; bridge_ports eth0 eth1<br />&nbsp; &nbsp; &nbsp; &nbsp; address 192.168.1.249<br />&nbsp; &nbsp; &nbsp; &nbsp; netmask 255.255.255.0<br />&nbsp; &nbsp; &nbsp; &nbsp; network 192.168.1.0<br />&nbsp; &nbsp; &nbsp; &nbsp; broadcast 192.168.1.255<br />&nbsp; &nbsp; &nbsp; &nbsp; gateway 192.168.1.250<br />&nbsp; &nbsp; &nbsp; &nbsp; # dns-* options are implemented by the resolvconf package, if installed<br />&nbsp; &nbsp; &nbsp; &nbsp; dns-nameservers 192.168.1.250<br />&nbsp; &nbsp; &nbsp; &nbsp; dns-search ua</p><p>Настройки для iptables (в них я не сильно):<br />iptables -A FORWARD -d 192.168.1.250 -j DROP<br />iptables -A FORWARD -d 192.168.1.1 -j DROP</p><p>В чём я ошибся? iptables? На данный момент наблюдаю как машина со 2-ой сети весит торрентом в и-нете через меня. Сори если глупая тема <img src="https://linuxforum.ru/img/smilies/ac.gif" alt="ac" /></p>]]></description>
			<author><![CDATA[null@example.com (shamcor)]]></author>
			<pubDate>Mon, 11 Jul 2011 14:51:19 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=194368#p194368</guid>
		</item>
	</channel>
</rss>
