@werter:
Доброе.
https://forum.pfsense.org/index.php?topic=127457.0
• Open a PowerShell window, as administrator.
• (type ‘powershell’ in the task bar search box. When it finds it, right-click on it and select “Run as Administrator).
• Enter the below command (or edit it somewhere then just copy/paste it), with the following changes:
• Replace “VPN_NAME” with whatever you want to call this VPN connection on the client’s computer.
• Replace “firewall.domain.com” with the address of your VPN server. (LAN IP of your PFSense box, or DNS name of it).
Add-VpnConnection -Name "VPN_NAME" -ServerAddress "firewall.domain.com" –TunnelType IKEv2 -EncryptionLevel Required -AuthenticationMethod EAP -SplitTunneling –AllUserConnection
Keep PowerShell open for the next step.
Add VPN Routes
Copy/paste the following into PowerShell, replacing 10.5.0.0/16 with the appropriate remote LAN subnet:
Add-VpnConnectionRoute -ConnectionName "VPN_NAME" -DestinationPrefix 10.5.0.0/16 -PassThru
That will tell Windows to send anything meant for 10.5.* over the VPN.
Т.е. с пом. gui win создавать vpn не надо. Удаляйте созданное ранее и проделайте выше описанное с пом. powershell.
В Windows 7 вышеуказанные PowerShell команды не срабатывают к сожалению. Нужен другой способ.
В настройках VPN подключения есть такая опция: "Отключить добавление маршрута, основанное на классе", эта опция выключена.
На сколько я понимаю, это должно работать так: при установке VPN соединения, роутер должен передать список доступных подсетей клиенту и они автоматически добавятся в маршруты. Но этого не происходит.
На роутере установлены следующие настройки:
Раздел: VPN / IPsec / Mobile Clients
Provide a virtual IP address to clients (вкл)
Provide a list of accessible networks to clients (вкл)
VPN / IPsec / Mobile Clients / Phase 1
Split connections (выключено)
VPN / IPsec / Mobile Clients / Phase 2
Mode: Tunnel IPv4
Local Network: LAN subnet
NAT/BINAT translation: none
На клиентской стороне такие настройки: (прикрепленное изображение)
–-
Если изменить настройку на роутере: VPN / IPsec / Mobile Clients / Phase 1 > Split connections (вкл), клиент перестаёт подключаться к VPN, выдаёт ошибку 809.
[image: 888.png]
[image: 888.png_thumb]