OpenVPN example: Różnice pomiędzy wersjami

Z Elproma Wiki Knowledge Base
Skocz do: nawigacja, szukaj
Znacznik: Wycofane
Linia 1: Linia 1:
In this page we are describing the example of OpenVPN connection for Teleorigin routers.
In this page we are describing the example of OpenVPN connection for Teleorigin routers.2


Router support a few OpenVPN configuration modes (templates):
Router support a few OpenVPN configuration modes (templates):

Wersja z 13:15, 9 lis 2022

In this page we are describing the example of OpenVPN connection for Teleorigin routers.2

Router support a few OpenVPN configuration modes (templates):

  • Client configuration for an ethernet bridge VPN
  • Client configuration for a routed multi-client VPN
  • Simple client configuration for a routed point-to-point VPN
  • Server configuration for an ethernet bridge VPN
  • Server configuration for a routed multi-client VPN
  • Simple server configuration for a routed point-to-point VPN

OpenVPN client

To configure OpenVPN tunnel go to VPN -> OpenVPN menu tab. Here you can find some samples which you can edit or add new VPN instance. If you have .ovpn file you can go to OVPN configuration file upload section. Enter instance name (in our example the name is test) and upload .ovpn file. Instance will be available for editing in the list above.

Example openvpn.png

If you want to add secrets (username and password) please use Edit button and change the line auth-user-pass secrets to auth-user-pass /etc/openvpn/test.auth and then write the credentials from secrets in the window below.

Example openvpn auth.png

Use Save button and back to VPN -> OpenVPN. Enable the tunnel by checking the Enabled box and save configuration using Save & Apply button. Instance will start automatically and tun0 interface should be available.

Now go to Network -> Interfaces menu tab and create WAN interface on tunnel. Use Add new interface button, enter interface name (in our example it is ELPROMA_VPN, choose Protocol -> Unmanaged and Device -> tun0.

Example openvpn int.png

Interface is now created and you can edit it by Edit button. Go to Firewall Settings tab, choose wan and save the settings.

To test the tunnel you can go to Network -> Diagnostics and check if the VPN server or other device in the network will respond to PING request.

Example openvpn ping.png

OpenVPN server

To configure OpenVPN tunnel go to VPN -> OpenVPN menu tab.