Wireguard from a .conf file

Hi all,

I like to install wireguard VPN from Surfshark at the Teltonika RUTM30 with the newest Firmware. I find no way to Setup all fields from the conf file. For example the endpoint and the IP address I can not set. The Teltonika Wiki is not helpful.

Is there a way that one of the next Updates get the same way like OPENVPN to read the conf file directly? Or is there a way to help me to install it?

This is my conf file

[interface]

Address = 10.14.0.2/16

PrivareKey = rdghzrdchtr

DNS =162.252.172.57

[Peer]

PublicKey] = hfrtgxcgfrzg

AllowedIPs = 0.0.0.0/0

Endpoint = de-fra.prod.surfshark.com:51820

I’m happy for every solution!

Chris

Hello,

To clarify, every option from your provided configuration can be set manually through the WireGuard instance configuration tab in WebUI:

  • Address = 10.14.0.2/16 → Enter this in the IP addresses field; this will be the IP address of your peer in the tunnel.
  • PrivateKey → Enter your private key (ensure it is in Base64 format).
  • DNS = 162.252.172.57 → Can be specified under the Advanced settings tab of the WireGuard instance.
  • Create a Peer in the configuration:
    • Enter the peer’s PublicKey.
    • Set Endpoint as de-fra.prod.surfshark.com.
    • Set Allowed IPs to 0.0.0.0/0.
    • Under Advanced Peer Settings, specify the WireGuard Endpoint Port as 51820.

This should be sufficient to set up your WireGuard VPN connection with Surfshark.

Additionally, if you prefer, you can configure WireGuard directly via the CLI by editing the /etc/config/network file.

I hope this helps and feel free to reach out if you have any further questions.

Best regards,

Hi Martynas,

Thank you for your Response.

The Router tells my that wireguard

is running but if I test the IP I get the same Vodafone IP than before. If I do the same with a Goldenorb Router I get an IP of surfshark. Is it nessesary to change something in the Firewall?

Best regards

Christian

Hello,

Apologies for the delayed response. Could you please confirm if the issue with the WireGuard tunnel setup using the Surfshark WireGuard hub is still present or was resolved?
If it is, kindly share screenshots of the WireGuard configuration from the RUTM itself.

Best regards,

This topic was automatically closed after 60 days. New replies are no longer allowed.