Jump to content

Search the Community

Showing results for tags 'script'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • The Lounge
    • General Stuff
    • Member Tutorials
    • TorGuard Reviews
  • TorGuard Software Releases
    • Network Status
    • TorGuard Client Releases
    • Android Client Releases
    • iOS App Releases
    • Chrome Extension Releases
    • Firefox Extension Releases
    • Edge Extension Releases
  • TorGuard VPN Support
    • VPN Questions and General Support
    • VPN Windows Support
    • VPN Mac Support
    • VPN Linux Support
    • VPN Router Support
    • iOS VPN Support
    • Android VPN Support
  • TorGuard Proxy Support
    • Proxy Questions and General Support
    • Firefox Extension Support
    • Chrome Extension Support

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...

Found 8 results

  1. 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!
  2. @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" ( IF "%ERRORLEVEL%"=="0" ( ECHO Exiting %CLIENTFILE% START "BT" /B "%CLIENTPATH%\%CLIENTFILE%" %EXITCMD% ) ELSE ( ECHO Something is missing or wrong parameters! ) ENDLOCAL EXIT Usage: file.bat "start" / "end"
  3. 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" ( TIMEOUT /T 10 /NOBREAK ECHO. ECHO Starting %VPNFILE% START "VPN" /B "%VPNPATH%\%VPNFILE%" TIMEOUT /T 30 ECHO. ) TASKLIST /FI "IMAGENAME EQ %CLIENTFILE%" 2>NUL | FIND /I /N "%CLIENTFILE%">NUL IF "%ERRORLEVEL%"=="1" ( ECHO Starting %CLIENTFILE% TIMEOUT /T 10 /NOBREAK START "BT" /B "%CLIENTPATH%\%CLIENTFILE%" ECHO. ) ECHO DONE! TIMEOUT /T 5 ENDLOCAL EXIT
  4. 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.
  5. 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? When is the pre connect script meant to fire? The post connect and disconnect scripts both run as expected. Thanks
  6. 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
  7. 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
  8. Hello, I'm trying to keep my DNS servers pointed to the TG servers: In order to do this, I wrote a script for OSX #!/bin/bash sleep 5 networksetup -setdnsservers Wi-Fi 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?
  • Create New...