<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">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.<div class=""><br class=""></div><div class="">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).<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 28, 2021, at 12:44, Eric Borisch <<a href="mailto:eborisch@gmail.com" class="">eborisch@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">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:</div><div class=""><br class=""></div><div class="">#!/bin/sh</div><div class="">while true; do</div><div class="">   ssh -D proxy_host</div><div class="">   sleep 5<br class=""></div><div class="">done</div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">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.<br class=""></div><div class=""><br class=""></div><div class="">Good luck, <br class=""></div><div class="">  - Eric<br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 28, 2021 at 10:46 AM Richard L. Hamilton <<a href="mailto:rlhamil@smart.net" class="">rlhamil@smart.net</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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.<br class="">
<br class="">
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.<br class="">
<br class="">
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?<br class="">
<br class="">
Sometimes, my main connectivity is cr@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. :-)<br class="">
<br class="">
</blockquote></div>
</div></blockquote></div><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div>-- <br class="">eMail:<span class="Apple-tab-span" style="white-space: pre;">                          </span><a href="mailto:rlhamil@smart.net" class="">mailto:rlhamil@smart.net</a></div><div><br class=""></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></div></body></html>