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
416 views 6 comments
by anonymous

I Have just bought the TRB140 to use as a VPN Client, from my ISP i got

  • a config file
  • the public IP of the server
  • Port
  • username
  • password
     

I tested it in the windows VPN client and by just giving it the config file username and password it works, now on the TRG i have it setup like the image but it doesn't work, can somebody help me out? 

1 Answer

0 votes
by anonymous
Hello,

Have you tried to set authentication algorithm to none?
by anonymous
Yep, it doesn't work and they gave me the windows client asks me for username and password, so i think it's needed.
by anonymous

I would like you to attach a troubleshoot file to your question to check the log messages. Please, replicate the issue, then access router's WebUI, go to System -> Administration > Troubleshoot section and download troubleshoot file from there.

 

by anonymous
by anonymous

Hello,

The logs show the following error: 

neither stdin nor stderr are a tty device and you have neither a controlling tty nor systemd - can't ask for 'Enter Auth Username:'.  If you used --daemon, you need to use --askpass to make passphrase-protected keys work, and you can not use --auth-nocache.

Here are a couple of things you can try:

  • Edit the ovpn configuration file and delete this line: auth-user-pass. It might conflict with the credentials you enter from the WebUI.
  • Instead of entering the username and password, access the router via SSH/CLI and create a file with your credentials. enter the following commands:
    • cd /etc
    • vi client.txt
    • Press i letter to start editing, enter username in one line, password in another, press esc button, enter :wq and press Enter.
    • Edit your openVPN config file option auth-user-pass /etc/client.txt
    • If the following option does not work, replace it with askpass /etc/client.txt

You can read more about the issue here:

https://github.com/haugene/docker-transmission-openvpn/issues/996

https://forum.netgate.com/topic/111001/openvpn-expressvpn-fatal-error/3

https://www.linksysinfo.org/index.php?threads/openvpn-service-wont-start.75596/

https://bytemeta.vip/repo/Ailme/homeassistant-openvpn-client-addon/issues/2

Also, the firmware you use is quite old, you can download the latest file from here.

Best regards,

by anonymous
That fixed the issue, now i need to get packets from my lan to the device behind the teltonika router, my plan was to port forward traffic sent to the teltonika vpn ip in the teltonika lan , would it work?
by anonymous

Without knowing much about your topology, I suggest checking the example in the following link: https://wiki.teltonika-networks.com/view/Camera_access_from_VPN.

It shows how to access devices behind RUT via VPN network using and port forwarding. The interface in screenshots is from the older firmware version, however, current configuration is similar.

Best regards,