OpenVPN example: Różnice pomiędzy wersjami

Z Elproma Wiki Knowledge Base
Skocz do: nawigacja, szukaj
 
(Nie pokazano 6 pośrednich wersji utworzonych przez tego samego użytkownika)
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 Elproma RBMTX-Lite and RBMTX-Viper routers and RB900SG-ElpOS modem.


Router support a few OpenVPN configuration modes (templates):
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 an ethernet bridge VPN
* Client configuration for a routed multi-client VPN
* Client configuration for a routed multi-client VPN
Linia 11: Linia 11:
==OpenVPN client==
==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.
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.


[[File:example_openvpn.png|800px]]
[[File:example_openvpn.png|800px]]


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.
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.


[[File:example_openvpn_auth.png|800px]]
[[File:example_openvpn_auth.png|800px]]


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.
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''.
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''.
Linia 27: Linia 27:
Interface is now created and you can edit it by ''Edit'' button. Go to ''Firewall Settings'' tab, choose ''wan'' and save the settings.
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.
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.


[[File:example_openvpn_ping.png|800px]]
[[File:example_openvpn_ping.png|800px]]
Linia 33: Linia 33:
==OpenVPN server==
==OpenVPN server==


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

Aktualna wersja na dzień 15:23, 17 kwi 2024

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.