- 09 Jan, 2012 4 commits
-
-
Avery Pennarun authored
-
Avery Pennarun authored
-
Avery Pennarun authored
And make sshuttle exit with a well-defined exit code (111) if it needs to reboot.
-
Avery Pennarun authored
On top of the bug that already existed in 10.6, Lion also makes the sysctl needed to fix the problem into a read-only variable, so we have to actually change it at kernel boot time and force people to reboot. Nice job, Apple.
-
- 07 Jan, 2012 4 commits
-
-
Avery Pennarun authored
Now that we imported the feature from redo, might as well use it.
-
Avery Pennarun authored
This makes it easier (possible?) to generate sshuttle.8 from sshuttle.md on MacOS. We also import the git-enhanced version numbering magic so the generated manpage can have a real version number.
-
Jimmy Tang authored
(apenwarr: also updates to the matching, latest minimal/do)
-
Avery Pennarun authored
Not sure if this will fix anything, but it might stop the problem reported on some MacOS versions where the firewall doesn't get cleaned up correctly.
-
- 03 Jan, 2012 2 commits
-
-
Avery Pennarun authored
If the subprocess was trying to write to its stdout/stderr, its process would never actually finish because it was blocked waiting for us to read it, but we were blocked on waitpid(). Instead, use waitpid(WNOHANG) and continually read from the subprocess (which should be a blocking operation) until it exits.
-
Avery Pennarun authored
I guess we were causing the kernel to syslog on every single packet on MacOS. Oops.
-
- 31 May, 2011 3 commits
- 30 May, 2011 1 commit
-
-
Avery Pennarun authored
Seems to affect Linux servers. Ed Maste says the patch fixes it for him.
-
- 16 May, 2011 1 commit
-
-
Brian May authored
-
- 08 May, 2011 4 commits
-
-
Avery Pennarun authored
I don't have a Mac that can build it. Hopefully ppc will run fine on ppc64.
-
Avery Pennarun authored
Just as a quick reminder, in case you're building a fat binary and you don't have all the architectures actually installed.
-
Grissiom authored
The ssh hostname should immediately follow the -r parameter.
-
Avery Pennarun authored
@objc.accessor isn't the right thing to use for a Core Data Validation function. Yowee, PyObjc sure is non-obvious.
-
- 04 May, 2011 6 commits
-
-
Avery Pennarun authored
-
Avery Pennarun authored
Some people don't have all of them installed, so auto-detect them by looking at the available arches in /usr/libexec.
-
Jonathan \"Duke\" Leto authored
-
Avery Pennarun authored
...and search for those null bytes before looking for the sync string. This helps when people have misconfigured .bashrc to print messages even in non-interactive mode. (On my Debian Lenny system, .bashrc doesn't seem to run when you do 'ssh localhost ls', but on MacOS servers, it does. Hmm...)
-
Avery Pennarun authored
This gets rid of an extra intermediate sh process on the server that we were keeping for no good reason, since it would exit as soon as python exited anyway.
-
Avery Pennarun authored
Someone on the mailing list reported getting these. Also centralize the list of these errors, so we don't have different parts of the code supporting a different subset of them. Now just use ssnet.NET_ERRS.
-
- 25 Apr, 2011 3 commits
-
-
Avery Pennarun authored
-
kaizoku authored
(Modified slightly by apenwarr)
-
Avery Pennarun authored
For some reason, on Linux servers this returns EINVAL. I don't like just treating EINVAL as non-fatal in general, so let's catch this specific case and ignore it. Reported by Reza Mohammadi on the mailing list. Interestingly, it's kind of hard to trigger this crash since the client would have to request the connection, and that connection shouldn't exist because the original client program would have already gotten EINVAL. But my MacOS machine can generate such a connection, so a MacOS->Linux sshuttle could trigger this.
-
- 07 Apr, 2011 1 commit
-
-
Avery Pennarun authored
A few people have reported that they have one or more invalid DNS servers in /etc/resolv.conf, which they don't notice because the normal resolver library just skips the broken ones. sshuttle would abort because it got an unexpected socket error, which isn't so good.
-
- 21 Mar, 2011 2 commits
-
-
Avery Pennarun authored
Bug reported by Ed Maste. The fix in later versions of python is documented here: http://mail.python.org/pipermail/python-bugs-list/2006-August/034667.html We're basically just doing the same thing when we see EINVAL. Note that this doesn't happen on Linux because connect() is more forgiving.
-
Avery Pennarun authored
So let's use %s instead of %r to print it, so that log messages can be more useful. This only affects one message at debug3 for now, so it's not too exciting.
-
- 20 Mar, 2011 1 commit
-
-
Avery Pennarun authored
This might happen occasionally on a flakey network. Reported by Ed Maste.
-
- 15 Mar, 2011 1 commit
-
-
Avery Pennarun authored
According to at least one report, there are some slightly insane servers out there that have /dev/null set to non-user-writable. This is totally broken, but we want sshuttle to work with as many servers as possible, so let's fake it up a bit instead. We don't try to avoid /dev/null on the client; sshuttle needs root access anyway, and if you're root, you can just fix your stupid /dev/null permissions.
-
- 28 Feb, 2011 1 commit
-
-
Jimmy Tang authored
-
- 27 Feb, 2011 4 commits
-
-
Avery Pennarun authored
This is mostly so that people know how to find the MacOS GUI app, which was previously rather non-obvious.
-
Avery Pennarun authored
Including a copy of minimal/do as 'do' in the top directory. To build, just run './do' or 'make'. This also builds the ui-macos directory automatically if you're on MacOS.
-
Avery Pennarun authored
Print a message to stderr, then abort. But only the first time.
-
Avery Pennarun authored
And its side effects. Reported by David Held / Antonio d'Souza.
-
- 21 Feb, 2011 1 commit
-
-
Avery Pennarun authored
If the previous run of sshuttle didn't manage to clean up after itself, it might have left the sshuttle-12300 chain intact, but the OUTPUT chain might not refer to it anymore. That would cause the *next* run of sshuttle to barf when trying to delete the OUTPUT entry, and then never get to the part where it just tries to delete the old chain so it can continue. Now only the last delete command (the one that actually deletes the chain) is fatal if it fails; the others just print a scary message, but that should only happen once in your life if you're unlucky.
-
- 08 Feb, 2011 1 commit
-
-
Avery Pennarun authored
First try running under python2, then python if that doesn't exist.
-