Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-10 > #187599

Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware

From Marion <marionf@fact.com>
Newsgroups alt.comp.os.windows-10, alt.comp.os.windows-11, alt.msdos.batch
Subject Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware
Date 2025-09-21 04:34 +0000
Organization BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID <10anv94$2pu8$1@nnrp.usenet.blueworldhosting.com> (permalink)
References (6 earlier) <10ago7s$b82$1@nnrp.usenet.blueworldhosting.com> <10agp8c$1rct$1@nnrp.usenet.blueworldhosting.com> <10agrsh$20b3$1@nnrp.usenet.blueworldhosting.com> <10ah05e$3son0$1@dont-email.me> <10ai8ss$25rr$1@nnrp.usenet.blueworldhosting.com>

Cross-posted to 3 groups.

Show all headers | View raw


UPDATE

In another thread today I described how I installed & ran a YouTube client 
that allowed me to view YouTube videos without logging in & without any ads
(both the type of ads that YouTube inserts & even creator-inserted ads).
 a. Pre-roll ads (before the video starts)
 b. Mid-roll ads (interrupting the video)
 c. Banner ads (overlaying the video)
 d. Sidebar ads (on the YouTube page)
 e. Sponsor blocks (remove known ads inserted by creators)
    <https://freetubeapp.io/>

The YouTube client I tested today was FreeTube, which worked well.
But it was obstinate during a proxy that it didn't like my proxy.
Worse, AFTER the proxy was shut down, it failed until I rebooted.

Huh?
Why did FreeTube barf when I killed the proxy but nothing did before it?

Turns out my script to kill the proxy needed a LOT of improvements!
The FreeTube "app" is apparently a web browser using system-proxy settings.

It was still using "some" of the proxy settings even though the proxy
was no longer running. I hadn't noticed before that this happened.

Hence, here's a working script to KILL the proxy & wipe it off Windows.

 @echo off
 REM C:\data\sys\batch\psiphonstop.bat version 1.0 20250819 
 REM This is psiphonstop.bat version 1.9
 REM Close Psiphon GUI first to let it attempt its own cleanup.
 REM Then run psiphonstop.bat to:
 REM 1. Check for any lingering processes (Psiphon or Mongoose).
 REM 2. Kill any lingering processes (Psiphon or Mongoose).
 REM 3. Reset WinINET and WinHTTP proxy settings.
 REM 4. Log the shutdown for traceability in mongoose & proxy logs.
 REM Additions in version 1.0 (41 lines)
 REM As admin, it stops Psiphon GUI, Mongoose, and resets proxy settings
 REM Logs shutdown event to proxy.log and mongoose.log for lifecycle tracking
 REM Changes in version 1.1 (46 lines)
 REM Added Psiphon GUI termination step (v1.1)
 REM Added [STOP] prefix to log entries for clarity (v1.1)
 REM Changes in version 1.2 (56 lines)
 REM Added conditional checks for running processes before attempting kill/log
 REM Only logs shutdown events if process was found running
 REM 20250920 psiphonstop.bat 1.3 (68 lines)
 REM Fixed Registry Key Not Found error when run with nothing to do
 REM Fixed "reset" not a command error by removing the ampersand in the echo
 REM 20250920 psiphonstop.bat 1.4 (79 lines)
 REM Added better error checking to see if Psiphon or Mongoose are running
 REM Added a closer line in the console 
 REM 20250920 psiphonstop.bat 1.5 (89 lines)
 REM Added better explanation of the registry changes in the console output
 REM 20250920 psiphonstop.bat 1.6 (108 lines)
 REM Set ProxyEnable to 0 so the system knows to bypass proxies (v1.6)
 REM Clear ProxyOverride if Psiphon used custom bypass rules (v1.6)
 REM Flush DNS and restart networking stack (v1.6)
 REM 20250920 psiphonstop.bat 1.7 (121 lines)
 REM Exported keys before deletion, just in case (v1.7)
 REM fully refresh network adaptor (optional) v1.7
 REM 20250920 psiphonstop.bat 1.8 (138 lines)
 REM Check for environment proxy settings (v1.8)
 REM add browser cache flush and settings reminder (v1.8)
 REM add summary log entry with system state (v1.8)
 REM Add a success beep or visual cue (v1.8)
 REM 20250920 psiphonstop.bat 1.9 (152 lines)
 REM Added version banner
 REM Log envvars (v1.9)
 REM Add browser-specific cleanup reminders (v1.9)
 
 echo ----------------------------------------
 echo Psiphonstop.bat v1.9 - Proxy Reset Tool
 echo ----------------------------------------
 
 :: --- Elevate to admin if not already ---
 >nul 2>&1 net session
 if %errorlevel% neq 0 (
     echo Requesting administrative privileges...
     powershell -Command "Start-Process '%~f0' -Verb RunAs"
     exit /b
 )
 
 REM Check if Psiphon GUI is running (updated for better errors) v1p4
 tasklist /fi "imagename eq psiphon3.exe" | find /i "psiphon3.exe" >nul
 if %errorlevel%==0 (
     taskkill /f /im psiphon3.exe >nul 2>&1
     echo [%DATE% %TIME%] [STOP] Psiphon GUI terminated by psiphonstop.bat >> C:\data\sys\log\proxy.log
 ) else (
     echo [%DATE% %TIME%] [STOP] No Psiphon GUI process found >> C:\data\sys\log\proxy.log
 )
 
 REM Check if Mongoose is running (updated checks in v1.4)
 tasklist /fi "imagename eq mongoose.exe" | find /i "mongoose.exe" >nul
 if %errorlevel%==0 (
     taskkill /f /im mongoose.exe >nul 2>&1
     echo [%DATE% %TIME%] [STOP] Mongoose terminated by psiphonstop.bat >> C:\data\sys\batch\mongoose.log
 ) else (
     echo [%DATE% %TIME%] [STOP] No Mongoose process found >> C:\data\sys\batch\mongoose.log
 )
 
 
 REM Exported keys before deletion, just in case (v1.7)
 reg export "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" C:\data\sys\log\proxy_before_reset.reg
 
 REM Reset WinINET proxy settings
 echo Resetting WinINET proxy registry values...
 REM Fixed Registry Key Not Found error when run with nothing to do (v1.3)
 :: reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /f >nul
 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /f 2>nul
 
 echo reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /f 2>nul
 
 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoDetect /t REG_DWORD /d 0 /f >nul
 
 echo reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoDetect /t REG_DWORD /d 0 /f >nul
 
 :: reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /f >nul
 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /f 2>nul
 echo reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /f 2>nul
 
 :: reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /f >nul
 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /f 2>nul
 echo reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /f 2>nul
 
 REM v1p6
 REM Deleting ProxyEnable and ProxyServer does not restore direct access.
 REM Set ProxyEnable to 0 so the system knows to bypass proxies (v1.6)
 REM Windows interprets missing values differently than explicitly set ones.
 REM Explicitly set ProxyEnable to 0 so the system knows to bypass proxies.
 REM Now Windows knows to use direct access, not ´no proxy server defined.¡
 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
 
 REM Clear ProxyOverride if Psiphon used custom bypass rules (v1.6)
 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /f
 
 REM Flush DNS and restart networking stack (v1.6)
 ipconfig /flushdns
 netsh int ip reset
 
 echo Registry operations completed with Proxy settings cleared or updated.
 
 REM Reset WinHTTP proxy settings
 netsh winhttp reset proxy
 
 REM Always log proxy reset regardless of process status
 echo [%DATE% %TIME%] [STOP] Proxy settings reset by psiphonstop.bat >> C:\data\sys\log\proxy.log
 
 REM Fixed "reset" unrecognized command error by removing ampersand (v1p3)
 :: echo Psiphon, proxy settings, and Mongoose have been logged & reset.
 echo "Psiphon, proxy settings and Mongoose have been logged and reset."
 
 REM Check for environment proxy settings (v1.8)
 set | findstr /i proxy
 REM Log envvars (v1.9)
 set | findstr /i proxy >> C:\data\sys\log\proxy_envvars.log
 
 REM fully refresh network adaptor (optional) v1.7
 netsh winsock reset
 
 REM add browser cache flush and settings reminder (v1.8)
 echo Reminder: Disable any proxy/VPN browser extensions manually.
 echo Reminder: Clear browser cache or try Incognito mode if issues persist.
 
 REM Add browser-specific cleanup reminders (v1.9)
 echo Chrome: chrome://settings/system > disable ´Use proxy¡
 echo Firefox: about:preferences > Network Settings > ´No proxy¡ 
 
 REM add summary log entry with system state (v1.8)
 echo [%DATE% %TIME%] [STOP] Proxy teardown complete. System set to direct access. >> C:\data\sys\log\proxy.log
 
 REM Added a console output for closure (v1.4)
 echo [%DATE% %TIME%] Psiphonstop.bat completed. See logs for details.
 
 REM Add a success beep or visual cue (v1.8)
 echo Operation complete. System proxy is OFF.
 powershell -c "[console]::beep(1000,300)"
 
 pause
 

-- 
That thread about YouTube clients is this one from today:
From: Marion <marionf@fact.com>
alt.comp.os.windows-10,alt.comp.os.windows-11,alt.comp.microsoft.windows
What are your experiences with free Windows YouTube replacement clients?
Date: Sat, 20 Sep 2025 22:32:49 -0000 (UTC)
Message-ID: <10ana2g$2noo$1@nnrp.usenet.blueworldhosting.com>

Back to alt.comp.os.windows-10 | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 07:30 +0000
  Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 07:53 +0000
    Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 08:15 +0000
      Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 08:46 +0000
        Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 09:59 +0000
          Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 10:11 +0000
            Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 10:51 +0000
              Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 11:09 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-18 11:53 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware "R.Wieser" <address@is.invalid> - 2025-09-18 15:06 +0200
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-19 00:42 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-21 04:34 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-22 20:31 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-22 20:41 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-23 17:22 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-09-28 06:10 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-10-17 05:40 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <marionf@fact.com> - 2025-10-17 05:44 +0000
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <mariond@facts.com> - 2025-10-29 11:55 -0600
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <mariond@facts.com> - 2025-10-29 11:58 -0600
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <mariond@facts.com> - 2025-10-30 00:56 -0600
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <mariond@facts.com> - 2025-11-02 20:45 -0700
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <mariond@facts.com> - 2025-11-02 20:58 -0700
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marion <mariond@facts.com> - 2025-11-03 10:41 -0700
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marian <marianjones@helpfulpeople.com> - 2025-12-01 15:38 -0700
                Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marian <marianjones@helpfulpeople.com> - 2025-12-02 01:11 -0700
  Re: Tutorial: Build a one-click Windows custom SOCKS5 proxy client using freeware Marian <marianjones@helpfulpeople.com> - 2025-12-02 09:19 -0700

csiph-web