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


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

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

From Marion <mariond@facts.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-11-02 20:45 -0700
Organization BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID <10e98gc$2hta$1@nnrp.usenet.blueworldhosting.com> (permalink)
References (15 earlier) <10cskt5$f86$1@nnrp.usenet.blueworldhosting.com> <10csl4j$id7$1@nnrp.usenet.blueworldhosting.com> <10dtkef$24ul$1@nnrp.usenet.blueworldhosting.com> <10dtkjv$280m$1@nnrp.usenet.blueworldhosting.com> <10dv272$ghs$1@nnrp.usenet.blueworldhosting.com>

Cross-posted to 3 groups.

Show all headers | View raw


Marion wrote:
> Following this tutorial makes that tunnel about as iron-clad as I can make
> it, where I have tested it every way I can think of to ensure it works.

Here's a (probably) final summary of the psiphon.bat proxy utility
(as I haven't felt any need to update the script as I've been testing it
by using it all day, every day, for weeks, on my desktop Windows PC).

BTW, the psiphon.bat script is doing more than just launching Psiphon in
SOCKS mode. It is wrapping Psiphon with a set of helpers so that both
WinINET and WinHTTP aware applications can be forced to use the proxy.

Key points of what it does:

1. Elevation
   Checks if running as admin, relaunches with UAC if not.

2. PAC serving
   Starts mongoose.vbs to serve proxy.pac locally on 127.0.0.1.
    https://127.0.0.1/proxy.pac 
   Waits a couple of seconds to ensure the PAC file is available.
   Verifies with curl that proxy.pac is reachable before continuing.

3. Psiphon launch
   Starts psiphon3.exe in SOCKS mode, which listens on a local port.
   Waits a few seconds for Psiphon to initialize.

4. PAC logic
   Logs the event to proxy.log.
   Calls pac.cmd to apply PAC logic silently.
   Forces registry keys AutoConfigURL and AutoDetect so that IE/WinINET
    always point to http://127.0.0.1/proxy.pac and auto-detect is on.

5. WinHTTP sync
   Runs netsh winhttp import proxy source=ie so that WinHTTP apps
    (like Windows Update or services) inherit the same proxy settings.
   This is the step that extends Psiphon's reach beyond WinINET apps.

6. User interaction
   Leaves the console open with a pause so you we see output.
   Exits without killing the parent shell.

In effect, this script is bridging three layers:
 a. Psiphon provides a SOCKS proxy.
 b. Mongoose serves a PAC file that tells browsers & apps how to use it.
 c. The batch script forces WinINET and WinHTTP to consume that PAC &
    syncs them, so both browser traffic & system services are covered.

Compared to the ProxyBridge wrapper, this approach is more about
coaxing Windows' own proxy stacks (WinINET and WinHTTP) into alignment,
whereas ProxyBridge intercepts traffic at the socket level. Both solve
the same problem from different angles making sure all traffic really
goes through the proxy rather than leaking direct.
-- 
Understanding the issues is important because details are what matter!

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