6. Instructions and Troubleshooting Instructions for Creating VPN Connections Instructions for Creating VPN connection in Ubuntu Before setting up a VPN connection, in the user tree in the desired user’s card, check the box Allow remote access via VPN. To do this, go to Users -> User & Group: PPTP Protocol Before creating a connection in Ubuntu, go to SafeUTM, Users -> VPN connections, and check the box PPTP Connection: Creating a connection in Ubuntu 1. Go to Settings -> Networks and in the VPN line, click (+): 2. In the connection creation window, select Point-to-Point Tunnel Protocol (PPTP): 3. In the Identification section fill in the following fields: Name – the connection name. Gateway – the domain name or IP address of the UTM interface. Username – the name of the user allowed to connect via VPN. Password – the user's password. In the right part of the field, select the storage option for the VPN connection password. NT domain – leave the field empty. We recommend that you click Advanced and check the following: Allow the following authentication methods – check the item Use MPPE encryption – in the Encryption line, select 128-bit (the most protected). Use BSD compression for data – using the BSD-compress algorithm. Use Deflate compression for data – using Deflate algorithm. Use TCP Header Compression – using Van Jacobson's TCP/IP header compression method. 4. Click OK and Add.5. Set the switch of the created VPN connection to the Enabled position: IKEv2/IPsec Protocol Before creating a connection in Ubuntu, configure SafeUTM: 1. Go to Users -> VPN connections.2. Check the box IKEv2/IPsec Connection and fill in the Domain fields: 3. Download the root certificate from Services -> TLS Certificates: The root certificate will be required to configure the connection of the user's workstation if the root certificate was not obtained via Let’s Encrypt. If necessary, transfer the certificate file to the workstation. If a certificate issued by Let's Encrypt is used for a VPN connection, then installing a root certificate on the device is not required. Creating a connection in Ubuntu 1. Open the terminal with the keyboard shortcut Ctrl+Alt+F1 and run the command: sudo apt install -y network-manager-strongswan libcharon-extra-plugins libstrongswan-extra-plugins 2. After the installation is complete, restart the computer: sudo reboot3. Go to Settings -> Networks  and in the VPN line, click (+): 4. In the window that opens, select IPsec\IKEv2 (strongswan): 5. In Identification fill in the following fields: Name – connection name. Address – enter the domain specified in Users -> Authorization -> VPN Connection -> IKEv2/IPsec Connection. Certificate – select the previously saved root certificate (if it was not issued by Let's Encrypt). Authentication – we recommend choosing EAP.Username –  the name of the user allowed to connect via VPN. Password – the user's password. In the right part of the field, select the storage option for the VPN connection password. Check the box Request an inner IP address and click Add: 6. Set the switch of the created VPN connection to the Enabled position. SSTP Protocol Before creating a connection in Ubuntu, configure SafeUTM: 1. Go to Users -> VPN connections.2. Check the box SSTP Connection and fill in Domain and Port fields: Creating a connection in Ubuntu 1. Open the terminal with the keyboard shortcut Ctrl+Alt+F1 and run two commands: sudo apt-add-repository ppa:eivnaes/network-manager-sstp sudo apt install -y network-manager-sstp sstp-client 2. After the installation is complete, restart the computer: sudo reboot3. Having installed the packages, go to Settings -> Networks, and in the VPN line, click (+): 4. In the window that opens, select Point-to-Point Tunnel Protocol (SSTP): 5. In Identification fill in the following fields: Name – connection name. Gateway – specify in the format domain:[port selected on UTM]. Username – the name of the user allowed to connect via VPN. Password – the user's password. In the right part of the field, select the storage option for the VPN connection password. NT domain – leave the field empty. We recommend that you click Advanced and check the following: Allow the following authentication methods – check the item Use MPPE encryption – in the Encryption line, select 128-bit (the most protected). Use BSD compression for data – using the BSD-compress algorithm. Use Deflate compression for data – using Deflate algorithm. Use TCP Header Compression – using Van Jacobson's TCP/IP header compression method. 6. Click Add and set the switch of the created VPN connection to the Enabled position: L2TP/IPsec Protocol Important: L2TP IPsec clients behind the same NAT may experience connectivity issues if there is more than one. We recommend using IKEv2 IPSec instead of L2TP IPsec. Before creating a connection, configure SafeUTM: 1. Go to Users -> VPN connections.2. Check the box L2TP/IPsec Connection and copy the PSK key: Creating a connection in Ubuntu 1. Connect the repository that contains the necessary packages to create an L2TP VPN connection, and then update the information about the repositories. To do this, run the following commands: sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp sudo apt update 2. Install the add-on to the standard NetworkManager using two packages: sudo apt install -y network-manager-l2tp network-manager-l2tp-gnome3. After the installation is complete, restart the computer: sudo reboot4. Having installed the packages, go to Settings -> Networks and in the VPN line, click (+): 5. In the VPN connection creation window, select Layer 2 Tunneling Protocol (L2TP): 6 . In the tab Identification fill in the following fields: Name – connection name. Gateway – the domain name or IP address of the UTM interface. Type – user authentication by a password. Username – the name of the user allowed to connect via VPN. Password – the user's password. In the right part of the field, select the storage option for the VPN connection password. NT domain – leave the field empty. 7. Go to IPsec settings and enable IPsec tunnel to L2TP host to activate the ability to configure other parameters: Type: Pre-shared key (PSK) – public key authentication. Pre-shared key - the key that needs to be copied along the path Users -> Authorization -> VPN connection from the field PSK. The section Advanced is optional. Having finished configuring L2TP IPsec Options, click OK. 8. If necessary, go to PPR settings and configure Authentication, Encryption and Compression, and Other: After setting up PPR parameters click OK and Apply. 9. Set the switch of the created VPN connection to the Enabled position: Automatic Connection Creation Before configuring a VPN connection, in the user tree, open the card of the required user and set the Allow remote access via VPN flag. To do this, go to the Users -> User & Group section: L2TP/IPsec Protocol Important: L2TP IPsec clients behind the same NAT may experience connectivity issues if there is more than one. Instructions can help solve the problem. We recommend using IKEv2 IPSec instead of L2TP IPsec. You can run the following PowerShell script to automatically create a connection on users' computers running Windows 8.1 and 10. To do this, download the ready-made scripts for connecting your server from Users -> VPN connections. The connection will be created with the following parameters: L2TP/IPsec protocol using a PSK key. The parameter Use the primary gateway in the remote network is disabled.LANs of the same class that was obtained for a VPN connection by default in Windows 7 and 10 will be accessed via a VPN connection, so you do not need to create additional routes (unless you use different network classes in the office LAN). Create a file named safe_utm_l2tp.ps1 (in Notepad or Windows PowerShell ISE Editor) and copy the following text into it: param([switch]$Elevated) $currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent()) if (!$currentUser.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)) { if (!$elevated) { Start-Process ` powershell.exe ` -Verb RunAs ` -ArgumentList ('-noprofile -noexit -file "{0}" -elevated' -f ( $myinvocation.MyCommand.Definition )) } exit } Enable-NetFirewallRule -Group "@FirewallAPI.dll,-28502" Add-VpnConnection ` -Force ` -Name "SafeUTM L2TP VPN" ` -TunnelType L2TP ` -ServerAddress my.domain.com ` -L2tpPsk "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ` -EncryptionLevel "Required" ` -AuthenticationMethod MSChapV2 ` -SplitTunneling $False ` -DnsSuffix activedirectory.domain ` -RememberCredential Change the necessary parameters in it to match your settings: SafeUTM L2TP VPN – the connection name in the system (can be arbitrary). domain.com – the domain or IP address of the main external interface of SafeUTM. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX – your server's PSK key. domain – your Active Directory domain (if there is one if not, you need to delete this line from the script). You can run the script on the user's computer from the file context menu "Run with PowerShell". Click OK in the elevation dialog (the rights are required to allow access to shared files and printers). After that, a connection will be created in the system and shared access to files and printers for all networks will be enabled (otherwise access to file resources in the local network may not be possible). The user must enter their username/password at the first authorization. Possible errors when executing the script If the error "Script execution is disabled on this system" appears, you need to enable script execution by running the following command in PowerShell: Set-ExecutionPolicy Unrestricted SSTP Protocol You can run the following PowerShell script to automatically create a connection on users' computers running Windows 8.1 and 10. To do this, download the ready-made script from Users -> VPN connections. The connection will be created with the following parameters: SSTP protocol using the PSK key. The parameter Use the primary gateway in the remote network is disabled.LANs of the same class that was obtained for VPN connections by default in Windows 7 and 10 will be accessed via a VPN connection, so you do not need to create additional routes (unless you use different network classes in the office LAN). Create a text file named safe_utm_sstp.ps1 (in Notepad or Windows PowerShell ISE editor) and copy the following text there: param([switch]$Elevated) $currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent()) if (!$currentUser.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)) { if (!$elevated) { Start-Process ` powershell.exe ` -Verb RunAs ` -ArgumentList ('-noprofile -noexit -file "{0}" -elevated' -f ( $myinvocation.MyCommand.Definition )) } exit } Enable-NetFirewallRule -Group "@FirewallAPI.dll,-28502" Add-VpnConnection ` -Force ` -Name "SafeUTM SSTP VPN" ` -TunnelType SSTP ` -ServerAddress my.domain.com:4443 ` -EncryptionLevel "Required" ` -AuthenticationMethod MSChapV2 ` -SplitTunneling $False ` -DnsSuffix activedirectory.domain ` -RememberCredential Change the necessary parameters in it to match your settings: SafeUTM SSTP VPN – the connection name in the system (can be arbitrary). my.domain. com:4443 – SafeUTM external interface domain and the port on which you enabled SSTP. activedirectory.domain – your Active Directory domain (if there is no domain, you need to delete this line from the script). You can run the script on the user's computer from the file context menu "Run with PowerShell". Click OK in the elevation dialog (the rights are required to allow access to shared files and printers). After that, a connection will be created in the system and shared access to files and printers for all networks will be enabled (otherwise access to file resources in the local network may not be possible). The user must enter their username/password at the first authorization. Possible errors when executing the script If the error "Script execution is disabled on this system" appears, you need to enable script execution by running the following command in PowerShell: Set-ExecutionPolicy Unrestricted IPsec IKEv2 Protocol You can run a PowerShell script to automatically create a connection on users' computers running Windows 8.1 and 10. To do this, download the ready-made script from Users -> VPN connections. The connection using the script will be created with the following parameters: IKEv2/IPsec Protocol The parameter Use the primary gateway in the remote network is disabled. LANs of the same class that was obtained for the default VPN connection in Windows 7 and 10 will be accessed via a VPN connection, so you do not need to create additional routes (unless you use different network classes in the office LAN). Create a text file named safe_utm_ikev2.ps1 (in Notepad or Windows PowerShell ISE editor) and copy the following text there: param([switch]$Elevated) $currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent()) if (!$currentUser.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)) { if (!$elevated) { Start-Process \` powershell.exe ` -Verb RunAs ` -ArgumentList ('-noprofile -noexit -file "{0}" -elevated' -f ( $myinvocation.MyCommand.Definition )) } exit } Enable-NetFirewallRule -Group "@FirewallAPI.dll,-28502" Add-VpnConnection ` -Force ` -Name "SafeUTM IKEv2 VPN" ` -TunnelType IKEv2 ` -ServerAddress my.domain.com ` -EncryptionLevel "Required" ` -AuthenticationMethod EAP ` -SplitTunneling $False ` -DnsSuffix activedirectory.domain ` -RememberCredential Change the necessary parameters in it to match your settings: SafeUTM IKEv2 VPN – the connection name in the system (can be arbitrary). my.domain.com – the domain of SafeUTM external interface (A-record for the domain must refer to the IP address of SafeUTM external interface). activedirectory.domain – your Active Directory domain (if there is one if not, you need to delete this line from the script). You can run the script on the user's computer from the file context menu "Run with PowerShell". Click OK in the elevation dialog (the rights are required to allow access to shared files and printers). After that, a connection will be created in the system, and file and printer sharing will be enabled for all networks (otherwise access to shared folders in the local network will not be possible). During the first authorization, it is necessary to enter the username/password. Possible errors when executing the script If the error "Script execution is disabled on this system" appears, you need to enable script execution by running the following command in PowerShell: Set-ExecutionPolicy Unrestricted VPN connection errors If a VPN connection using IPsec protocols in Windows is automatically terminated after 7 hours and 45 minutes and a "Group policy mapping" error or error 13868 occurs when connecting via IKEv2. To restore the connection, the following actions are suitable: 1. Reconnect. In this case, the connection will be restored, but after 7 hours and 45 minutes, it will be automatically disconnected again. If you do not want the connection to be terminated automatically, follow the steps from the following paragraph.2. Make changes to the registry: Open the Registry editor. Follow the path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\Parameters Right-click on the parameter NegotiateDH2048_AES256 and click Change. In the Value line, specify value 1: Click OK. Restart Windows. If there is no parameter named NegotiateDH2048_AES256, then create it. To do this: Right-click on the free registry space in Parameters and select Create -> DWORD: Set the name NegotiateDH2048_AES256. Right-click on the created file and select Change: In the Value line, specify value 1: Click OK. 3. Restart Windows. Creating a VPN connection in Windows 10 Before configuring a VPN connection, in the user tree, open the card of the required user and set the Allow remote access via VPN flag. To do this, go to the Users -> User & Group section: Creating a VPN connection in Windows 10 1. Click on the network connection icon in the system tray, and in the window that appears, select Network & Internet settings: 2. Go to VPN and click Add a VPN connection: 3. Fill in the following fields and click Save: For PPTP Connection name - the name of the connection being created; Server name or address - VPN server address; VPN type - PPTP protocol; Login data type - Username and password; Username - the name of the user who is allowed to connect via VPN; Password - user password. When setting up a VPN connection from the Internet, the following parameters must be specified in the VPN connection properties: Go to Settings of adapter parameters. Right-click on the created connection and select Properties. Go to the tab Security and install: Data encryption – mandatory (disable if there is no encryption). Extensible Authentication Protocol (EAP) – Microsoft Protected Password (EAP MSCHAPV2). For L2TP/IPsec with the shared key Important: L2TP IPsec clients behind the same NAT may experience connectivity issues if there is more than one. Instructions can help solve the problem. We recommend using IKEv2 IPSec instead of L2TP IPsec. Connection name - the name of the connection being created; Server name or address - VPN server address; VPN type - L2TP/IPSec protocol with shared key; Shared key - the value of the PSK string in the Users -> VPN connections -> L2TP/IPSec Connection section; Login data type - Username and password; Username - the name of the user who is allowed to connect via VPN; Password - user password. When setting up a VPN connection from the Internet, you need to specify the following parameters in the VPN connection properties: Go to Adapter Options Settings; Right-click on the created connection and select Properties; Go to the Security tab and set: Data encryption - mandatory (disable if no encryption) Extensible Authentication Protocol (EAP) - Microsoft Secure Password (EAP MSCHAPV2) If you are creating a VPN connection to UTM via port forwarding, we recommend following these steps: Open Registry editor. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent and create a DWORD parameter named AssumeUDPEncapsulationContextOnSendRule and set it to 2. Restart Windows. Possible problems The user's username or password is incorrect. Often, when reconnecting, it is suggested to specify the domain. Try to create alphanumeric passwords, preferably in Latin letters, for your accounts. If there are doubts, temporarily set the username and password as "user" and "123456". In order for the packets to go through the VPN tunnel, you need to make sure that in the settings of this connection the box Use primary gateway in remote network is checked in Configuring adapter settings -> Right-click on the connection -> Properties -> Network -> Properties of the option "Internet Protocol version 4 (TCP/IPv4)" -> Advanced. If it is not necessary to route all packets to this interface, then the route must be written manually. The connection takes place via DNAT, i.e. the external interface of SafeUTM does not have a "white" IP address, and the ports necessary for operation (500 and 4500) are "forwarded" to the external interface of the device located in front of SafeUTM and having a "white" IP address. In this case, the VPN connection will either not be established at all, or there will be periodic interruptions. The solution is to exclude the device before SafeUTM and specify a "white" IP address on the external interface of SafeUTM, to which L2TP/IPsec connections will eventually be made. Otherwise, use the SSTP protocol, because it is easier to publish it using port forwarding. If you reconnect via L2TP in Windows 10 OS, but use the invalid PSK key (by entering it in the advanced parameters [screenshot below]), the connection will still be established successfully. This is due to the features of the OS. Make sure that the local network (or address on the network card) on the remote machine does not overlap with your organization's LAN. If it does, there will be no access to your organization's network (traffic through the routing table will go to the physical interface, not to the VPN). The address needs to be changed. For SSTP Connection name - the name of the connection being created; Server name or address - VPN server address in the format VPN_server_address:port; VPN type - SSTP protocol; Login data type - Username and password; Username - the name of the user who is allowed to connect via VPN; Password - user password. For IKEv2 Connection name - the name of the connection being created; Server name or address - VPN server address; VPN type - IKEv2 protocol; Login data type - Username and password; Username - the name of the user who is allowed to connect via VPN; Password - user password. When setting up a VPN connection from the Internet, you need to specify the following parameters in the VPN connection properties: Go to Adapter Options Settings; Right-click on the created connection and select Properties; Go to the Security tab and set: Data encryption - mandatory (disable if no encryption) Extensible Authentication Protocol (EAP) - Microsoft Secure Password (EAP MSCHAPV2) 4. Activate the connection by left-clicking on the created connection and selecting Connect: 5. To disconnect, click Disconnect. If you need to change the created connection, click Advanced Parameters -> Edit. VPN connection errors If a VPN connection using IPsec protocols in Windows is automatically terminated after 7 hours and 45 minutes and a "Group policy mapping" error or error 13868 occurs when connecting via IKEv2. To restore the connection, the following actions are suitable: 1. Reconnect. In this case, the connection will be restored, but after 7 hours and 45 minutes, it will be automatically disconnected again. If you do not want the connection to be terminated automatically, follow the steps from the following paragraph.2. Make changes to the registry: Open the Registry editor. Follow the path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\Parameters Right-click on the parameter NegotiateDH2048_AES256 and click Change. In the Value line, specify value 1: Click OK. Restart Windows. If there is no parameter named NegotiateDH2048_AES256, then create it. To do this: Right-click on the free registry space in Parameters and select Create -> DWORD Set the name NegotiateDH2048_AES256. Right-click on the created file and select Change In the Value line, specify value 1 Click OK. 3. Restart Windows. If you do not want Internet traffic to go to external resources through SafeUTM after connecting via VPN, then in the properties of the VPN connection Network / Internet Protocol TCP / IP version 4 / Advanced, uncheck Use the default gateway on the remote network. Next, to access computers behind SafeUTM, manually enter routes.Creating a VPN connection in Windows 7 Before configuring a VPN connection, in the user tree, open the card of the required user and set the Allow remote access via VPN flag. To do this, go to the Users -> User & Group section. Creating a VPN connection in Windows 7 L2TP IPsec clients behind the same NAT may experience connectivity issues if there is more than one. Instructions can help solve the problem. We recommend using IKEv2 IPSec instead of L2TP IPsec. Before creating a VPN connection for SSTP, L2TP, and IKEv2 protocols, you must install the root certificate locally on the computer: 1. Download the Let's Encrypt root certificate from https://letsencrypt.org/certs/isrgrootx1.pem;2. Click Start, find and run mmc.exe;3. Click File -> Add or Remove Snap-in: 4. Select Certificates and click Add:5. Set the flag in the computer account line, click Next -> Finish -> OK:6. The Certificates (local computer) item will appear in the Console window: Select it and right-click on Trusted Root Certification Authorities; Next All tasks -> Import In the Certificate Import Wizard window, click Next -> Browse -> Select the one you downloaded in step 1 -> Next -> Next -> Finish. Create a VPN connection 1. Select Network -> Network and Sharing Center: 2. Click Set up a new connection or network: 3. Select Connect to a workplace and Next: 4. Click Use my internet connection (VPN) and fill in the following fields: Internet address - enter the name of the VPN server, for example, vpn.test.com Destination name - write an arbitrary name for the connection Set the checkbox to Do not connect now, only install to connect in the future 5. In the Enter username and password window, fill in the appropriate fields;6. Click Create, then Close;7. In the Network and Sharing Center window, select Change adapter settings in the upper left corner: 8. Right-click on the created connection, and select Properties: 9. In the window that opens, do the following: On the Network tab, uncheck all items except Internet Protocol Version 4 On the Security tab: in the VPN type line, select the desired connection type in the Data encryption line, select mandatory (turn off if there is no encryption) in the Authentication line, select Allow the following protocols leave the flag only in the Microsoft CHAP protocol version 2 (MS-CHAP v2) If necessary, fill in Additional properties 10. Click OK and close the Network and Sharing Center;11. In the tray, click Network. A window will open with the created VPN connection;12. Right-click on the connection and select Connect. VPN connection errors If a VPN connection using IPsec protocols in Windows is automatically terminated after 7 hours and 45 minutes and a "Group policy mapping" error or error 13868 occurs when connecting via IKEv2. To restore the connection, the following actions are suitable: 1. Reconnect. In this case, the connection will be restored, but after 7 hours and 45 minutes, it will be automatically disconnected again. If you do not want the connection to be terminated automatically, follow the steps from the following paragraph.2. Make changes to the registry: Open the Registry editor. Follow the path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\Parameters Right-click on the parameter NegotiateDH2048_AES256 and click Change. In the Value line, specify value 1: Click OK. Restart Windows. If there is no parameter named NegotiateDH2048_AES256, then create it. To do this: Right-click on the free registry space in Parameters and select Create -> DWORD Set the name NegotiateDH2048_AES256. Right-click on the created file and select Change In the Value line, specify value 1 Click OK. 3. Restart Windows. 3. Restart Windows. If you do not want Internet traffic to go to external resources through SafeUTM after connecting via VPN, then in the properties of the VPN connection Network / Internet Protocol TCP / IP version 4 / Advanced, uncheck Use the default gateway on the remote network. Next, to access computers behind SafeUTM, manually enter routes.Instructions for Creating VPN Connection on Mobile Devices Before configuring a VPN connection, in the user tree, open the card of the required user and set the Allow remote access via VPN flag. To do this, go to the Users -> User & Group section: Connecting via the StrongSwan app 1. Click Add a VPN profile: 2 . Fill in the fields: Server – the domain specified in SafeUTM in Users -> VPN connections -> IKEv2/IPsec Connection; VPN type – IKEv2 EAP (Login/Password). Login – the name of the user allowed to connect via VPN. Password – the user's password. 3. Click Save and then click on the created connection. Connecting on Android 1. Go to VPN in Settings -> Connections -> Other settings. If necessary, use the settings search bar.2. Select the connection type and fill in the following fields: For PPTP: Name – connection name. Server address – the address of the VPN server. Username – the name of the user allowed to connect via VPN. Password – the user's password. For IKEv2/IPsec MSCHAPv2: Name – connection name. Server address – the address of the VPN server. IPsec ID – user's login. Server Certificate – received from the server. IPsec CA Certificate – do not check the server. User name – the name of the user allowed to connect via VPN. Password – the user's password. For L2TP/IPsec PSK: Name – connection name. Server address – the address of the VPN server. IPsec shared key – the value of the PSK line in Users -> VPN Connections -> L2TP/IPsec Connection 4. Click Save and activate the connection. Connecting on iOS 1. Go to Settings -> General -> VPN: 2. Click Add VPN configuration: 3. Select Type and fill in the corresponding fields: For PPTP:Starting with iOS 10, Apple has removed support for the PPTP protocol. Description – connection name. Server – VPN server address. Account – the name of the user allowed to connect via VPN. Password – the user's password For L2TP: Description – connection name. Server – VPN server address. Account – the name of the user allowed to connect via VPN. Password – the user's password. The shared key – the value of the PSK line in Users -> VPN connections -> L2TP/IPsec Connection. For IKEv2: Description – connection name. Server – VPN server address. Remote ID – VPN server address. User name – the name of the user allowed to connect via VPN. Password – the user's password. 4. Click Done.5. To connect, slide the Status switch to the right. Instructions for creating a connection in Mac OS Before setting up a VPN connection, in the user tree in the desired users’ card check the box Allow remote access via VPN. To do this, go to Users -> User & Group: PPPoE Protocol To configure SafeUTM, go to Users -> VPN connections and check the box PPPoE Connection: Creating a connection in Mac OS 1. Go to System Preferences -> Network.2. Click Add in the lower left corner (icon +).3. In the window that appears, fill in: Interface – PPPoE Ethernet – for example, Wi-Fi. Service name – connection name. 4. Click Create and fill in: PPPoE service name – the name of the service. Account name – Password – the user's password. 5. Click Connect. IKEv2/IPsec Protocol Configure SafeUTM: 1. Go to Users -> VPN connections.2. Check the box IKEv2/IPsec Connection and fill in the Domain fields: Creating a connection in Mac OS 1. Go to System Preferences -> Network:2. Click Add in the lower left corner (icon +).3. In the window that appears, fill in the fields: Interface – VPN VPN type – IKEv2 Service name – connection name. 4. Click Create.5. Configure the connection parameters: Server address – the address of the VPN server. Remote ID – duplicate the address of the VPN server. 6. Select Authentication settings.7. Enter the identification data and click OK: Username – the name of the user allowed to connect via VPN. Password – the user's password. 8. Click OK.9. Check the box Show VPN status in the menu bar and click Apply. L2TP/IPsec Protocol Important: L2TP IPsec clients behind the same NAT may experience connectivity issues if there is more than one. We recommend using IKEv2 IPSec instead of L2TP IPsec. Before creating a connection, configure SafeUTM: 1. Go to Users -> VPN connections.2. Check L2TP/IPsec Connection and copy the PSK key: Creating a connection in Mac OS 1. Go to System Preferences -> Network:2. Click Add in the lower left corner (icon +).3. In the window that appears, fill in: Interface – VPN type – L2TP via IPsec. Service name – connection name. 4. Click Create.5. Fill in the Server address and Account name: 6. Check the box Show VPN status in the menu bar and select Authentication settings.7. In User authentication fill in Password and in Computer Authentication fill in Shared Key (Shared Secret). 8. Click OK -> Apply. Turn on the VPN connection: In the upper-left part of the screen, click on the VPN connection. Select Connect (service name specified in step 3): Connecting Wi-Fi Keenetic Routers via SSTP You can connect the user's home network to the VPN of the workplace network directly on the Keenetic router. (If you want to connect the office with Keenetic, follow the instructions). All routers based on KeeneticOS 3.x.x are supported. 1. Configure the users in SafeUTM and enable SSTP in Users -> VPN connections.2. Log in to the Keenetic web management interface: http://my.keenetic.net.3. Install the SSTP client system component in the System components options menu. For more information about the settings, see Keenetic documentation. 4. Create a connection: go to Internet -> Other Connections and click Add connection. Don't check the box Use it to access the Internet.Enter the connection name, SSTP protocol, server address (be sure to specify the port in the address separated by a colon), username, and password. 5. In Network Rules -> Routes add routes to your workplace network.For example, if the office network is 10.0.0.0/8, add the following route. Choose the VPN connection you created as Interface and check the box Add automatically so that the route is valid only when the VPN connection is active. 6. Configure DNS for your local domain (for example, Active Directory) so that you can access resources (files and other servers) by DNS names. In Network Rules -> Internet Filter -> DNS Servers specify the DNS server of your domain controller and the domain name. The setup is finished. 7. Use the ping utility in the command line to check communication and routing. nslookup - to check the local names resolution of the working network. If the VPN works, but there is no connection to some resources (for example, file or RDP), use the instructions to diagnose problems.Access to Remote Networks via Router on LAN What to Do if Your IP is Blacklisted by DNSBL How to Restore Access to SafeUTM How to Restore to Previous Version after Updating SafeUTM Choosing Hardware Platform for SafeUTM Support of Outdated Encryption Algorithms Configuring Proxifier for Direct Connections to Proxy Server Blocking Popular Resources Transferring Data and Settings to Another Server Troubleshooting Error ERR_CONNECTION_TIMED_OUT When Opening Site or Site Does Not Open Step 1. Check if the site opens in Allow Internet to all mode: Click on the technical support icon in the upper right part of the window. Slide Allow Internet to everyone to the Enabled position: Open the website. If the site does not open, check if the site opens on another device from the same IP address: 1.1. If it doesn't, we recommend contacting your provider. Most likely, the provider blocks the IP address or website address.1.2. If the site opens, contact technical support. Step 2. Check if the site is blocked by the Intrusion Prevention system. Go to Traffic Rules -> IPS. Move the IPS section slider to the Disabled position for a few minutes: Try going on the site again. If the site has opened, find the number of the blocking rule in the logs and add the rule number to IPS -> Exceptions. Step 3. If the previous paragraph did not help, check whether the site is blocked by a Content Filter rule. To do this: Create a test rule for the tested user in Traffic Rules -> Content Filter: Title - any name. Applies to - select a test user. Sites Categories - all requests. Action – allow Click Save. Place the created rule at the top of the list by clicking the arrow up icon. Open the website. If the site opens, you can find the blocking rule by dropping the test rule down the list. If the blocking rule has not been found, proceed to the next step. Step 4. Determine the blocked domain or IP address (let's take Firefox as an example): Open the desired site in the browser. Press F12. Select the "Network" tab. Refresh the page. Sort the column Status with the left mouse button. Pay attention to the status codes 4xx and 5xx; it is these requests that are blocked either by UTM or by higher-level services.Determine which category of the content filter a particular name belongs to. To do this, go to Traffic Rules -> Content Filter -> URL for categorization: If you failed to solve the problem, please send the following to technical support: 1. Screenshot of the error in the browser.2. Screenshot of sorted errors from Firefox so that problematic domains or IP addresses can be seen (changed). Obviously reliable services can be added to Services -> Proxy -> Exceptions in the tab Destination networks.It is not recommended to add the addresses of your network's clients to the exceptions, since in this case their web traffic will not be filtered by the content filter rules and will not be included in reports.What to Do If Internet Does Not Work Step 1. Check user parameters Make sure that the user being checked is logged in to the server. Possible user statuses are described in the chapter User Tree. Step 2. Checking the user's computer Run ping command from the user's computer to address 8.8.8.8: Start -> Run, enter the command cmd, in the window that appears enter ping 8.8.8.8. If address 8.8.8.8 responds to echo requests, check ping google.com . If address 8.8.8.8 does not respond to echo requests, go to Step 3. If address google.com responds to echo requests, go to Step 5. If the message 'failed to detect node google.com' appears, the DNS provider may not be working, check with the command nslookup google,com 222.222.222.222 , instead of 222.222.222.222 specify the DNS address of the provider: If there is no response, contact your provider. If there is a response, check the primary DNS address on your computer (the local SafeUTM address must be specified); also check that the DNS server is running on SafeUTM in Services -> DNS. Step 3. Checking Internet access on the server Go to Terminal in the web interface: run the command ping 8.8.8.8, to stop ctrl+c. If the ping fails: Check the server settings, addresses, and interface masks. Make sure that the network equipment you are using is in good condition, the network cables are properly embossed and do not have fractures and breaks; check the signal indicator on the network card (you can see it in Services -> Network Interfaces), restart the switch and modem (if used). If you are using an Ethernet connection, you need to run the command arp -an | grep . If the MAC address of the provider's gateway has not been determined, then it makes sense to try rebooting the Server by reconnecting the network cable. After that, check for the MAC address of the provider's gateway. This solution helps if the provider's switch port "freezes". If after the specified measure the MAC of the provider's gateway does not appear in the MAC address table, contact the provider. It should be noted that when changing network equipment, no access to the Internet may be due to the fact that your Internet provider uses binding to the MAC address. If the ping passes, go to Step 4. Step 4. Checking the firewall Disable the Firewall module in the web interface section Traffic Rules -> Firewall. If the web interface is not available, the firewall can be turned off using the local menu. If access to the Internet has appeared, find the rule prohibiting access to the network in the firewall, alternately enabling the rules. Step 5. Checking web traffic If the user receives responses to echo requests with the command ping both by domain name and IP address, but there is no web traffic: Make sure that all proxy settings are not used in the browser. Temporarily turn off the Windows firewall and antivirus software. If you failed to solve the problem, please send the following to technical support: 1. Take screenshots of the user’s tab General in an expanded form and contact us via the support portal or email us at support@safedns.com. 2 . Enable Remote Assistant mode and contact technical support: https://www.safedns.com/resource/support-ticket.Authorization error "The browser is outdated" If you are using a browser that does not support UTM, then the error Your browser is outdated will appear during authorization. This version of the browser is not secure and unsupported by modern web technologies. Please install the latest version of one of the listed browsers. Supported Browsers: Google Chrome version >= 90; Firefox version >= 78; Safari version >= 14. We recommend updating your browser to the minimum supported version. To continue authorization despite the risks, you will need to click I understand the risks and wish to continue.