Difference between revisions of "RUT955 VPN"

From Teltonika Networks Wiki
Line 16: Line 16:
 
| file_gre_config_main              = Networking_rutxxx_vpn_gre_gre_configuration_main_settings_v1.png
 
| file_gre_config_main              = Networking_rutxxx_vpn_gre_gre_configuration_main_settings_v1.png
 
| file_gre_config_routing          = Networking_rutxxx_vpn_gre_gre_configuration_routing_settings_v1.png
 
| file_gre_config_routing          = Networking_rutxxx_vpn_gre_gre_configuration_routing_settings_v1.png
 +
<!---------------------------------PPTP--------------------------------->
 +
| file_pptp_client_config          = Networking_rutxxx_vpn_pptp_client_configuration_v1.png
 +
| file_pptp_server_config          = Networking_rutxxx_vpn_pptp_server_configuration_v1.png
 +
<!---------------------------------L2TP--------------------------------->
 +
| file_l2tp_client_config          = Networking_rutxxx_vpn_l2tp_client_configuration_v1.png
 +
| file_l2tp_server_config          = Networking_rutxxx_vpn_l2tp_server_configuration_v1.png
 
}}
 
}}
  
==PPTP==
 
  
'''Point-to-Point Tunneling Protocol (PPTP)''' is a protocol (set of communication rules) that allows corporations to extend their own corporate network through private "tunnels" over the public Internet. Effectively, a corporation uses a wide-area network as a single large local area network. A company no longer needs to lease its own lines for wide-area communication but can securely use the public networks.
 
  
For a more in-depth configuration example, visit the '''[[PPTP configuration examples]]''' page.
+
==Stunnel Configuration==
 
 
===PPTP Client===
 
----
 
To create a new PPTP instance, go to the PPTP tab, select the Role (server or client) of your instance, type in a name in the '''New configuration name''' field and press the '''Add''' button next to it. The newly created instance will be disabled and unconfigured. To configure it click the '''Edit''' button located next to it. This action will redirect you to the instance’s PPTP Configuration window.
 
 
 
 
 
[[Image:Services vpn pptp client.PNG]]
 
 
 
<table class="nd-mantable">
 
    <tr>
 
        <th>field name</th>
 
      <th>value</th>
 
      <th>description</th>
 
    </tr>
 
    <tr>
 
      <td>Enable</td>
 
      <td>yes | no; Default: '''no'''</td>
 
      <td>Toggles PPTP Client ON or OFF</td>
 
    </tr>
 
    <tr>
 
      <td>Use as default gateway</td>
 
      <td>yes | no; Default: '''no'''</td>
 
      <td>Use this PPTP instance as default gateway</td>
 
    </tr>
 
    <tr>
 
    <td>Client to client</td>
 
        <td>yes | no; Default: '''no'''</td>
 
        <td>Toggles client to client on the PPTP tunnel ON or OFF</td>
 
    </tr>
 
    <tr>
 
    <td>Server</td>
 
        <td>host | ip; Default: " "</td>
 
        <td>PPTP server's IP address or hostname</td>
 
    </tr>
 
    <tr>
 
    <td>Username</td>
 
        <td>string; Default: " "</td>
 
        <td>User name for authorization with the server</td>
 
    </tr>
 
    <tr>
 
    <td>Password</td>
 
        <td>string; Default: " "</td>
 
        <td>Password used for authorization with the server</td>
 
    </tr>
 
</table>
 
 
 
===PPTP Server===
 
----
 
[[Image:Services vpn pptp server.PNG]]
 
 
 
<table class="nd-mantable">
 
    <tr>
 
        <th>field name</th>
 
      <th>value</th>
 
      <th>description</th>
 
    </tr>
 
    <tr>
 
      <td>Enable</td>
 
      <td>yes | no; Default: '''no'''</td>
 
      <td>Toggles PPTP Server ON or OFF</td>
 
    </tr>
 
    <tr>
 
      <td>Local IP</td>
 
      <td>ip; Default: '''192.168.0.1'''</td>
 
      <td>Virtual IP Address of this PPTP server</td>
 
    </tr>
 
    <tr>
 
    <td>Remote IP range begin</td>
 
        <td>ip; Default: '''192.168.0.20'''</td>
 
        <td>Client IP address leases beginning</td>
 
    </tr>
 
    <tr>
 
    <td>Remote IP range end</td>
 
        <td>ip; Default: '''192.168.0.30'''</td>
 
        <td>Client IP address leases end</td>
 
    </tr>
 
    <tr>
 
      <td>User name</td>
 
      <td>string; Default: '''youruser'''</td>
 
      <td>Client's user name used for authentication with this server</td>
 
    </tr>
 
    <tr>
 
    <td>Password</td>
 
        <td>string; Default: '''yourpass'''</td>
 
        <td>Client's password used for authentication with this server</td>
 
    </tr>
 
    <tr>
 
    <td>PPTP Client's IP</td>
 
        <td>ip; Default: " "</td>
 
        <td>Client’s IP address. Leave empty to assign a random IP from the IP range specified above</td>
 
    </tr>
 
</table>
 
 
 
==L2TP==
 
 
 
In computer networking, '''Layer 2 Tunneling Protocol (L2TP)''' is a tunneling protocol used to support virtual private networks (VPNs). It is more secure than PPTP but, because it encapsulates the transferred date twice, but it is slower and uses more CPU power.
 
 
 
For a more in-depth configuration example, visit the '''[[L2TP configuration examples]]''' page.
 
 
 
===L2TP Client===
 
----
 
To create a new L2TP instance, go to the L2TP tab, select the Role (server or client) of your instance, type in a name in the '''New configuration name''' field and press the '''Add''' button next to it. The newly created instance will be disabled and unconfigured. To configure it press the '''Edit''' button located next to it. This action will redirect you to the instance’s L2TP Configuration window.
 
 
 
 
 
[[Image:Services vpn l2tp client configuration.PNG]]
 
 
 
<table class="nd-mantable">
 
    <tr>
 
        <th>field name</th>
 
      <th>value</th>
 
      <th>description</th>
 
    </tr>
 
    <tr>
 
      <td>Enable</td>
 
      <td>yes | no; Default: '''no'''</td>
 
      <td>Toggles L2TP Client ON or OFF</td>
 
    </tr>
 
    <tr>
 
      <td>Server</td>
 
      <td>host | ip; Default: " "</td>
 
      <td>L2TP server's remote IP address or hostname</td>
 
    </tr>
 
    <tr>
 
    <td>Username</td>
 
        <td>string; Default: " "</td>
 
        <td>User name used to authenticate you to the L2TP server</td>
 
    </tr>
 
    <tr>
 
    <td>Password</td>
 
        <td>string; Default: " "</td>
 
        <td>Password used to authenticate you to the server</td>
 
    </tr>
 
</table>
 
 
 
===L2TP Server===
 
----
 
[[Image:Services vpn l2tp server.PNG]]
 
 
 
<table class="nd-mantable">
 
    <tr>
 
        <th>field name</th>
 
      <th>value</th>
 
      <th>description</th>
 
    </tr>
 
    <tr>
 
      <td>Enable</td>
 
      <td>yes | no; Default: '''no'''</td>
 
      <td>Toggles L2TP Server ON or OFF</td>
 
    </tr>
 
    <tr>
 
      <td>Local IP</td>
 
      <td>ip; Default: '''192.168.0.1'''</td>
 
      <td>Virtual IP Address of this L2TP server</td>
 
    </tr>
 
    <tr>
 
    <td>Remote IP range begin</td>
 
        <td>ip; Default: '''192.168.0.20'''</td>
 
        <td>Client IP address leases beginning</td>
 
    </tr>
 
    <tr>
 
    <td>Remote IP range end</td>
 
        <td>ip; Default: '''192.168.0.30'''</td>
 
        <td>Client IP address leases end</td>
 
    </tr>
 
    <tr>
 
    <td>User name</td>
 
        <td>string; Default: '''user'''</td>
 
        <td>Client's user name used for authentication with this server</td>
 
    </tr>
 
    <tr>
 
    <td>Password</td>
 
        <td>string; Default: '''pass'''</td>
 
        <td>Client's password used for authentication with this server</td>
 
    </tr>
 
</table>
 
 
 
===Stunnel Configuration===
 
  
 
Default Stunnel configuration:
 
Default Stunnel configuration:
Line 355: Line 182:
  
 
===Stunnel Global Configuration===
 
===Stunnel Global Configuration===
 
+
----
 
Default Stunnel global configuration:
 
Default Stunnel global configuration:
  
Line 426: Line 253:
 
** [[OpenVPN traffic split]]
 
** [[OpenVPN traffic split]]
 
** [[OpenVPN client on Windows]]
 
** [[OpenVPN client on Windows]]
 
[[Category:RUT955 WebUI]]
 

Revision as of 11:35, 3 July 2019

Main Page > RUT Routers > RUT955 > RUT955 Manual > RUT955 WebUI > RUT955 Services section > RUT955 VPN

Template:Networking rutxxx manual vpn


Stunnel Configuration

Default Stunnel configuration:

Stunnel default config.png


Stunnel configuration field explanation table:

Field Name Value Description
Enabled yes | no; Default: no Enables the Stunnel configuration.
Operating Mode Client | Server; Default: "" Specifies whether this configuration will be used for Stunnel client or server.
Listen IP ip | host; Default: "" OPTIONAL Specifies which IP address or host should Stunnel listen to. If left empty, defaults to localhost.
Listen Port port (integer [0..65535]); Default: "" Specifies TCP port which Stunnel should listen to. Port cannot be taken by another service!
Connect IP's [host:]port; Default: "" Uses the standard host:port convetion (e.g. 127.0.0.1:6001; localhost:6001). Host part can be emmited - empty host part defaults to localhost. Must contain at least one item. If multiple options are specified, remote address is chosen using a round-robin algorithm.
TLS Cipher None | Secure | Custom Select permitted TLS ciphers (TLSv1.2 and below). If custom is selected, a new field appears to enter custom ciphers.
Allowed TLS Ciphers Cipher[:Cipher]..; Default: "" Only appears if a Custom TLS Cipher is selected
A colon-delimited TLS cipher list (e.g. DES-CBC3-SHA:IDEA-CBC-MD5)
Application Protocol Not specified | Connect | SMTP; Default: Not specified CLIENT SIDE ONLY

This option enables initial, protocol-specific negotiation of the TLS encryption. The protocol option should not be used with TLS encryption on a separate port.

If Connect or SMTP is selected, more customization fields appear.
Protocol Authentication Connect: Basic | NTLM; Default: Basic SMTP: Plain | Login; Default: Plain CLIENT SIDE ONLY

Options depend on the selected protocol

Authentication type for the protocol negotiations.
Protocol Domain domain (text); Default: "" CLIENT SIDE ONLY

Only appears if a Connect protocol is selected

Domain for the protocol negotiations.
Protocol Host host:port; Default: "" CLIENT SIDE ONLY

Only appears if a Connect protocol is selected

Destination address for the protocol negotiations.

Specifies the final TLS server to be connected to by the proxy, and not the proxy server directly connected by Stunnel. The proxy server should be specified with the connect option.
Protocol Username username (text); Default: "" CLIENT SIDE ONLY

Only appears if a protocol is selected

Username for the protocol negotiations.
Protocol Password password (text); Default: "" CLIENT SIDE ONLY

Only appears if a protocol is selected

Password for the protocol negotiations.
Verification None | Verify Chain | Verify Peer; Default: None Verification type. Verify Chain verifies connections against a Certificate Authority (CA) file, while Verify Peer verifies connections against a list of approved certificates.
Verification file file; Default: "" Only appears if a verification type is selected

File which is used to verify peer(s) or a peer chain. A different type of file is expected depending on the verification type selected:

Verify Chain: Expects a CA (Certificate Authority) file.

Verify Peer: Expects a file with one (or more, concatenated) peer certificate(s).
Certificate File file; Default: "" Mandatory for a server configuration. Optional for a client configuration

The parameter specifies the file containing certificates used by stunnel to authenticate itself against the remote client or server.

The file should contain the whole certificate chain starting from the actual server/client certificate, and ending with the self-signed root CA certificate.

Can be a certificate only, or both certificate and private key concatenated into a single file.
Private Key file; Default: Certificate File Can be skipped if the Certificate File is appended with the private key

Must be uploaded if the Certificate File does not contain the private key

A private key, required to authenticate the certificate owner.

After setting the parameters, click the Save button; otherwise, changes will not be saved. Some parameters will be shown in the configuration list table.


Stunnel Global Configuration


Default Stunnel global configuration:

Stunnel default global config.png


Stunnel global configuration field explanation table:

Field Name Value Description
Enabled yes | no; Default: no Enables/activates all the enabled Stunnel configurations.
Debug Level integer [0..7]; Default: 5 Debugging level. Level is one of the syslog level names or numbers emerg (0), alert (1), crit (2), err (3), warning (4), notice (5), info (6), or debug (7). All logs for the specified level and all levels numerically less than it will be shown. Use 7 for greatest debugging output.
Use alternative config yes | no; Default: no Enable alternative configuration option (Config upload). Be aware that when using alternative configuration, all configurations in Stunnel Configuration section will be skipped.
Upload alternative config file; Default: "" Only appears if the "Use alternative config" is enabled
Upload the alternative Stunnel configuration file.


IMPORTANT:

The router can have multiple configurations set up and enabled at the same time. Note that if at least one configuration is not set correctly, none of them will be enabled, despite the "Enabled" flag being marked.

Also, you must mark the global "Enabled" flag to actually enable all the individually marked configurations.

DMVPN

Click here for DMVPN configuration instructions.

See also