FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
872 views 6 comments
by anonymous

I wanted to report a configuration and documentation issue with OpenVPN. This applies to the latest  FW RUT9XX_R_00.06.06.1 in my RUT950, but i guess it is valid for any RUT device using the same FW.

The issue is that the firewall zoning in the FW is expecting a specific name for the OpenVPN TUN devices: they should be called tun_*, since the devices tun0/1/2/3 are reserved for the hotspot functionality. In fact adding a clean client or server configuration via the RUTxxx GUI uses the TUN devices  "tun_c_<CLIENTNAME>" and "tun_s__<SRV_NAME>" which is fine. If you end up configuring OpenVPN with tun0, you will have a hard time understanding why NOTHING works! (pings to the other end of the tunnel fail, the connection is interrupted every few minutes due to no pings received...)

One part of the problem is that you are allowed to upload your own OpenVPN config file (and the default in OpenVPN is to use tun0). There is no word about this in the Wiki documentation, while it should in fact be written with big red letters! Even better: make the FW check the OpenVPN device and reject the setup if the naming is wrong.

The second problem I hit, is that if you first configure your OpenVPN client by uploading your own config file, and then switch back to the assisted GUI configuration, the configuration will still use "tun0" as device! No clue how or why it happens, but i ended up with tun0 having configured my client via the GUI form. I had to _delete_ the client, and add a new one to get the default device naming tun_c_XXXX! This should be fixed in the FW, IMHO.

I am obviously not the only one hitting this, see also e.g. the question  12603/openvpn-firewall

1 Answer

0 votes
by anonymous
Hello,

Does your issue is similar to this one? https://community.teltonika-networks.com/12603/openvpn-firewall

As they seem to be very similar, please let me know.
by anonymous

Hi Vytautas, yes, it was me who posted the last comment in https://community.teltonika-networks.com/12603/openvpn-firewall .  It would be nice if you/Teltonika could add that big warning to the Wiki documentation, and possibly also fix the configuration for never allowing using tun0 ;-)

After i found that, i got my OpenVPN tunnel working fine :-)

by anonymous

Hello,

We will look at your inputs regarding documentation. For OpenVPN issue could you please try this TEST firmware and see if it will solve the issue.

TEST FW: https://we.tl/t-8RmdkLiwXr

Please let me know.

by
Has this been fixed?
by anonymous
I don't know. I had to ship the device to its final destination, so could finally not test the FW suggested by Vytautas, sadly.
by anonymous
But once you know the problem, the "fix" is easy, just delete the affected OpenVPN client or server configuration and set up a new one from scratch. If you upload your own config file, make sure you define the tun device name in a compatible way (tun_c_XXXX, tun_s_XXXX).
by anonymous

Hello everyone,

Apologies for late response. We had prepared a TEST FW which should solve issue regarding using OpenVPN config file on RUT9 series device.

TEST FW: https://community.teltonika-networks.com/?qa=blob&qa_blobid=17812539261115494889

Regarding your situation Ariel I could recommend using our RMS system (Remote Management System) which allows you to access device remotely without use of public IP address, also via RMS you can easily upgrade devices FW and upload backup files for easy management.

Each Teltonika device has 1 free credit which will allow you to use RMS for 30days. More about RMS and how to use it, can be found in our Wiki page:

- https://wiki.teltonika-networks.com/view/RMS

- https://teltonika-networks.com/product/rms/