Package Details: torguard 4.8.13-1

Git Clone URL: https://aur.archlinux.org/torguard.git (read-only, click to copy)
Package Base: torguard
Description: TorGuard VPN Software Stay private online with TorGuard's anonymous VPN software and connect to 37+ countries worldwide.
Upstream URL: https://www.torguard.net
Licenses: custom
Submitter: coco
Maintainer: coco (thatgeek, dramm)
Last Packager: dramm
Votes: 16
Popularity: 0.076198
First Submitted: 2017-01-25 16:18 (UTC)
Last Updated: 2022-08-01 00:06 (UTC)

Latest Comments

TimTheAncient commented on 2022-07-15 13:12 (UTC)

With 4.8.12-1 installed, it will no longer run on my Manjaro system anymore because it complains about the setuid or setgid bits being set. I'm not sure which version broke it for me but it was somewhat recent.

Error message:

GID no changed
setting uid to  1000
Setting USER, USERNAME and LOGNAME to  "timothy"
Setting HOME to  "/home/timothy"
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-timothy'

(process:15217): Gtk-WARNING **: 07:47:10.919: This process is currently running setuid or setgid.
This is not a supported use of GTK+. You must create a helper
program instead. For further details, see:

    http://www.gtk.org/setuid.html

Refusing to initialize GTK+.

missingSleepDeps commented on 2022-04-11 19:36 (UTC)

It's not showing on the system tray for KDE

tomacrisan commented on 2022-03-20 19:27 (UTC)

For anyone who wants to upgrade, change the PKGBUILD file to:

pkgver=4.8.10
build=build.167.1+g228f8ff
pkgrel=1

Then run:

updpkgsums
makepkg --install

jwhite111 commented on 2021-10-10 09:26 (UTC)

@dramm It works now, thanks. Much appreciated.

dramm commented on 2021-10-09 17:02 (UTC)

@rajat6393 @jwhite11 I added qt5-svg and qt5-quickcontrols2 to the dependency list. If you get a chance to test, let me know if it works now.

jwhite111 commented on 2021-09-18 12:42 (UTC)

Same error messages and white screen as rajat6393 on GNOME Wayland. Had to install the PKGBUILD from the site.

rajat6393 commented on 2021-09-03 03:57 (UTC)

@dramm it worked!! thanks for the suggestion. tried installing from website and it works just fine.

dramm commented on 2021-09-02 19:43 (UTC)

@rajat6393 No worries. I'm guessing there is some dependency I'm missing or there is something wrong in your settings, because of the Unexpected Log option message. Did you try the PKGBUILD from their website?

rajat6393 commented on 2021-09-02 12:56 (UTC)

@dramm sorry for late reply i have been busy with work. Yes i do prompted for password and I also tried sudo command on terminal while launching.

dramm commented on 2021-09-01 14:47 (UTC) (edited on 2021-09-01 14:49 (UTC) by dramm)

@rajat6393 are you being prompted for your password or tried running it with sudo?

I get the first five lines exactly as you do. But I don't get the unexpected log.

[2021-09-01 11:47:18.416 -03 D] FileMessageHandler: installing...

rajat6393 commented on 2021-08-31 06:00 (UTC)

@dramm this is how it look when i start it https://imgshare.io/image/pkJMld

rajat6393 commented on 2021-08-31 05:54 (UTC)

@dramm [rajat@rajat6393 ~]$ torguard GID no changed setting uid to 1000 Setting USER, USERNAME and LOGNAME to "rajat" Setting HOME to "/home/rajat" QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-rajat' [2021-08-31 1:50:11.712 EDT D] Unexpected Log option: "" [2021-08-31 1:50:11.712 EDT D] Unexpected Log option: "" [2021-08-31 1:50:11.712 EDT D] NullMessageHandler: no log supported

dramm commented on 2021-08-30 18:52 (UTC)

@rajat6393 Did you try starting it in a terminal to see if you get any errors? Also, does it show in the tray after starting?

rajat6393 commented on 2021-08-30 18:40 (UTC)

hi, a newbie here. I recently installed torguard and every time i run it, it just shows me blank(white) screen. Anyone tell me what i am doing wrong and guide me in right direction. Thank you

dramm commented on 2021-08-10 14:09 (UTC)

@insatiable_kin do you get any messages at all after clicking the disconnect button? I never had that behavior on my systems. I use NetworkManager and netctl. Is it only with a specific type of connection (openvpn, wireguard, etc) or all of them?

insatiable_kin commented on 2021-08-09 10:24 (UTC) (edited on 2021-08-09 10:24 (UTC) by insatiable_kin)

Since updating to v4.7.0 the disconnect button is unresponsive, there is a torguard-wg inserted in network manager that cannot be disconnected either.

Right now the only way out I've found to work is to reboot the computer. Any idea where I can find a previous version to roll back to a version that actually works.

json commented on 2021-07-24 10:12 (UTC)

url="https://www.torguard.com" is no longer in use and should point to the current https://www.torguard.net url

Excalibus commented on 2021-05-09 22:27 (UTC)

If anyone doesn't want to wait for an official update to the PKGBUILD you can change out the package version to 4.6.1 and the hash to 3168c83f372649a8b0b56226b2dce7862f5826bea6bd2c2a262996175d9c1209 I think you would also have to remove all references to torguard.sysusers

The PKGBUILD I used can be found at https://pastebin.com/M30Vqj1V

dramm commented on 2020-07-14 19:47 (UTC)

@zc0rp10 depedency added.

zc0rp10 commented on 2020-06-27 23:26 (UTC) (edited on 2020-06-27 23:27 (UTC) by zc0rp10)

Hi,

Think you might be missing a decency for qt5-declarative Was helping another user install this today and he could not launch the GUI without it, cuz it require /usr/lib/libQt5QuickWidgets.so

I confirmed he had qt5-websockets dependency installed.

angeeker20 commented on 2020-05-13 09:55 (UTC)

@dramm could you update the package to use the latest official one released by Torguard. I see that the PKGBUILD is different as they are using a wrapper script to ensure when you run Torguard client, it will automatically change the user to root. Hit me up if you need anything.

insatiable_kin commented on 2020-04-12 06:35 (UTC)

I'm running under kde and xorg, I have not given wayland a try yet.

I cannot run more tests on the aur package at the moment as I have switched to the official torguard archlinux package which happens to work out of the box for me: https://torguard.net/downloads/torguard-latest-amd64-arch.tar.gz

dramm commented on 2020-04-01 20:15 (UTC)

@insatiable_kin I get the operation not permitted error after some system upgrades, did you try rebooting?

The wrapper didn't work properly on some systems, so instead of modifying it, it is easier to just removed it so that each user can manage permissions his own way. You can add any launch commands you want in your desktop file.

About the qt error, are you running on wayland? I haven't had a chance to test it on wayland. Maybe it needs another dependency?

insatiable_kin commented on 2020-04-01 19:15 (UTC)

Just updated to aur 3.98.0-1 still does not work. it launch but refuse to connect with error: ERROR: Cannot ioctl TUNSETIFF tun: Operation not permitted (errno=1)

I do not have sudo installed on my machine for security reasons, also because sudo does not provide any useful feature to me.

When ran with pkexec from cli it fails to start: qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

Not sure why this aur package take the extra step to remove the provided torguard-wrapper to prevent it from working without sudo.

dramm commented on 2019-08-11 16:23 (UTC)

For autostarting have a lot at https://wiki.archlinux.org/index.php/autostarting

You can set it to run on desktop environment startup or on window manager startup.

Does the autoconnect on start work correctly?

GrievousMa commented on 2019-08-11 07:43 (UTC)

@dramm thank you for the update. Stealth proxy, Stunnel and connecting via port 4443 all work very well now.

Autostart on boot option still does not work for me, but that is minor.

dramm commented on 2019-08-03 21:06 (UTC)

It must be run with sudo.

I usually modify the desktop file with the following: Exec=gksudo /usr/bin/torguard That way I can still open it through the desktop file.

If you don't want to type your password, just set the sudoers file accordingly.

dramm commented on 2019-08-03 20:58 (UTC)

@GrievousMa and @IslamMu

I updated the package.

The problem doesn't seem to be related to permissions but with unrecognized arguments, both by openconnect and openvpn. These parameters no longer work in the newer versions of openconnect and openvpn or torguard team did some modifications on the binaries. Either way I'm not a big fan of using their binaries... It should be working with the standard packages.

Anyways, it should be working.

Here are the outputs from openconnect and openvpn that are causing the errors, in case anybody wants to look into it:

OPENCONNECT STDERR:  "/opt/torguard/bin/openconnect: unrecognized option '--sbg-port-cmd-fd'"
 OPENVPN STDOUT:  "Options error: Unrecognized option or missing or extra parameter(s) in [CMD-LINE]:1: scramble (2.4.7)"

GrievousMa commented on 2019-07-31 12:19 (UTC) (edited on 2019-07-31 12:49 (UTC) by GrievousMa)

@dramm I have the same issue as IslamMu had, confirming all they had written before: Torguard won't connect with Stealth proxy or Stunnel or Openconnect options. Also Manjaro Linux. I run torguard as sudo /usr/bin/torguard - it does not connect at all without sudo.

Using Stealth proxy server results in "ss-local could not be started". This may be related to shadowsocks-libev, I guess? Perhaps it wants regular shadowsocks, not libev?

Using Port / Auth 4443 (SHA256/Stealth) gives "Could not connect to the VPN management socket. Please check your firewall settings!"

Using Stunnel option leads to "Error while starting STunnel STunnel could not be started".

Also checking the option More Settings -> General -> Auto-start on boot gives "Error enabling autostart option"

--

What I did:

  1. added myself to torguard and stunnel groups gpasswd -a *user* torguard, gpasswd -a *user* stunnel

  2. changed a line in /usr/share/applications/torguard.desktop file to Exec=sudo /usr/bin/torguard

  3. added a line to /etc/sudoers %torguard *myhost*=(root) NOPASSWD: /usr/bin/torguard, /opt/torguard/bin/torguard

--

Manjaro 18.0.4

torguard 3.96.1-1

stunnel 5.55-1

shadowsocks-libev 3.3.0-1

My guess is that it is related to groups permissions. There were no mentions of torguard in my sudoers configuration. Additionally, my user profile was not a member of stunnel or torguard groups. But even after I did it, the stealth proxy options described above did not start working.

dramm commented on 2019-07-10 13:16 (UTC)

@IslamMu It works with stunnel version 5.55. What version you are on?

IslamMu commented on 2019-06-06 22:36 (UTC)

@dramm . hey bro, could you upgrade to latest package and fix the error we talked about before

ciciolina commented on 2019-05-24 11:11 (UTC) (edited on 2019-05-24 11:11 (UTC) by ciciolina)

hi, i install the package directly from the torguard page that include the binaries and its more easy to run stealth servers and run without pass (prompt for the superuser password). for that you only need to change this line in the torguard.desktop

Exec=/usr/bin/torguard to: Exec=sudo /opt/torguard/bin/torguard
And save the file, now you can run with sudo privilege and works perfectly. Please add the binaries ;D

Pd. torguard.desktop file its here: /usr/share/applications/

dramm commented on 2019-05-20 15:47 (UTC)

Glad it worked for you. The reason I don't use the binaries in the package is because I was to avoid it, by the guys in the IRC. But yeah, I will have to look into it.

IslamMu commented on 2019-05-20 15:35 (UTC)

dramm i un installed the package form aur and stunnel, then i installed latest package with this way: cd Downloads, ,tar -xvzf torguard-v3.95.0-amd64-arch.tar.gz ,cd torguard-v3.95.0-amd64-arch ,makepkg -s ,sudo pacman -U *.pkg.tar.xz

and its working fine, i guess stunnel is included with this package, maybe you need to test your aur package or update it. thanks for helping me <3

dramm commented on 2019-05-20 13:55 (UTC)

My father also uses manjaro and this package. I did not test with this last update though. Maybe try an older version?

Also, sometimes after system updates I need to reboot in order to make torguard work properly.

You could also try the binaries they provide for stunnel.

IslamMu commented on 2019-05-20 03:45 (UTC)

i used sudo torguard

but it's won't connect with stealth or stunnel or openconnect

give me this error: Could not connect to the VPN management socket. Please check your firewall settings!

and: Error while starting STunnel STunnel could not be started

btw i disable firewall but still got those errors

IslamMu commented on 2019-05-19 21:18 (UTC)

@dramm i did it with sudo, something is wrong.

dramm commented on 2019-05-19 17:47 (UTC)

Make sure you are running it with sudo.

IslamMu commented on 2019-05-19 10:43 (UTC)

i cant make app connect on ManjaroLinux i got errors about firewall and stunnel not start

i disabled firewall and still same issue, i talked to TG team and they said they arent support manjaro officialy

vitorrossi commented on 2019-02-05 16:25 (UTC) (edited on 2019-02-06 16:28 (UTC) by vitorrossi)

Torguard has an Arch installation package you can download directly from their website. Current version is 3.92.0. Upstream URL should be https://torguard.net

tomacrisan commented on 2018-11-05 20:53 (UTC) (edited on 2018-11-05 20:53 (UTC) by tomacrisan)

I had to use Exec=/usr/bin/pkexec /opt/torguard/bin/torguard or as you suggest: Exec=pkexec /opt/torguard/bin/torguard. pkexec would not work for me with the torguard link in /usr/bin.

dramm commented on 2018-11-05 11:57 (UTC)

If pkexec is in your PATH (and it should) you don't need /usr/bin/pkexec, just pkexec

tomacrisan commented on 2018-11-04 23:39 (UTC) (edited on 2018-11-05 00:01 (UTC) by tomacrisan)

My system has pkexec installed and I never really thought much about what was going on behind the scenes. Gparted does something similar with pkexec when I start it up as an ordinary user.

Perhaps some instructions would be useful for new users installing torguard from the AUR repository versus using the Arch Linux package directly from TorGuard.

Thanks for the suggestion. For my system, Exec=/usr/bin/pkexec /usr/bin/torguard will probably work. I'm not sure if gksudo and kdesudo are around anymore.

dramm commented on 2018-11-04 23:10 (UTC)

I removed the sudoers file that comes with the original package and since that wrapper never worked in my machines (I wrongly assumed that it also didn't work for everybody else) I also removed it. I won't have time to work on this until the next weekend. You can, however, simply edit the torguard.desktop file changing the Exec line to something like: Exec=gksudo /usr/bin/torguard

AFAICT all the wrapper was supposed to do was identify if you use gksudo, kdesudo or pkexec and call it, so by modifying the desktop file you should get the same behaviour. If you don't want to type your password every time you can then add a rule, probably in sudoers.d

tomacrisan commented on 2018-11-04 21:36 (UTC)

So I see what you've changed: the vendor package puts a link in /usr/bin/torguard that points to torguard-wrapper which is a script which prompts for a sudo GUI prompt if one does not have root privileges. Your /usr/bin/torguard link points directly to the torguard executable.

This requires that as a simple user, I need to setup torguard to automatically run as root under my userid or perhaps all user userids. I will have to think about whether I want to do this.

tomacrisan commented on 2018-11-04 19:48 (UTC)

Yes, it runs from sudo but that is the issue; the previous versions and the version directly from Torguard prompt for the superuser password when the program is started. Version 3.90.0-3 posted here does not prompt for the superuser password when started from torguard.desktop or the command line, it simply starts up. Then when attempting to make a connection, it then flags an error.

dramm commented on 2018-11-04 13:56 (UTC)

Try opening it with sudo

tomacrisan commented on 2018-11-04 13:28 (UTC) (edited on 2018-11-04 13:29 (UTC) by tomacrisan)

Can anyone help me with this? The latest update flags this error when I try to connect to a Torguard VPN server:

:ERROR: Cannot ioctl TUNSETIFF tun: Operation not permitted (errno=1)

The vendor's PKGBUILD install works for 3.90 but in reading the comments here, I understand the vendor's version does not meet Arch Linux standards for being included in the repositories.

camilobog commented on 2018-10-30 20:59 (UTC)

Hi, can you upload the new update? (was released today). Thanks for your work! pd. The official update its here:

https://updates.torguard.biz/Software/Linux/torguard-v3.90.0-amd64-arch.tar.gz

but i cant update directly i need your help to install from repository.

eschwartz commented on 2018-09-30 04:05 (UTC)

I didn't say "add qt5-base as a dependency", I said "move the executable to /usr/bin and then add qt5-base as a dependency".

The point is to see if it can work with the system qt5-base, not merely to depend on the system qt5-base and not even use it.

In a similar vein, stunnel, ss-local and shadowsocks are all provided bundled into the prebuilt archive, but they should be possible to debundle just like debundling qt5-base.

Either way, debundling qt5 takes more work than just adding it to the dependencies.

dramm commented on 2018-09-29 18:30 (UTC) (edited on 2018-09-29 18:31 (UTC) by dramm)

@eschwartz I added the .sysusers file. No longer copying everything. URL is fixed. I added qt5-base as a dependency but I didn't understand what you said about stunnel, ss-local and shadowsocks.

Edit: Let me know if there is anything else that can be improved.

eschwartz commented on 2018-09-02 08:23 (UTC)

Please remove the install script and provide a systemd-sysusers snippet, e.g. see https://www.archlinux.org/todo/switch-to-systemd-sysusers/

Also it is wrong to remove users/groups on package removal, see https://www.archlinux.org/todo/usergroup-management/

Also, you're copying over rather a lot of things including a full source archive and a PKGBUILD directly to / when the only thing you needed to do was add "etc" to the copying-over of "usr" and "opt" :/

General, pre-existing issues:

Note that the url https://aur.archlinux.org/packages/torguard/www.torguard.com is broken (missing protocol:// means that it's a relative filename, not a domain name...)

Many dependencies are missing for the bundled Qt libraries: fontconfig, freetype, glib2, libgl...

Why are these bundled libraries needed at all? It seems to work just fine using the system qt5-base plus moving /opt/torguard/bin/torguard to /usr/bin/ -- the stunnel and ss-local binaries should probably also be replaced by their system versions from the stunnel and shadowsocks-libev packages.

dramm commented on 2018-08-28 20:07 (UTC) (edited on 2018-09-29 18:27 (UTC) by dramm)

Edit: As of v3.89 I couldn't get this to work
Follow the steps bellow to:
  • avoid typing your password to run torguard
  • run from dmenu/rofi or anything that uses .desktop files
Update sudoers policy

edit the /etc/sudoers.d/torguard file, changing /opt/torguard/bin/torguard to:

/opt/torguard/bin/torguard, /usr/bin/torguard
Add your user to the torguard group
# gpasswd -a *user* torguard

Now you can do sudo torguard to run the client without being asked for your password

Edit .desktop file

edit the /usr/share/applications/torguard.desktop file changing the Exec line to:

Exec=sudo /usr/bin/torguard

Now you should be able to run TorGuard from rofi/dmenu or anything else that relies on the .desktop files

PS:

I contacted TorGuard and they are going to fix this in the next release. For now this workaround will do.

thatgeek commented on 2018-07-24 01:45 (UTC)

I no longer use Arch and am in discussions with the TG team to take over this AUR package. If someone else would like to become a maintainer, that would be great.

lefamz commented on 2018-07-23 08:49 (UTC)

Version v3.86.1 is out. Are there any plans for update?

thatgeek commented on 2017-11-21 03:09 (UTC)

Just pushed v0.3.76. OpenVPN works in this version.

thatgeek commented on 2017-11-17 02:52 (UTC)

@glebtv - this package is not missing the OpenVPN binary. I just checked /opt/torguard/bin/ and it's right there. $ ls /opt/torguard/bin/ build.conf openvpn_v2_4 torguard openconnect qt.conf torguard-wrapper openvpn_v2_3 ss-local vpnc-script

glebtv commented on 2017-11-16 15:02 (UTC)

this package seems to be missing the bundled openvpn binary which is present in the package downloaded from torguard. From app debug log: Starting "/opt/torguard/bin/openvpn_v2_3" with arguments (...)

elynnaie commented on 2017-11-15 15:32 (UTC)

@deemel I had the same problem as you. Reinstalling from the AUR package did not help (pacaur -S torguard), though I did not clear cache before doing that. However, I downloaded the arch package from https://torguard.net/downloads.php, extracted, ran makepkg, then installed the package manually and it worked. Same version as here, so I don't know why this did not work.

thatgeek commented on 2017-11-15 02:53 (UTC)

@deemel - I see the same error as you but I am able to establish a connection via OpenConnect. This is not an issue with the package, it is an issue with the TorGuard application. Please reach out to them for assistance. I will gladly update the package when they release a fix.

deemel commented on 2017-11-14 12:35 (UTC)

Since the last update on 2017-11-12 it's no longer possible to establish a connection. On starting torguard from the console there's an error about an missing log option [dml@alpha ~]$ torguard GID no changed setting uid to 1000 Setting USER, USERNAME and LOGNAME to "dml" Setting HOME to "/home/dml" [2017-11-14 13:28:17.408 CET D] Unexpected Log option: "" [2017-11-14 13:28:17.408 CET D] NullMessageHandler: no log supported

thatgeek commented on 2017-06-12 15:09 (UTC)

Thanks for the feedback. I just pushed v0.3.69. For the next version, I'll use the -arch version.

akh commented on 2017-04-12 07:39 (UTC)

I agree with erylflynn on using the arch version. Also, this package has been out-of-date for at least a month now.

erylflynn commented on 2017-01-26 04:42 (UTC) (edited on 2017-01-26 15:38 (UTC) by erylflynn)

I was manually packaging and installing this and found that it wanted to update now out of the AUR. When it updated it removed the desktop entry for my application menu. This might need an install file. May I also suggest using the arch version? Below is the link for the Arch Linux package from Torguard. For me simply drop the pkgbuild, and source file in a directory. Run makepkg and then install. It might work better. http://updates.torguard.biz/Software/Linux/torguard-latest-amd64-arch.tar.gz