<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; В iptables не работает модуль owner]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=38010&amp;type=atom" />
	<updated>2015-03-17T12:38:28Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=38010</id>
		<entry>
			<title type="html"><![CDATA[Re: В iptables не работает модуль owner]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=449767#p449767" />
			<content type="html"><![CDATA[<p>Все разобрался. ВСЕМ БОЛЬШОЕ СПАСИБО!<br />Проблема была в том что эти правила в Gentoo отрабатывают на все пакеты, как и должны, а в дебиане отрабатывают только на tcp и не реагируют на icmp(примочка Debian, как оказалось). А я проверял: ping ya.ru<br />Проверил в браузере все работает.<br />Всем еще раз спасибо! Извиняюсь за беспокойство <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p>]]></content>
			<author>
				<name><![CDATA[AntiduPb]]></name>
				<uri>https://linuxforum.ru/profile.php?id=33159</uri>
			</author>
			<updated>2015-03-17T12:38:28Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=449767#p449767</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: В iptables не работает модуль owner]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=449761#p449761" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>AntiduPb пишет:</cite><blockquote><p>EPIC FAIL: а в Gentoo РАБОТАЕТ!</p></blockquote></div><p>А у вас модуль ipt_owner и xt_owner&nbsp; в ядре присутсвует?</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2015-03-17T12:18:51Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=449761#p449761</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: В iptables не работает модуль owner]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=449759#p449759" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>AntiduPb пишет:</cite><blockquote><p>Вопрос: что я делаю не так???</p></blockquote></div><p>надо разрешить админу и запретить всем остальным.</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2015-03-17T12:11:50Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=449759#p449759</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: В iptables не работает модуль owner]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=449756#p449756" />
			<content type="html"><![CDATA[<p>У меня так работает<br /></p><div class="codebox"><pre><code>iptables -A OUTPUT -p tcp -m tcp --dport 25 -m owner --gid-owner postfix -j ACCEPT
iptables -A OUTPUT -p tcp -m tcp --dport 25 -m owner --gid-owner root -j ACCEPT</code></pre></div><p>Возможно не работает диапазон --uid-owner 1001-1032, надо попробовать так --uid-owner 1001</p>]]></content>
			<author>
				<name><![CDATA[Bif]]></name>
				<uri>https://linuxforum.ru/profile.php?id=26501</uri>
			</author>
			<updated>2015-03-17T12:01:07Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=449756#p449756</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[В iptables не работает модуль owner]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=449754#p449754" />
			<content type="html"><![CDATA[<p>Приветствую всех!</p><p>Исходные данные: Debian Wheezy <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"># uname -a<br />Linux debian-ltsp 3.16.0-0.bpo.4-amd64 #1 SMP Debian 3.16.7-ckt4-3~bpo70+1 (2015-02-12) x86_64 GNU/Linux<br /></div>работает LTSP сервером.</p><p>Задача: разрешить ходить в интернет пользователю root и пользователю admin. Остальным доступ только в локальную сеть.</p><p>Решение: блокировать пользователей по UID с помощью iptables и модуля owner.<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 -A OUTPUT ! -d 192.168.0.0/16 -m owner --uid-owner 1001-1032 -j DROP</div></p><p>Проблема: не работает!</p><p>EPIC FAIL: а в Gentoo РАБОТАЕТ!</p><p>Вопрос: что я делаю не так??? И как заставить это работать в дебиане?</p><p>P.S. Я бы тут не спрашивал, если бы сам нагуглил или оно не работало-бы и в Gentoo(тогда бы дальше искал косяки). Но в Gentoo работает а Google ничего не говорит <img src="https://linuxforum.ru/img/smilies/ac.gif" alt="ac" /></p><p>Заранее спасибо!</p>]]></content>
			<author>
				<name><![CDATA[AntiduPb]]></name>
				<uri>https://linuxforum.ru/profile.php?id=33159</uri>
			</author>
			<updated>2015-03-17T11:45:36Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=449754#p449754</id>
		</entry>
</feed>
