<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[IPSec IKEv2 пропадает интернет на клиентской машинe]]></title><description><![CDATA[<p dir="auto">Добрый день,</p>
<p dir="auto">Настроил IPSec IKEv2 VPN по этой инструкции: https://doc.pfsense.org/index.php/IKEv2_with_EAP-MSCHAPv2<br />
Подключаюсь с ОС Windows 7.<br />
При подключении пропадает интернет на клиентской машине.</p>
<p dir="auto">В настройках VPN &gt; IPsec &gt; Mobile Clients &gt; Edit Phase 2<br />
Local Network: LAN subnet</p>
<p dir="auto">Я не хочу чтобы интернет трафик шёл через VPN. Хочу чтобы через VPN была доступна только локальная сеть организации. Это можно реализовать?</p>
]]></description><link>https://forum.netgate.com/topic/113741/ipsec-ikev2-пропадает-интернет-на-клиентской-машинe</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 09:39:49 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/113741.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Mar 2017 14:28:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to IPSec IKEv2 пропадает интернет на клиентской машинe on Tue, 04 Apr 2017 12:33:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/werter">@<bdi>werter</bdi></a>:</p>
<blockquote>
<p dir="auto">Доброе.<br />
https://forum.pfsense.org/index.php?topic=127457.0</p>
<blockquote>
<p dir="auto"><strong>•  Open a PowerShell window, as administrator.<br />
•  (type ‘powershell’ in the task bar search box. When it finds it, right-click on it and select “Run as Administrator).</strong><br />
•  Enter the below command (or edit it somewhere then just copy/paste it), with the following changes:<br />
•  Replace “VPN_NAME” with whatever you want to call this VPN connection on the client’s computer.<br />
•  Replace “firewall.domain.com” with the address of your VPN server. (LAN IP of your PFSense box, or DNS name of it).</p>
<p dir="auto"><strong>Add-VpnConnection</strong> -Name "VPN_NAME" -ServerAddress "firewall.domain.com" –TunnelType IKEv2 -EncryptionLevel Required -AuthenticationMethod EAP -SplitTunneling –AllUserConnection</p>
<p dir="auto">Keep PowerShell open for the next step.</p>
<ol start="3">
<li>Add VPN Routes</li>
</ol>
<p dir="auto">Copy/paste the following into PowerShell, replacing 10.5.0.0/16 with the appropriate remote LAN subnet:</p>
<p dir="auto">Add-VpnConnectionRoute -ConnectionName "VPN_NAME" -DestinationPrefix 10.5.0.0/16 -PassThru</p>
<p dir="auto">That will tell Windows to send anything meant for 10.5.* over the VPN.</p>
</blockquote>
<p dir="auto">Т.е. с пом. gui win создавать vpn не надо. Удаляйте созданное ранее и проделайте выше описанное с пом. powershell.</p>
</blockquote>
<p dir="auto">В Windows 7 вышеуказанные PowerShell команды не срабатывают к сожалению. Нужен другой способ.</p>
<p dir="auto">В настройках VPN подключения есть такая опция: "Отключить добавление маршрута, основанное на классе", эта опция выключена.</p>
<p dir="auto">На сколько я понимаю, это должно работать так: при установке VPN соединения, роутер должен передать список доступных подсетей клиенту и они автоматически добавятся в маршруты. Но этого не происходит.</p>
<p dir="auto">На роутере установлены следующие настройки:<br />
Раздел: VPN / IPsec / Mobile Clients<br />
Provide a virtual IP address to clients (вкл)<br />
Provide a list of accessible networks to clients (вкл)</p>
<p dir="auto">VPN / IPsec / Mobile Clients / Phase 1<br />
Split connections (выключено)</p>
<p dir="auto">VPN / IPsec / Mobile Clients / Phase 2<br />
Mode: Tunnel IPv4<br />
Local Network: LAN subnet<br />
NAT/BINAT translation: none</p>
<p dir="auto">На клиентской стороне такие настройки: (прикрепленное изображение)</p>
<p dir="auto">–-</p>
<p dir="auto">Если изменить настройку на роутере: VPN / IPsec / Mobile Clients / Phase 1 &gt; Split connections (вкл), клиент перестаёт подключаться к VPN, выдаёт ошибку 809.</p>
<p dir="auto"><img src="/public/_imported_attachments_/1/888.png" alt="888.png" class=" img-fluid img-markdown" /><br />
<img src="/public/_imported_attachments_/1/888.png_thumb" alt="888.png_thumb" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.netgate.com/post/691118</link><guid isPermaLink="true">https://forum.netgate.com/post/691118</guid><dc:creator><![CDATA[Xandir]]></dc:creator><pubDate>Tue, 04 Apr 2017 12:33:28 GMT</pubDate></item><item><title><![CDATA[Reply to IPSec IKEv2 пропадает интернет на клиентской машинe on Thu, 30 Mar 2017 15:26:02 GMT]]></title><description><![CDATA[<p dir="auto">Доброе.<br />
https://forum.pfsense.org/index.php?topic=127457.0</p>
<blockquote>
<p dir="auto"><strong>•  Open a PowerShell window, as administrator.<br />
•  (type ‘powershell’ in the task bar search box. When it finds it, right-click on it and select “Run as Administrator).</strong><br />
•  Enter the below command (or edit it somewhere then just copy/paste it), with the following changes:<br />
•  Replace “VPN_NAME” with whatever you want to call this VPN connection on the client’s computer.<br />
•  Replace “firewall.domain.com” with the address of your VPN server. (LAN IP of your PFSense box, or DNS name of it).</p>
<p dir="auto"><strong>Add-VpnConnection</strong> -Name "VPN_NAME" -ServerAddress "firewall.domain.com" –TunnelType IKEv2 -EncryptionLevel Required -AuthenticationMethod EAP -SplitTunneling –AllUserConnection</p>
<p dir="auto">Keep PowerShell open for the next step.</p>
<ol start="3">
<li>Add VPN Routes</li>
</ol>
<p dir="auto">Copy/paste the following into PowerShell, replacing 10.5.0.0/16 with the appropriate remote LAN subnet:</p>
<p dir="auto">Add-VpnConnectionRoute -ConnectionName "VPN_NAME" -DestinationPrefix 10.5.0.0/16 -PassThru</p>
<p dir="auto">That will tell Windows to send anything meant for 10.5.* over the VPN.</p>
</blockquote>
<p dir="auto">Т.е. с пом. gui win создавать vpn не надо. Удаляйте созданное ранее и проделайте выше описанное с пом. powershell.</p>
]]></description><link>https://forum.netgate.com/post/690121</link><guid isPermaLink="true">https://forum.netgate.com/post/690121</guid><dc:creator><![CDATA[werter]]></dc:creator><pubDate>Thu, 30 Mar 2017 15:26:02 GMT</pubDate></item><item><title><![CDATA[Reply to IPSec IKEv2 пропадает интернет на клиентской машинe on Thu, 30 Mar 2017 15:21:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pigbrother">@<bdi>pigbrother</bdi></a>:</p>
<blockquote>
<p dir="auto"><em>В Windows 7 есть PowerShell но эти команды в нём не срабатывают:<br />
Set-VpnConnection -Name "myVPN" -SplitTunneling $True</em><br />
"myVPN" - на имя своего соединения меняли?</p>
<p dir="auto"><em>Может быть кто-то знает, как заставить VPN на Windows 7 машине работать без костылей?</em><br />
Я отказался от использования встроенных VPN. Что ни ОС\конкретный компьютер - потенциальные проблемы.</p>
</blockquote>
<p dir="auto">Да, конечно менял. PowerShell ругается на команду Set-VpnConnection говорит что не знает такую.</p>
]]></description><link>https://forum.netgate.com/post/690118</link><guid isPermaLink="true">https://forum.netgate.com/post/690118</guid><dc:creator><![CDATA[Xandir]]></dc:creator><pubDate>Thu, 30 Mar 2017 15:21:12 GMT</pubDate></item><item><title><![CDATA[Reply to IPSec IKEv2 пропадает интернет на клиентской машинe on Wed, 29 Mar 2017 17:24:20 GMT]]></title><description><![CDATA[<p dir="auto"><em>В Windows 7 есть PowerShell но эти команды в нём не срабатывают:<br />
Set-VpnConnection -Name "myVPN" -SplitTunneling $True</em><br />
"myVPN" - на имя своего соединения меняли?</p>
<p dir="auto"><em>Может быть кто-то знает, как заставить VPN на Windows 7 машине работать без костылей?</em><br />
Я отказался от использования встроенных VPN. Что ни ОС\конкретный компьютер - потенциальные проблемы.</p>
]]></description><link>https://forum.netgate.com/post/689942</link><guid isPermaLink="true">https://forum.netgate.com/post/689942</guid><dc:creator><![CDATA[pigbrother]]></dc:creator><pubDate>Wed, 29 Mar 2017 17:24:20 GMT</pubDate></item><item><title><![CDATA[Reply to IPSec IKEv2 пропадает интернет на клиентской машинe on Wed, 29 Mar 2017 17:18:26 GMT]]></title><description><![CDATA[<p dir="auto">Да, есть такая настройка, но если её отключить то удалённая подсеть, в которую я подключаюсь, становится недоступной. Наверное потому что в таблице маршрутизации клиентского ПК ничего неизвестно про эту подсеть.</p>
<p dir="auto">Если маршрут добавить вручную, то всё начинает работать:<br />
route ADD 10.1.1.0 MASK 255.255.255.0 192.168.32.255</p>
<p dir="auto">В Windows 7 есть PowerShell но эти команды в нём не срабатывают:<br />
Set-VpnConnection -Name "myVPN" -SplitTunneling $True</p>
<p dir="auto">Может быть кто-то знает, как заставить VPN на Windows 7 машине работать без костылей?</p>
]]></description><link>https://forum.netgate.com/post/689941</link><guid isPermaLink="true">https://forum.netgate.com/post/689941</guid><dc:creator><![CDATA[Xandir]]></dc:creator><pubDate>Wed, 29 Mar 2017 17:18:26 GMT</pubDate></item><item><title><![CDATA[Reply to IPSec IKEv2 пропадает интернет на клиентской машинe on Wed, 29 Mar 2017 17:18:40 GMT]]></title><description><![CDATA[<p dir="auto">В Windows 7 нет такой настройки?<br />
<img src="http://2.bp.blogspot.com/-D_HOdTgeowE/UghBkFkTZwI/AAAAAAAAAaE/4GbhfKoS2Bk/s1600/7.jpg" alt="" class=" img-fluid img-markdown" /><br />
Если вдруг нет - попробуйте через powershell:<br />
Set-VpnConnection -Name "myVPN" -SplitTunneling $True<br />
https://superuser.com/questions/954801/how-can-i-disable-use-default-gateway-for-remote-networks-setting-in-windows-1<br />
или<br />
go to here: %appdata%\Microsoft\Network\Connections\Pbk\rasphone.pbk open with text editor and for every Vpn connection listed change IpPrioritizeRemote=1 – change this to 0 to disable</p>
]]></description><link>https://forum.netgate.com/post/689930</link><guid isPermaLink="true">https://forum.netgate.com/post/689930</guid><dc:creator><![CDATA[pigbrother]]></dc:creator><pubDate>Wed, 29 Mar 2017 17:18:40 GMT</pubDate></item></channel></rss>