To create the OpenVPN server, go to: VPN -> OpenVPN.
In the "Servers" tab, click: Add.
To configure the OpenVPN server to create a site-to-site VPN tunnel using layer 2 of the OSI model, configure the OpenVPN server like this:
To secure the OpenVPN server in SSL/TLS mode, you must configure the "Cryptographic Settings" section like this:
When you create an OpenVPN tunnel using Layer 2 (L2), you do not need to specify anything for the network in the "Tunnel Settings" section.
Indeed, there is no subnet for the OpenVPN tunnel and given that the subnet is the same on your 2 physical sites, there is no local or remote network to indicate.
In the "Ping settings" section, specify the value "0" for the "inactive" parameter.
So, once the VPN tunnel is established between your 2 sites, it will remain established.
At the bottom of the page, click Save.
Your OpenVPN server was created in "TAP" (L2) mode.
When you configure an OpenVPN server in TAP (layer 2) mode, you must assign the virtual interface of the OpenVPN server to a logical interface which will be named "OPTx".
To do this, go to: Interfaces -> Assignments.
An "Available network ports" section will appear with the virtual interface "ovpns1" which corresponds to the TAP interface of your OpenVPN server (named in our case "Site-To-Site VPN L2").
Select this virtual interface "ovpns1" and click: Add.
Virtual interface "ovpns1" has been assigned as logical interface "OPT1".
Click on the name of this logical interface (OPT1) or go to: Interfaces -> OPT1.
Enable this OPT1 logical interface by checking the "Enable interface" box and rename this interface to "OpenVPN_L2" for example using the "Description" option.
Note that because OpenVPN operates on Layer 2 (L2), this interface cannot have an IP address.
Hence the message "This interface type does not support manual address configuration on this page" displayed for the "IPv4/IPv6 Configuration" parameter.
At the bottom of the page, click Save.
At the top of the page, click: Apply Changes.
The OPT1 interface has been enabled and renamed to "OpenVPN_L2".
Firewall 9/10/2025
Firewall 5/17/2025
Firewall 5/15/2025
Firewall 7/16/2025
Pinned content
Contact
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
No comment