<?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; Не пингуется VPN клиент]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=24568</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=24568&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Не пингуется VPN клиент».]]></description>
		<lastBuildDate>Thu, 04 Oct 2012 20:08:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Не пингуется VPN клиент]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=301649#p301649</link>
			<description><![CDATA[<div class="quotebox"><cite>XliN пишет:</cite><blockquote><p>Спасибо мужики. Все заработало после того как прописал маршрут.</p></blockquote></div><p><img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p>]]></description>
			<author><![CDATA[null@example.com (Kettler)]]></author>
			<pubDate>Thu, 04 Oct 2012 20:08:32 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=301649#p301649</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не пингуется VPN клиент]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=301648#p301648</link>
			<description><![CDATA[<div class="quotebox"><cite>XliN пишет:</cite><blockquote><p>Спасибо мужики. Пойду попробую. Если что отпишусь.</p></blockquote></div><p>Давай пока ещё тут проверим всё.</p>]]></description>
			<author><![CDATA[null@example.com (Kettler)]]></author>
			<pubDate>Thu, 04 Oct 2012 20:01:17 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=301648#p301648</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не пингуется VPN клиент]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=301647#p301647</link>
			<description><![CDATA[<p>Спасибо мужики. Все заработало после того как прописал маршрут.</p>]]></description>
			<author><![CDATA[null@example.com (XliN)]]></author>
			<pubDate>Thu, 04 Oct 2012 19:59:36 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=301647#p301647</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не пингуется VPN клиент]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=301646#p301646</link>
			<description><![CDATA[<div class="quotebox"><cite>zenon пишет:</cite><blockquote><p>Я как-то в icmp_echo_ignore_all загнал случайно единицу, сутки голову ломал... <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /><br /></p><div class="codebox"><pre><code>echo &quot;0&quot; &gt; /proc/sys/net/ipv4/icmp_echo_ignore_all</code></pre></div></blockquote></div><p>Накило на мысль ещё <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /><br />Если будешь так же натить трафик<br /></p><div class="codebox"><pre><code>-A POSTROUTING -s 192.168.80.0/24 -o eth0 -j MASQUERADE
-A POSTROUTING -s 192.168.80.0/24 -o eth0 -j MASQUERADE</code></pre></div><p> тогда поставь на серверах<br /></p><div class="codebox"><pre><code>rp_filter = 0</code></pre></div><p>Но при таком<br /><a href="http://linuxforum.ru/viewtopic.php?pid=301629#p301629">Не пингуется VPN клиент</a><br />Будешь видеть реальные айпи</p>]]></description>
			<author><![CDATA[null@example.com (Kettler)]]></author>
			<pubDate>Thu, 04 Oct 2012 19:49:32 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=301646#p301646</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не пингуется VPN клиент]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=301644#p301644</link>
			<description><![CDATA[<p>Я как-то в icmp_echo_ignore_all загнал случайно единицу, сутки голову ломал... <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /><br /></p><div class="codebox"><pre><code>echo &quot;0&quot; &gt; /proc/sys/net/ipv4/icmp_echo_ignore_all</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (zenon)]]></author>
			<pubDate>Thu, 04 Oct 2012 19:44:06 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=301644#p301644</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не пингуется VPN клиент]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=301629#p301629</link>
			<description><![CDATA[<p>Лишнее<br /></p><div class="codebox"><pre><code>-A POSTROUTING -s 192.168.80.0/24 -o eth0 -j MASQUERADE
-A POSTROUTING -s 192.168.80.0/24 -o eth0 -j MASQUERADE</code></pre></div><p>А vpn сервер на основном сервере где и все vlan?<br />По ходу что нет. Раз нет то где все vlan (на шлюзе надо прописать маршрут)<br />route add -net 192.168.80.0/24 gw ip<br />ip - ип адрес vpn сервера в данном случае 192.168.3.223.<br /></p><div class="codebox"><pre><code>route add -net 192.168.80.0/24 gw 192.168.3.223</code></pre></div><p>Может прокатит на скок помню схему твоей сети.</p>]]></description>
			<author><![CDATA[null@example.com (Kettler)]]></author>
			<pubDate>Thu, 04 Oct 2012 17:20:03 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=301629#p301629</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не пингуется VPN клиент]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=301628#p301628</link>
			<description><![CDATA[<p>Мне кажется уже решали <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /><br /><a href="http://linuxforum.ru/viewtopic.php?pid=260468#p260468">VPN сервер (pptpd). Доступ к клиентам из локальной сети.</a></p>]]></description>
			<author><![CDATA[null@example.com (Kettler)]]></author>
			<pubDate>Thu, 04 Oct 2012 17:18:27 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=301628#p301628</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не пингуется VPN клиент]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=301625#p301625</link>
			<description><![CDATA[<p>А форвард пакетов в ядре включён<br /></p><div class="codebox"><pre><code>echo 1 &gt; /proc/sys/net/ipv4/ip_forward</code></pre></div><p>И что там с маршрутами???</p>]]></description>
			<author><![CDATA[null@example.com (kisil)]]></author>
			<pubDate>Thu, 04 Oct 2012 17:09:17 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=301625#p301625</guid>
		</item>
		<item>
			<title><![CDATA[Не пингуется VPN клиент]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=301611#p301611</link>
			<description><![CDATA[<p>Ситуация такая. Есть pptp сервер к которому подключаются клиенты. Сделано для бухгалтеров. Что бы могли не сидеть до ночи на работе, а могли поработать из дома. Получают IP адреса они из сети 192.168.80.0/24. Шлюз для них 192.168.80.1<br />Все замечательно. Клиент получает доступ ко всем вланам. Проблем в этом нет. <br />Проблема в том что с другого компьютера я не могу пропинговать ВПН клиента. Ни шлюза ВПН 192.168.80.1, ни айпи клиента.<br />Помогите написать правило, а то я что то туплю.<br />Настройки VPN сервера<br /></p><div class="codebox"><pre><code>eth0      Link encap:Ethernet  HWaddr B2:FD:72:19:0C:02
          inet addr:192.168.3.223  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::b0fd:72ff:fe19:c02/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15423515 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4651003 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2635832952 (2.4 GiB)  TX bytes:1686601972 (1.5 GiB)
          Interrupt:17

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:45879 errors:0 dropped:0 overruns:0 frame:0
          TX packets:45879 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4982476 (4.7 MiB)  TX bytes:4982476 (4.7 MiB)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:192.168.80.1  P-t-P:192.168.80.55  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1468  Metric:1
          RX packets:15222 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12267 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:1475754 (1.4 MiB)  TX bytes:5284940 (5.0 MiB)</code></pre></div><p>ppp0 - это как раз клиент. В данном случаи это я подключился.<br />Далее настройки iptables<br /></p><div class="codebox"><pre><code># Generated by iptables-save v1.4.7 on Sat Oct 29 19:03:52 2011
*filter
:INPUT ACCEPT [4:596]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [298:42376]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 1723 -j ACCEPT
-A INPUT -p gre -j ACCEPT
-A FORWARD -d 192.168.80.0/24 -i eth0 -j ACCEPT
-A FORWARD -s 192.168.80.0/24 -o eth0 -j ACCEPT
COMMIT
# Completed on Sat Oct 29 19:03:52 2011
# Generated by iptables-save v1.4.7 on Sat Oct 29 19:03:52 2011
*nat
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A POSTROUTING -s 192.168.80.0/24 -o eth0 -j MASQUERADE
-A POSTROUTING -s 192.168.80.0/24 -o eth0 -j MASQUERADE
COMMIT
# Completed on Sat Oct 29 19:03:52 2011
# Generated by iptables-save v1.4.7 on Sat Oct 29 19:03:52 2011
*mangle
:PREROUTING ACCEPT [469:37950]
:INPUT ACCEPT [464:37346]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [298:42376]
:POSTROUTING ACCEPT [298:42376]
COMMIT
# Completed on Sat Oct 29 19:03:52 2011</code></pre></div><p>Цепочки пока все открыты, что бы не отвалиться от удаленки.</p>]]></description>
			<author><![CDATA[null@example.com (XliN)]]></author>
			<pubDate>Thu, 04 Oct 2012 15:51:53 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=301611#p301611</guid>
		</item>
	</channel>
</rss>
