Commit Graph

  • 415be935d4 options.py: don't die if tty width is set to 0. Avery Pennarun 2011-01-22 16:42:32 -08:00
  • d4c9d31068 Oops, we were being overzealous about calling nowrite(). sshuttle-0.44a Avery Pennarun 2011-01-12 09:33:56 -08:00
  • 38bb7f3c21 If we get EPIPE on uwrite(), don't close, just do nowrite(). Avery Pennarun 2011-01-12 09:19:43 -08:00
  • b7f1530aef Remember which syscall got a particular stream-killing error. Avery Pennarun 2011-01-12 09:18:17 -08:00
  • 973d5a95a1 man page update for daemonization options. sshuttle-0.44 Avery Pennarun 2011-01-01 00:32:37 -08:00
  • 95ab6e7119 ssyslog.py: use daemon.notice instead of daemon.info Avery Pennarun 2011-01-01 00:28:31 -08:00
  • e6d7c44e27 Merge branch 'daemon' Avery Pennarun 2011-01-01 00:22:43 -08:00
  • 5bf6e40682 daemonization: make sure the firewall subproc sends to syslog too. Avery Pennarun 2011-01-01 00:06:04 -08:00
  • 8a5ae1a40a Rearrange daemonization/syslog stuff and make it more resilient. Avery Pennarun 2010-12-31 22:54:07 -08:00
  • 651b607361 If ssh dies right after starting, we might get ECONNRESET. Avery Pennarun 2010-12-31 23:46:47 -08:00
  • dc9a5e63c7 Minor tweak to help for the python= option. Avery Pennarun 2010-12-31 22:25:03 -08:00
  • 33bc55be27 Merge branch 'closing' Avery Pennarun 2010-12-31 22:12:54 -08:00
  • c3204d2728 Correctly close server connection when client disconnects. Avery Pennarun 2010-12-31 21:58:02 -08:00
  • b1edb226a5 "Too many open files" shouldn't be a fatal condition. Avery Pennarun 2010-12-31 21:32:51 -08:00
  • 7fa1c3c4e4 Listen on localhost:0 instead of 0.0.0.0:0 by default. Avery Pennarun 2010-12-31 21:21:17 -08:00
  • cca69eb496 Don't allow proxying of connections to the proxy port. Avery Pennarun 2010-12-31 21:05:41 -08:00
  • 91f65132be Get rid of ugly quotes on "Accept:" log messages. Avery Pennarun 2010-12-31 20:53:42 -08:00
  • 2ef3a301fb run in background (daemon) and option Roger 2010-12-05 20:05:35 +08:00
  • 41fd0348eb Fix a bug when packets are received on a channel after it closes. sshuttle-0.43a Avery Pennarun 2010-12-11 17:27:12 -08:00
  • 1907048dad Remove the never-used and misleading CMD_CLOSE. sshuttle-0.43 Avery Pennarun 2010-12-09 19:09:30 -08:00
  • 82e1d1c166 Fix memory leak of MuxWrapper object. Roger 2010-12-09 07:02:10 +08:00
  • a497132c01 Add debug messages for counting SockWrapper objects. Avery Pennarun 2010-12-09 18:31:41 -08:00
  • 7354600849 Fix a socket leak: delete object after close on both direction. Roger 2010-12-08 13:23:30 +08:00
  • 918725c485 Oops, earlier ipv6 patch didn't work if no -r option is specified. Avery Pennarun 2010-12-09 19:19:15 -08:00
  • 95c9b788a0 Add support for IPv6 remote hosts. Christopher Bowns 2010-11-19 15:11:58 -08:00
  • ef71751846 Add a sshuttle.8 manpage. Avery Pennarun 2010-11-09 01:59:03 -08:00
  • 32b4defa9b Add a new --ssh-cmd= option to let you override the ssh command. Avery Pennarun 2010-11-09 00:17:01 -08:00
  • 8b7605cc5d Remove the --noserver option. Avery Pennarun 2010-11-08 23:59:26 -08:00
  • bcf1892305 Make password prompting more clear. Avery Pennarun 2010-11-08 23:27:02 -08:00
  • fe742c928d firewall.py: don't die if a given sysctl doesn't exist. sshuttle-0.42 Avery Pennarun 2010-10-16 20:11:30 -06:00
  • 10ce1ee5d4 ipfw: use 'delete' instead of 'del' to avoid a warning on freebsd. Avery Pennarun 2010-10-05 13:29:12 -04:00
  • a32305a275 server.py: don't send partial hostwatch lists. Avery Pennarun 2010-10-04 02:45:21 -07:00
  • ae32fe2a59 Merge branch 'python23' - python 2.3 compatibility sshuttle-0.41 Avery Pennarun 2010-10-02 16:34:24 -07:00
  • 5070f2ffcf Oops, missed another << operator to replace with _shl(). Avery Pennarun 2010-10-02 15:26:29 -07:00
  • b219b523c2 socket.SHUT_RD and socket.SHUT_WR don't exist in python 2.3. Avery Pennarun 2010-10-02 15:24:04 -07:00
  • 52fbb2ebbe compat/ssubprocess.py: some python versions don't have os.closerange(). Avery Pennarun 2010-10-01 18:40:53 -07:00
  • 76d576a375 _nb_clean: don't catch EPIPE after all. Avery Pennarun 2010-10-01 18:25:03 -07:00
  • f6e6515a3c Fix busy-waiting in two situations: Avery Pennarun 2010-10-01 18:22:36 -07:00
  • 84376284db Factor out common mainloop code between client and server. Avery Pennarun 2010-10-01 17:36:09 -07:00
  • b0f061e204 Implement our own left-shift operator to shut up python 2.3 warnings. Avery Pennarun 2010-10-01 14:46:34 -07:00
  • c403a83ab8 Don't use set() since it's not in python 2.3. Avery Pennarun 2010-10-01 14:23:27 -07:00
  • da774f3f46 import and use subprocess.py from python 2.6. Avery Pennarun 2010-10-01 12:06:56 -07:00
  • 7d3028dee2 Remove list comprehensions for python 2.3 compatibility. Avery Pennarun 2010-10-01 11:55:45 -07:00
  • 518df41049 ssh.py: don't os.setsid(). Avery Pennarun 2010-10-01 11:35:13 -07:00
  • 76bbbfd67b Catch the exception thrown when ssh can't connect. Avery Pennarun 2010-10-01 10:34:20 -07:00
  • 6e336c09bf README: remove the note about MacOS not working. It works now! sshuttle-0.40 Avery Pennarun 2010-10-01 00:43:01 -07:00
  • f950a3800b BSD: sysctl net.inet.ip.forwarding=1 is not necessary. Avery Pennarun 2010-10-01 00:39:30 -07:00
  • 8b4466b802 BSD ipfw: switch from 'established' to 'keep-state/check-state'. Avery Pennarun 2010-10-01 00:00:45 -07:00
  • 4bf4f70c67 ssnet: recover slightly more gracefully from an infinite forwarding loop. Avery Pennarun 2010-09-30 23:25:08 -07:00
  • 410b9d4229 Magic incantation to mostly fix MacOS 10.6. Avery Pennarun 2010-09-30 23:19:18 -07:00
  • 2ef1c6a4c4 latest options.py from bup, now with tty-width guessing. Avery Pennarun 2010-09-21 18:03:17 -07:00
  • b35cfbd022 hostwatch: add missing errno import Frederik Deweerdt 2010-09-21 17:15:46 -07:00
  • dcba684766 If netstat -rn returns an error, make that non-fatal. Avery Pennarun 2010-09-04 11:29:11 -07:00
  • ee74110cff add option to allow the remote python binary's name/path to be specified chocolateboy 2010-09-03 15:46:25 +01:00
  • 5bf8687ce3 Import latest options.py from bup-0.17. Avery Pennarun 2010-09-03 22:58:44 -07:00
  • 6bdb9517fd README: fix some out-of-date system requirements stuff. Avery Pennarun 2010-07-25 00:16:09 -04:00
  • f1b33dab29 Add a --exclude option for excluding subnets from routing. sshuttle-0.31 Avery Pennarun 2010-07-15 14:07:01 -04:00
  • 3a25f709e5 log(): don't abort if we fail to write to stderr. Avery Pennarun 2010-05-16 17:55:46 -04:00
  • a8b3d69856 ssh.py: try harder to find required *.py files. Avery Pennarun 2010-05-12 13:48:37 -04:00
  • 2d4f6a4308 client: add a debug1() message for connecting/connected. Avery Pennarun 2010-05-11 19:04:44 -04:00
  • d435ed837d Created a googlegroups.com mailing list for sshuttle. Avery Pennarun 2010-05-11 15:26:06 -04:00
  • 2d77403a0b Don't use try/except/finally so that python 2.4 works. Avery Pennarun 2010-05-10 13:58:52 -04:00
  • 77cf37e0fa firewall: preserve permissions on /etc/hosts sshuttle-0.30 Avery Pennarun 2010-05-09 11:22:05 -04:00
  • 384d0e7c1d hostwatch: watch "netstat -n" for IP addresses. Avery Pennarun 2010-05-08 16:11:24 -04:00
  • 5a4a2ab7f9 Oops, previous change to ipfw settings prevented cleanup from working. Avery Pennarun 2010-05-08 03:35:57 -04:00
  • 33efa5ac62 Added new --auto-hosts and --seed-hosts options to the client. Avery Pennarun 2010-05-08 03:03:12 -04:00
  • a2ea5ab455 Add 'sshuttle --hostwatch' subcommand. Avery Pennarun 2010-05-08 01:30:34 -04:00
  • 680941cb0c BSD: "ipfw add %d accept ip from any to any established" Avery Pennarun 2010-05-07 20:06:26 -04:00
  • 7043195043 Add -N (--auto-nets) option for auto-discovering subnets. Avery Pennarun 2010-05-07 20:02:04 -04:00
  • 77935bd110 ssnet: EHOSTUNREACH and ENETUNREACH are non-fatal errors. Avery Pennarun 2010-05-07 12:30:03 -04:00
  • 8fe3592be3 Don't require the remote server to have sshuttle installed. sshuttle-0.20 Avery Pennarun 2010-05-04 23:21:16 -04:00
  • ba19d9c72d Rename iptables->firewall. Avery Pennarun 2010-05-04 22:05:49 -04:00
  • 096bbcc576 Client "almost" works on MacOS and maybe FreeBSD. Avery Pennarun 2010-05-04 18:24:43 -04:00
  • 7bd0efd57b Oops, broke --noserver mode at some point. sshuttle-0.11 Avery Pennarun 2010-05-04 18:28:31 -04:00
  • 8173925bcd ssh.py: allow hostnames of the form hostname:port Avery Pennarun 2010-05-04 13:07:51 -04:00
  • 0cdd72c830 README: clarify that the server doesn't need Linux or iptables. Avery Pennarun 2010-05-03 16:35:35 -04:00
  • 403a088e07 README: add information about which iptables modules are needed. Avery Pennarun 2010-05-03 13:07:53 -04:00
  • 4a93d3362d README: fix some formatting for easier text-mode readability. Avery Pennarun 2010-05-03 13:07:30 -04:00
  • 33a73056ee README: update to use real markdown-style headings. Avery Pennarun 2010-05-02 21:46:51 -04:00
  • 4a462258f5 ssh.py: support finding sshuttle in "$HOME/.../sshuttle" Avery Pennarun 2010-05-02 21:24:31 -04:00
  • a5fc93c841 iptables: if client dies before sending GO, just quit. Avery Pennarun 2010-05-02 21:06:31 -04:00
  • ea6bb5c255 iptables: die quietly if parent process dies. Avery Pennarun 2010-05-02 21:01:30 -04:00
  • 2c2bea80bc iptables: try launching with sudo, then su, then directly. Avery Pennarun 2010-05-02 20:54:10 -04:00
  • 7d674e9e37 ssnet: throw a nicer-looking Fatal when the mux connection dies. Avery Pennarun 2010-05-02 20:53:29 -04:00
  • a21e8c7a3c iptables: more resilient startup/cleanup. Avery Pennarun 2010-05-02 19:29:03 -04:00
  • ca14231aae Whoops, we were spinning in the server when the mux outbuf was full. Avery Pennarun 2010-05-02 06:17:43 -04:00
  • 6c2dc54b9e More latency fixes: use a PING/PONG pair to limit queue length. Avery Pennarun 2010-05-02 05:39:17 -04:00
  • 5d1390927d Don't overfill the mux's output buffer. Avery Pennarun 2010-05-02 05:06:51 -04:00
  • da06286427 ssnet: when a connection error occurs, stop trying to connect. Avery Pennarun 2010-05-02 03:52:46 -04:00
  • 616d0680d1 Add a README file based on my blog entry. Avery Pennarun 2010-05-02 03:42:59 -04:00
  • 9b23fd2c01 Do non-blocking connect(). sshuttle-0.10 Avery Pennarun 2010-05-02 02:43:10 -04:00
  • 81c89ce9be Don't bother with a backtrace when we produce certain fatal errors. Avery Pennarun 2010-05-02 02:23:42 -04:00
  • 2dd328ada4 Add a -v (and -vv) flag and decrease default message verbosity. Avery Pennarun 2010-05-02 02:14:20 -04:00
  • a244b325cb iptables: add a PREROUTING rule so we can proxy for other machines too. Avery Pennarun 2010-05-02 02:00:19 -04:00
  • 10069f99e2 Clean up SockWrapper.peername stuff. Avery Pennarun 2010-05-02 01:52:05 -04:00
  • ea12048418 ssh.py: use 'exec sshuttle' to get rid of the extra sh process. Avery Pennarun 2010-05-02 01:30:40 -04:00
  • bfd506dcdc Improve some debugging information to find the weird data problem. Avery Pennarun 2010-05-02 01:18:55 -04:00
  • 915a96b0ec We now have a server that works... some of the time. Avery Pennarun 2010-05-02 00:52:06 -04:00
  • d435c41bdb stdin and stdout have different fds, so make SockWrapper take *two* socks. Avery Pennarun 2010-05-01 23:32:30 -04:00
  • 5f0bfb5d9e Basic implementation of a multiplex protocol - client side only. Avery Pennarun 2010-05-01 23:14:42 -04:00