![]() ![]() The logic of the entire connection can be visualized like this: The OpenVPN client will connect to TCP port 1194 of the local host and the Stunnel client will connect to the WAN IP and Stunnel port ( 192.168.10.1:9999 in this example) of the server router. Unlike in the server, there is reason to configure Stunnel client before the OpenVPN client (the other way around will also work but an OpenVPN service restart may be required) so it is recommended to start with that. Fill out the configuration fields as indicated in the figure above and click the 'Add' button:Ĭonfigure the OpenVPN and Stunnel clients that will be connecting to the server. To do this, navigate to the Network → Firewall → Traffic Rules page and scroll down until you see the Open Ports On Router section. But you will have manually open the select Stunnel port ( 9999 in this example). The OpenVPN default port ( 1194) is opened by default. To begin configuration, click the 'Edit' button next to the instance. A new instance with the given name will appear in the "Stunnel Configuration" list. To create a new Stunnel instance, enter a custom name for it and click the 'Add' button. Navigate to the Services → VPN → Stunnel page and enable the "Stunnel Globals" configuration: Take note of the comments that are provided next to fields that differ from the default value:ĭon't forget to click the Save button located at the bottom-right side of the page. The figure below displays the configuration used for our example. To begin configuration, click the 'Edit' button next to the server instance. An OpenVPN server instance with the given name will appear in the "OpenVPN Configuration" list. Select Role: Server, enter a custom name and click the 'Add New' button. Navigate to the Services → VPN → OpenVPN page. The logic of the connection can be visualized like this: The Stunnel server will listen for incoming client connections on the specified TCP port ( 9999 in this example) and connect them to OpenVPN server running on the local host. ![]() This provides the possibility to transfer data between remote private networks (LAN A and LAN B) and adds an additional TLS security layer for the connection.įirst, configure the OpenVPN and Stunnel servers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |