socks proxy server for macOS?

Richard L. Hamilton rlhamil at smart.net
Sat Aug 28 17:23:41 UTC 2021


Thanks - that's a bit more brute force than I had in mind, but it should do the job, at least for a week or two until things get more normal, although in the long run, I'd still rather have a socks server other than ssh.

I use screen rather than tmux myself, but that's because I already had it on everything (comes with macOS at least back to the oldest I have, and likewise all or just about all of the Solaris and Linux I have, so under normal circumstances, when I run a Terminal window with 21 tabs worth of different systems or VMs being updated all at once, each is happening in screen in case something hiccups, so that the sessions can be resumed).

> On Aug 28, 2021, at 12:44, Eric Borisch <eborisch at gmail.com> wrote:
> 
> If ssh -D is dying, it's likely due to a dropped connection; you could always (assuming you have public keys set for passwordless connection) make a script like:
> 
> #!/bin/sh
> while true; do
>    ssh -D proxy_host
>    sleep 5
> done
> 
> Every time SSH exits, this will kick it off again, with a sleep in there so if there's no connection at all you're not trying to spawn SSH hundreds of times a second.
> 
> Run it inside a tmux that you can detach from for ease of management; you can always get back to it, but you can also detach and let it happily run in the background. I'd also use -o serveraliveinterval=30 to make sure the connection is kept alive.
> 
> Good luck, 
>   - Eric
> 
> On Sat, Aug 28, 2021 at 10:46 AM Richard L. Hamilton <rlhamil at smart.net <mailto:rlhamil at smart.net>> wrote:
> Is there a robust socks5 proxy server for macOS? And no, I do not mean the -D option of ssh; although it works, it dies daily, more or less.
> 
> For FreeBSD, Linux, and Solaris, it seems that ss5 is often mentioned, And if something that may not need much OS specific code builds on FreeBSD, I'd like to think it wouldn't be too hard to build on macOS; but I haven't tried yet, and haven't found an example of someone else trying.
> 
> Has anyone built ss5 for macOS? Or is there a port of some socks5 server that could run, preferably in background (LaunchDaemon or whatever) on macOS?
> 
> Sometimes, my main connectivity is cr at p, and my Macs  aren't close enough together to use the phone's WiFi (no stronger than it has to be) all as a hotspot; and macOS client side socks5 proxy support (to the laptop with the iPhone plugged into it) is decent enough to use the App Store and some other things to keep them somewhat up to date. So until the weather cools down some, this would be really helpful. :-)
> 

-- 
eMail:				mailto:rlhamil at smart.net




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20210828/a794e0bf/attachment.htm>


More information about the macports-users mailing list