OpenVPN example

Z Elproma Wiki Knowledge Base
Skocz do: nawigacja, szukaj

In this page we are describing the example of OpenVPN connection for Elproma RBMTX-Lite and RBMTX-Viper routers and RB900SG-ElpOS modem.

You can create new tunnel or choose one of the OpenVPN dedicated 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.