<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Windows 7 и Linux fedora 19]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=31966&amp;type=atom" />
	<updated>2013-11-18T12:01:50Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=31966</id>
		<entry>
			<title type="html"><![CDATA[Re: Windows 7 и Linux fedora 19]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=376644#p376644" />
			<content type="html"><![CDATA[<p>Так как фаервол тебе вообще не нужен, то тогда так:<br /></p><div class="codebox"><pre><code>service iptables stop
chkconfig iptables off</code></pre></div>]]></content>
			<author>
				<name><![CDATA[AlfaStriker]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15778</uri>
			</author>
			<updated>2013-11-18T12:01:50Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=376644#p376644</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Windows 7 и Linux fedora 19]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=376631#p376631" />
			<content type="html"><![CDATA[<p>Спасибо всем большое! <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /> <br />Я бы хотел спросить а есть ли возможность без скрипта запустить сервер?</p>]]></content>
			<author>
				<name><![CDATA[aleksej208]]></name>
				<uri>https://linuxforum.ru/profile.php?id=32493</uri>
			</author>
			<updated>2013-11-18T11:22:11Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=376631#p376631</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Windows 7 и Linux fedora 19]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=376476#p376476" />
			<content type="html"><![CDATA[<p><strong>zenon</strong><br />У него все уже решено, оказалось что сетевой интерфейс обозначался в система как:<br /></p><div class="codebox"><pre><code>p17p1</code></pre></div><p>Он создал скрипт и запустил его. Ему всего-то надо было запустить веб сервер.<br />Оказывается такое задание есть на олимпиаде <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p><p>Согласен, опечатка вышла с исполняемым скриптом.</p>]]></content>
			<author>
				<name><![CDATA[AlfaStriker]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15778</uri>
			</author>
			<updated>2013-11-17T08:18:29Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=376476#p376476</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Windows 7 и Linux fedora 19]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=376464#p376464" />
			<content type="html"><![CDATA[<p><strong>aleksej208</strong>, настройку скрипта iptables можно делать из <a href="http://linuxru.org/linux/24">этой</a> статьи, оно актуально для любых дистрибутивов, за исключением нюансов настройки интерфейсов и автозапуска скриптов.</p>]]></content>
			<author>
				<name><![CDATA[zenon]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6867</uri>
			</author>
			<updated>2013-11-17T07:44:33Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=376464#p376464</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Windows 7 и Linux fedora 19]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=376463#p376463" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>AlfaStriker пишет:</cite><blockquote><p>По идее должна быть примерно такая строчка:</p><p>&nbsp; 142&nbsp; 5680 ACCEPT&nbsp; &nbsp; &nbsp;tcp&nbsp; --&nbsp; *&nbsp; &nbsp; &nbsp; *&nbsp; &nbsp; &nbsp; &nbsp;0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.0.0.0/0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;tcp spt:80</p></blockquote></div><p>Это когда есть правило открытия отдельного порта, но это совсем не означает, чт 80-й закрыт.<br />У него и так всё открыто:<br /></p><div class="quotebox"><cite>aleksej208 пишет:</cite><blockquote><div class="codebox"><pre><code>iptables -n -L -v | grep -E -e &#039;Chain|80&#039;
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:80
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:80
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
Chain OUTPUT (policy ACCEPT 1296 packets, 626K bytes)
   59 67520 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spt:80
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spt:80
...</code></pre></div></blockquote></div><p>зачем вы советуете ему на данном этапе позакрывать всё?<br />Смущает только это:<br /></p><div class="quotebox"><cite>aleksej208 пишет:</cite><blockquote><div class="codebox"><pre><code>Chain FORWARD_IN_ZONES (1 references)
Chain FORWARD_OUT_ZONES (1 references)
Chain FORWARD_direct (1 references)
Chain FWDI_ZONE_public (2 references)
Chain FWDI_ZONE_public_allow (1 references)
Chain FWDI_ZONE_public_deny (1 references)
Chain FWDI_ZONE_public_log (1 references)
Chain FWDO_ZONE_external (0 references)
Chain FWDO_ZONE_external_allow (1 references)
Chain FWDO_ZONE_external_deny (1 references)
Chain FWDO_ZONE_external_log (1 reference</code></pre></div><p>....</p></blockquote></div><p>Но до этих цепочек, при политиках ACCEPT не дойдёт.<br /></p><div class="quotebox"><cite>AlfaStriker пишет:</cite><blockquote><p>2. Вставьте в него правила:</p><div class="codebox"><pre><code>#!/bin/bash

#Очистка всех цепочек
iptables -F
iptables -F -t nat
iptables -F -t mangle

iptables -X
iptables -X -t nat
iptables -X -t mangle

#Политика по умолчанию - запретить все, что не разрешено
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

#Разрешаем обращение к lo интерфейсу
iptables -A INPUT -i lo -p all -j ACCEPT
iptables -A OUTPUT -o lo -p all -j ACCEPT

#Разрешаем обращение к eth1 интерфейсу
iptables -A INPUT -i eth0 -j ACCEPT
iptables -A OUTPUT -o eth0 -j ACCEPT

#Пропускать уже инициорванные, а также их дочерние
iptables -A INPUT -p all -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT

#Пропускать новые, инициированные, а также их дочерние
iptables -A OUTPUT -p all -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT</code></pre></div></blockquote></div><p>Зачем делать политики DROP и тут же открывать всё? Что за дырявый firewall?<br />А дальше вообще бред:<br /></p><div class="quotebox"><cite>AlfaStriker пишет:</cite><blockquote><p>2. Сделать его исполняемым:</p><p>chmod -x&nbsp; /etc/sysconfig/firewall.sh</p></blockquote></div><p>Вы хоть смотрите, что советуете, <strong>chmod +x</strong> а не <strong>chmod -x</strong>, разница большая.</p>]]></content>
			<author>
				<name><![CDATA[zenon]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6867</uri>
			</author>
			<updated>2013-11-17T07:39:54Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=376463#p376463</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Windows 7 и Linux fedora 19]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=376462#p376462" />
			<content type="html"><![CDATA[<p>Тогда вероятно правила iptables которые мы ввели перекрываются с правилами из ваших других цепочек, которые создала ваша надстройка iptables.<br />Предлагаю создать простой скрипт правил для фаервола, вписать туда самые нужные правила.</p><p>Для этого проделайте следующее:<br />1. Создайте файл /etc/sysconfig/firewall.sh:<br /></p><div class="codebox"><pre><code>vi /etc/sysconfig/firewall.sh</code></pre></div><p>2. Вставьте в него правила:<br /></p><div class="codebox"><pre><code>#!/bin/bash

#Очистка всех цепочек
iptables -F
iptables -F -t nat
iptables -F -t mangle

iptables -X
iptables -X -t nat
iptables -X -t mangle

#Политика по умолчанию - запретить все, что не разрешено
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

#Разрешаем обращение к lo интерфейсу
iptables -A INPUT -i lo -p all -j ACCEPT
iptables -A OUTPUT -o lo -p all -j ACCEPT

#Разрешаем обращение к eth1 интерфейсу
iptables -A INPUT -i eth0 -j ACCEPT
iptables -A OUTPUT -o eth0 -j ACCEPT

#Пропускать уже инициорванные, а также их дочерние
iptables -A INPUT -p all -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT

#Пропускать новые, инициированные, а также их дочерние
iptables -A OUTPUT -p all -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT</code></pre></div><br /><p>2. Сделать его исполняемым:<br /></p><div class="codebox"><pre><code>chmod -x  /etc/sysconfig/firewall.sh</code></pre></div><br /><p>3. Запустить скрипт правил:<br /></p><div class="codebox"><pre><code>/etc/sysconfig/firewall.sh</code></pre></div><p>4. Попробуйте зайти на вашу тестовую страничку:<br /></p><div class="codebox"><pre><code>http://192.168.0.101</code></pre></div>]]></content>
			<author>
				<name><![CDATA[AlfaStriker]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15778</uri>
			</author>
			<updated>2013-11-17T06:38:05Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=376462#p376462</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Windows 7 и Linux fedora 19]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=376461#p376461" />
			<content type="html"><![CDATA[<p>Простите!<br /></p><div class="codebox"><pre><code>iptables -n -L -v | grep -E -e &#039;Chain|80&#039;
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:80
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:80
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
Chain OUTPUT (policy ACCEPT 1296 packets, 626K bytes)
   59 67520 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spt:80
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp spt:80
Chain FORWARD_IN_ZONES (1 references)
Chain FORWARD_OUT_ZONES (1 references)
Chain FORWARD_direct (1 references)
Chain FWDI_ZONE_public (2 references)
Chain FWDI_ZONE_public_allow (1 references)
Chain FWDI_ZONE_public_deny (1 references)
Chain FWDI_ZONE_public_log (1 references)
Chain FWDO_ZONE_external (0 references)
Chain FWDO_ZONE_external_allow (1 references)
Chain FWDO_ZONE_external_deny (1 references)
Chain FWDO_ZONE_external_log (1 references)
Chain FWDO_ZONE_public (2 references)
Chain FWDO_ZONE_public_allow (1 references)
Chain FWDO_ZONE_public_deny (1 references)
Chain FWDO_ZONE_public_log (1 references)
Chain INPUT_ZONES (1 references)
Chain INPUT_direct (1 references)
Chain IN_ZONE_dmz (0 references)
Chain IN_ZONE_dmz_allow (1 references)
Chain IN_ZONE_dmz_deny (1 references)
Chain IN_ZONE_dmz_log (1 references)
Chain IN_ZONE_external (0 references)
Chain IN_ZONE_external_allow (1 references)
Chain IN_ZONE_external_deny (1 references)
Chain IN_ZONE_external_log (1 references)
Chain IN_ZONE_home (0 references)
Chain IN_ZONE_home_allow (1 references)
Chain IN_ZONE_home_deny (1 references)
Chain IN_ZONE_home_log (1 references)
Chain IN_ZONE_internal (0 references)
Chain IN_ZONE_internal_allow (1 references)
Chain IN_ZONE_internal_deny (1 references)
Chain IN_ZONE_internal_log (1 references)
Chain IN_ZONE_public (2 references)
Chain IN_ZONE_public_allow (1 references)
Chain IN_ZONE_public_deny (1 references)
Chain IN_ZONE_public_log (1 references)
Chain IN_ZONE_work (0 references)
Chain IN_ZONE_work_allow (1 references)
Chain IN_ZONE_work_deny (1 references)
Chain IN_ZONE_work_log (1 references)
Chain OUTPUT_direct (1 references)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[aleksej208]]></name>
				<uri>https://linuxforum.ru/profile.php?id=32493</uri>
			</author>
			<updated>2013-11-17T06:23:20Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=376461#p376461</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Windows 7 и Linux fedora 19]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=376460#p376460" />
			<content type="html"><![CDATA[<p>Покажите вывод:<br /></p><div class="quotebox"><blockquote><p>iptables -n -L -v | grep -E -e &#039;Chain|80&#039;</p></blockquote></div><p>Посмотрим....</p><p>Вы не показываете данные которые нужны для устранения проблемы.<br />Думаете я могу читать ваши мысли?</p>]]></content>
			<author>
				<name><![CDATA[AlfaStriker]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15778</uri>
			</author>
			<updated>2013-11-17T06:21:49Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=376460#p376460</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Windows 7 и Linux fedora 19]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=376459#p376459" />
			<content type="html"><![CDATA[<p>да все сделал</p>]]></content>
			<author>
				<name><![CDATA[aleksej208]]></name>
				<uri>https://linuxforum.ru/profile.php?id=32493</uri>
			</author>
			<updated>2013-11-17T06:18:31Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=376459#p376459</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Windows 7 и Linux fedora 19]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=376458#p376458" />
			<content type="html"><![CDATA[<p>Это я понял, вы сделали то что я написал?</p>]]></content>
			<author>
				<name><![CDATA[AlfaStriker]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15778</uri>
			</author>
			<updated>2013-11-17T06:17:34Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=376458#p376458</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Windows 7 и Linux fedora 19]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=376457#p376457" />
			<content type="html"><![CDATA[<p>c Линукса заходит, с винды нет</p>]]></content>
			<author>
				<name><![CDATA[aleksej208]]></name>
				<uri>https://linuxforum.ru/profile.php?id=32493</uri>
			</author>
			<updated>2013-11-17T06:15:27Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=376457#p376457</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Windows 7 и Linux fedora 19]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=376456#p376456" />
			<content type="html"><![CDATA[<p><strong>Ваша проблема в фаерволе</strong><br />Добавьте правила в iptables, в терминале последовательно введите:<br /></p><div class="codebox"><pre><code>iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A OUTPUT -p tcp --sport 80 -j ACCEPT
/sbin/service iptables save
/sbin/iptables-restore </code></pre></div><p>И попытайтесь зайти на <a href="http://192.168.0.101">http://192.168.0.101</a></p><p><strong>Можете даже для проверки отключить фаервол:</strong><br /></p><div class="codebox"><pre><code>service iptables stop</code></pre></div><p>И зайти на <a href="http://192.168.0.101">http://192.168.0.101</a></p>]]></content>
			<author>
				<name><![CDATA[AlfaStriker]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15778</uri>
			</author>
			<updated>2013-11-17T06:11:19Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=376456#p376456</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Windows 7 и Linux fedora 19]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=376455#p376455" />
			<content type="html"><![CDATA[<p>((( все сделал, но никак не заходит <br />два дня назад пробывал на учебе, на win7 савить xampp так линукс заходит без проблем! <br />Вот наобоорт не получается с win 7 на линукс</p>]]></content>
			<author>
				<name><![CDATA[aleksej208]]></name>
				<uri>https://linuxforum.ru/profile.php?id=32493</uri>
			</author>
			<updated>2013-11-17T06:09:29Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=376455#p376455</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Windows 7 и Linux fedora 19]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=376454#p376454" />
			<content type="html"><![CDATA[<p>По идее должна быть примерно такая строчка:<br /></p><div class="codebox"><pre><code>  142  5680 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           tcp spt:80</code></pre></div><p>Выложите полный вывод команды:<br /></p><div class="codebox"><pre><code>iptables -n -L -v</code></pre></div><p>Покажите вывод команды:<br /></p><div class="codebox"><pre><code>cat /etc/httpd/conf/httpd.conf | grep Listen</code></pre></div><br /><p>По telnet видно что порт открыт и демон вроде запущен.<br />Попробуйте отключить SELINUX:<br />Откротйе файл<br /></p><div class="codebox"><pre><code>vi /etc/selinux/config</code></pre></div><p>Находите строчку<br /></p><div class="codebox"><pre><code>SELINUX=enforcing</code></pre></div><p>Измените ее<br /></p><div class="codebox"><pre><code>SELINUX=disabled</code></pre></div><p>Введите команду:<br /></p><div class="codebox"><pre><code>setenforce 0</code></pre></div><p>Перезапустите демон Apache:<br /></p><div class="codebox"><pre><code>service httpd restart</code></pre></div>]]></content>
			<author>
				<name><![CDATA[AlfaStriker]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15778</uri>
			</author>
			<updated>2013-11-17T06:00:10Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=376454#p376454</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Windows 7 и Linux fedora 19]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=376453#p376453" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>iptables -n -L -v | grep 80
Chain OUTPUT (policy ACCEPT 68070 packets, 12M bytes)
68070   12M OUTPUT_direct  all  --  *      *       0.0.0.0/0            0.0.0.0/0 </code></pre></div><div class="codebox"><pre><code>telnet 192.168.0.101  80
Trying 192.168.0.101...
Connected to 192.168.0.101.
Escape character is &#039;^]&#039;.
Connection closed by foreign host.</code></pre></div><p>Вот так вот показал</p>]]></content>
			<author>
				<name><![CDATA[aleksej208]]></name>
				<uri>https://linuxforum.ru/profile.php?id=32493</uri>
			</author>
			<updated>2013-11-17T05:50:02Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=376453#p376453</id>
		</entry>
</feed>
