<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; VPN сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=21016&amp;type=atom" />
	<updated>2012-03-17T07:55:02Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=21016</id>
		<entry>
			<title type="html"><![CDATA[Re: VPN сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=260476#p260476" />
			<content type="html"><![CDATA[<p>Угу туплю чуток.</p>]]></content>
			<author>
				<name><![CDATA[Kettler]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11719</uri>
			</author>
			<updated>2012-03-17T07:55:02Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=260476#p260476</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VPN сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=260475#p260475" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2012-03-17T07:49:50Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=260475#p260475</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VPN сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=260474#p260474" />
			<content type="html"><![CDATA[<p>поставь ток в автозагрузку.</p>]]></content>
			<author>
				<name><![CDATA[Kettler]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11719</uri>
			</author>
			<updated>2012-03-17T07:47:39Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=260474#p260474</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VPN сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=260471#p260471" />
			<content type="html"><![CDATA[<p>Большое спс. Помогло.</p>]]></content>
			<author>
				<name><![CDATA[_MSga]]></name>
				<uri>https://linuxforum.ru/profile.php?id=22555</uri>
			</author>
			<updated>2012-03-17T07:42:36Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=260471#p260471</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VPN сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=260468#p260468" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Kettler]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11719</uri>
			</author>
			<updated>2012-03-17T07:40:18Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=260468#p260468</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VPN сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=260466#p260466" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[_MSga]]></name>
				<uri>https://linuxforum.ru/profile.php?id=22555</uri>
			</author>
			<updated>2012-03-17T07:31:52Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=260466#p260466</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VPN сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=260461#p260461" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Kettler]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11719</uri>
			</author>
			<updated>2012-03-17T07:19:37Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=260461#p260461</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VPN сервер (pptpd). Доступ к клиентам из локальной сети.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=260455#p260455" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[_MSga]]></name>
				<uri>https://linuxforum.ru/profile.php?id=22555</uri>
			</author>
			<updated>2012-03-17T06:41:41Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=260455#p260455</id>
		</entry>
</feed>
