<?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 сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=21016</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=21016&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «VPN сервер (pptpd). Доступ к клиентам из локальной сети.».]]></description>
		<lastBuildDate>Sat, 17 Mar 2012 07:55:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: VPN сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=260476#p260476</link>
			<description><![CDATA[<p>Угу туплю чуток.</p>]]></description>
			<author><![CDATA[null@example.com (Kettler)]]></author>
			<pubDate>Sat, 17 Mar 2012 07:55:02 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=260476#p260476</guid>
		</item>
		<item>
			<title><![CDATA[Re: VPN сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=260475#p260475</link>
			<description><![CDATA[<div class="quotebox"><cite>Kettler пишет:</cite><blockquote><p>поставь ток в автозагрузку.</p></blockquote></div><p>Правильнее в <em>/etc/sysctl.conf</em><br /></p><div class="codebox"><pre><code>net.ipv4.ip_forward = 1</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Lupo Alberto)]]></author>
			<pubDate>Sat, 17 Mar 2012 07:49:50 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=260475#p260475</guid>
		</item>
		<item>
			<title><![CDATA[Re: VPN сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=260474#p260474</link>
			<description><![CDATA[<p>поставь ток в автозагрузку.</p>]]></description>
			<author><![CDATA[null@example.com (Kettler)]]></author>
			<pubDate>Sat, 17 Mar 2012 07:47:39 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=260474#p260474</guid>
		</item>
		<item>
			<title><![CDATA[Re: VPN сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=260471#p260471</link>
			<description><![CDATA[<p>Большое спс. Помогло.</p>]]></description>
			<author><![CDATA[null@example.com (_MSga)]]></author>
			<pubDate>Sat, 17 Mar 2012 07:42:36 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=260471#p260471</guid>
		</item>
		<item>
			<title><![CDATA[Re: VPN сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=260468#p260468</link>
			<description><![CDATA[<p>Вам поможет<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">echo &quot;1&quot; &gt; /proc/sys/net/ipv4/ip_forward</div></p>]]></description>
			<author><![CDATA[null@example.com (Kettler)]]></author>
			<pubDate>Sat, 17 Mar 2012 07:40:18 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=260468#p260468</guid>
		</item>
		<item>
			<title><![CDATA[Re: VPN сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=260466#p260466</link>
			<description><![CDATA[<p><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">cat /proc/sys/net/ipv4/ip_forward<br />0</div></p><p><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 -L -n -v<br />Chain INPUT (policy ACCEPT 0 packets, 0 bytes)<br /> pkts bytes target&nbsp; &nbsp; &nbsp;prot opt in&nbsp; &nbsp; &nbsp;out&nbsp; &nbsp; &nbsp;source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;destination&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p><p>Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)<br /> pkts bytes target&nbsp; &nbsp; &nbsp;prot opt in&nbsp; &nbsp; &nbsp;out&nbsp; &nbsp; &nbsp;source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;destination&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</p><p>Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)<br /> pkts bytes target&nbsp; &nbsp; &nbsp;prot opt in&nbsp; &nbsp; &nbsp;out&nbsp; &nbsp; &nbsp;source&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;destination&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /></div></p>]]></description>
			<author><![CDATA[null@example.com (_MSga)]]></author>
			<pubDate>Sat, 17 Mar 2012 07:31:52 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=260466#p260466</guid>
		</item>
		<item>
			<title><![CDATA[Re: VPN сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=260461#p260461</link>
			<description><![CDATA[<p>Щас проверимка) особо не замарачивался.<br />На время теста</p><p><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 -P FORWARD ACCEPT</div></p><br /><p><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">xxx@router:~$ ifconfig ppp1<br />ppp1&nbsp; &nbsp; &nbsp; Link encap:Протокол PPP (Point-to-Point Protocol)&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inet addr:192.168.20.1&nbsp; P-t-P:192.168.20.235&nbsp; Mask:255.255.255.255<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UP POINTOPOINT RUNNING NOARP MULTICAST&nbsp; MTU:1460&nbsp; Metric:1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RX packets:7255962 errors:0 dropped:0 overruns:0 frame:0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TX packets:10937277 errors:0 dropped:0 overruns:0 carrier:0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; collisions:0 txqueuelen:3 <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RX bytes:745185991 (745.1 MB)&nbsp; TX bytes:230818794 (230.8 MB)<br /></div></p><p>Щас сюда допишу с другого компа)</p><p><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">Адаптер беспроводной локальной сети Беспроводное сетевое соединение:</p><p>&nbsp; &nbsp;DNS-суффикс подключения . . . . . : home.local<br />&nbsp; &nbsp;IPv4-адрес. . . . . . . . . . . . : 172.19.0.10<br />&nbsp; &nbsp;Маска подсети . . . . . . . . . . : 255.255.255.0<br />&nbsp; &nbsp;Основной шлюз. . . . . . . . . : 172.19.0.1</div></p><p><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">Обмен пакетами с 192.168.20.1 по с 32 байтами данных:<br />Ответ от 192.168.20.1: число байт=32 время&lt;1мс TTL=64<br />Ответ от 192.168.20.1: число байт=32 время=7мс TTL=64</div></p><p><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">Обмен пакетами с 192.168.20.235 по с 32 байтами данных:<br />Ответ от 192.168.20.235: число байт=32 время=10мс TTL=63<br />Ответ от 192.168.20.235: число байт=32 время=12мс TTL=63</div></p><p>Делаем вывод у вас косяк)</p><p>вывод команд сюда</p><p><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">cat /proc/sys/net/ipv4/ip_forward</div></p><p><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 -L -n -v</div></p>]]></description>
			<author><![CDATA[null@example.com (Kettler)]]></author>
			<pubDate>Sat, 17 Mar 2012 07:19:37 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=260461#p260461</guid>
		</item>
		<item>
			<title><![CDATA[VPN сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=260455#p260455</link>
			<description><![CDATA[<p>Есть локальная сеть <strong>192.168.1.0</strong>. В ней сервер на Debian c адресом <strong>192.168.1.100</strong>. Интернет идет через dsl-модем <strong>192.168.1.1</strong>.<br />pptpd настроил по инструкции <a href="http://openkazan.info/VPN-PPTPD-Ubuntu-Linux">http://openkazan.info/VPN-PPTPD-Ubuntu-Linux</a><br />Клиенты получают адреса <strong>192.168.2.200-210</strong>.</p><p>Подключение клиентов проходит нормально. Адреса назначаются те которые нужно.<br />Но из локальной сети (<strong>192.168.1.0</strong>) клиентов не видно.</p><p>Пробывал прописать маршрут на клиенте: <strong>route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.100</strong><br />Не помогло.</p><p><strong>pptpd.conf:</strong><br /><em>option /etc/ppp/pptpd-options<br />logwtmp<br />bcrelay eth0</em></p><p><em>localip 192.168.2.1<br />remoteip 192.168.2.200-210,192.168.2.245</em></p><p><strong>pptpd-options:</strong><br /><em>auth<br />name pptpd</em></p><p><em>refuse-pap<br />refuse-chap<br />refuse-mschap</em></p><p><em>require-mschap-v2<br />require-mppe-128</em></p><p><em>nodefaultroute<br />lock<br />nobsdcomp</em></p><p><strong>interface машины из локальной сети:</strong><br /><em>auto lo<br />iface lo inet loopback</em></p><p><em>allow-hotplug eth0<br />iface eth0 inet static<br />&nbsp; &nbsp; address 192.168.1.89<br />&nbsp; &nbsp; netmask 255.255.255.0<br />&nbsp; &nbsp; network 192.168.1.0<br />&nbsp; &nbsp; broadcast 192.168.1.255<br />&nbsp; &nbsp; gateway 192.168.1.1<br />&nbsp; &nbsp; # dns-* options are implemented by the resolvconf package, if installed<br />&nbsp; &nbsp; dns-nameservers 192.168.1.1<br /></em></p>]]></description>
			<author><![CDATA[null@example.com (_MSga)]]></author>
			<pubDate>Sat, 17 Mar 2012 06:41:41 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=260455#p260455</guid>
		</item>
	</channel>
</rss>
