Search the Community
Showing results for tags 'script'.
-
How can I connect to a specific city (say, Seattle) via command-line or script? The Windows client is great, but I'd like to be able to fire up torguard and connect to (or disconnect from) the vpn via script. Using Windows 7. Batch script, powershell, even perl or other languages would be fine. I don't need full working code - but was surprised not to find examples via my searches. I have the "Anonymous VPN" service, if that matters - I see openvpn.exe, ss-local.exe, TorGuardDesktopQt.exe and TorGuardWindowsUtilities.exe in my installation directory. Many thanks for any help!
-
@ECHO OFF SETLOCAL REM Program path and filename: REM ---------------------------------EDIT--------------------------------------- SET "CLIENTPATH=C:\Program Files\BiglyBT" SET "CLIENTFILE=BiglyBT.exe" SET "EXITCMD="--closedown" REM ---------------------------------END---------------------------------------- ECHO VPN and BT launcher ECHO --------------------- TASKLIST /FI "IMAGENAME EQ %CLIENTFILE%" 2>NUL | FIND /I /N "%CLIENTFILE%">NUL IF "%~1" == "start" ( IF "%ERRORLEVEL%"=="1" ( ECHO Starting %CLIENTFILE% START "BT" /B "%CLIENTPATH%\%CLIENTFILE%" ) ) ELSE IF "%~1" == "end
-
Save the following as a .bat file... @ECHO OFF COLOR 1F SETLOCAL REM Program paths and filenames: REM ---------------------------------EDIT--------------------------------------- SET "VPNPATH=C:\Program Files (x86)\VPNetwork LLC\TorGuard" SET "VPNFILE=TorGuardDesktopQt.exe" SET "CLIENTPATH=C:\Program Files\BiglyBT" SET "CLIENTFILE=BiglyBT.exe" REM -------------------------------END EDIT------------------------------------- ECHO VPN and BT launcher ECHO --------------------- TASKLIST /FI "IMAGENAME EQ %VPNFILE%" 2>NUL | FIND /I /N "%VPNFILE%">NUL IF "%ERRORLEVEL%"=="1" ( TIMEO
-
I would like to write a VBS script to send email and would like someone to tell me if TorGuard documentation exists for that. If any examples exist I would of course be very interested in that. Scripting documentation that is non-email related would be great to have also... thks.
-
When should pre connection script fire in TG Client?
Torguard VPN User 1337 posted a question in VPN Windows Support
I'm using TG Client v0.3.78 on Windows 10. I have a pre connect script which enables my wired nic and disables my wifi nic a post connect script which enables my wifi nic and a disconnect script which disables both nics All 3 scripts work fine when tested at the command line When TG Client launches both nics are disabled (by design) When I hit connect the TG Client just waits for existence of a default route but doesn't appear to fire the pre connect script to enable the wired nic. (and therefore create a default route) What is the design here? -
Hi are there a script to prevent ip leakage on vpn disconnect (running on kodi, libreelec)? I found something firewall setting through iptables (up and down scripts), but I'm not sure about their working. Thanks John
-
TorGuard VPN Client Scripts to share
BrotherBear posted a question in VPN Questions and General Support
Hi, I made this Script to start uTorrent after 60 seconds while my VPN Connection is trying to connect. timeout 15 start c:\Users\USERNAME\AppData\Roaming\uTorrent\uTorrent.exe exit Since I noticed it takes some time to get my Dedicated IP address. TorGuard started the Script a little to early I hope someone have use for it Best Regards, BrooBee -
Hello, I'm trying to keep my DNS servers pointed to the TG servers: 104.223.91.194 104.223.91.210 91.121.113.58 91.121.113.7 In order to do this, I wrote a script for OSX #!/bin/bash sleep 5 networksetup -setdnsservers Wi-Fi 104.223.91.194 104.223.91.210 91.121.113.58 91.121.113.7 the script file has permissions: -r-xr-xr-x 1 username staff In some reason it doesn't set DNS after connection automatically. It requires me to run in manually with sudo from command line. Any idea what how to achieve that?