SYMBOL INDEX (277 symbols across 21 files) FILE: setup.py function version_scheme (line 23) | def version_scheme(version): FILE: sshuttle/client.py function got_signal (line 22) | def got_signal(signum, frame): function check_daemon (line 30) | def check_daemon(pidfile): function daemonize (line 61) | def daemonize(): function daemon_cleanup (line 85) | def daemon_cleanup(): class MultiListener (line 95) | class MultiListener: method __init__ (line 97) | def __init__(self, type=socket.SOCK_STREAM, proto=0): method setsockopt (line 104) | def setsockopt(self, level, optname, value): method add_handler (line 111) | def add_handler(self, handlers, callback, method, mux): method listen (line 126) | def listen(self, backlog): method bind (line 141) | def bind(self, address_v6, address_v4): method print_listening (line 157) | def print_listening(self, what): class FirewallClient (line 169) | class FirewallClient: method __init__ (line 171) | def __init__(self, method_name): method setup (line 226) | def setup(self, subnets_include, subnets_exclude, nslist, method check (line 237) | def check(self): method start (line 242) | def start(self): method sethostip (line 273) | def sethostip(self, hostname, ip): method done (line 279) | def done(self): function expire_connections (line 290) | def expire_connections(now, mux): function onaccept_tcp (line 313) | def onaccept_tcp(listener, method, mux, handlers): function udp_done (line 350) | def udp_done(chan, data, method, sock, dstip): function onaccept_udp (line 357) | def onaccept_udp(listener, method, mux, handlers): function dns_done (line 379) | def dns_done(chan, data, method, sock, srcip, dstip, mux): function ondns (line 386) | def ondns(listener, method, mux, handlers): function _main (line 401) | def _main(tcp_listener, udp_listener, fw, ssh_cmd, remotename, function main (line 515) | def main(listenip_v6, listenip_v4, FILE: sshuttle/cmdline.py function parse_subnet4 (line 14) | def parse_subnet4(s): function parse_subnet6 (line 32) | def parse_subnet6(s): function parse_subnet_file (line 47) | def parse_subnet_file(s): function parse_subnets (line 69) | def parse_subnets(subnets_str): function parse_ipport4 (line 81) | def parse_ipport4(s): function parse_ipport6 (line 99) | def parse_ipport6(s): function parse_list (line 109) | def parse_list(list): function main (line 145) | def main(): FILE: sshuttle/firewall.py function rewrite_etc_hosts (line 15) | def rewrite_etc_hosts(hostmap, port): function restore_etc_hosts (line 49) | def restore_etc_hosts(port): function setup_daemon (line 54) | def setup_daemon(): function main (line 85) | def main(method_name, syslog): FILE: sshuttle/helpers.py function log (line 9) | def log(s): function debug1 (line 28) | def debug1(s): function debug2 (line 33) | def debug2(s): function debug3 (line 38) | def debug3(s): class Fatal (line 43) | class Fatal(Exception): function resolvconf_nameservers (line 47) | def resolvconf_nameservers(): function resolvconf_random_nameserver (line 56) | def resolvconf_random_nameserver(): function islocal (line 68) | def islocal(ip, family): function family_ip_tuple (line 83) | def family_ip_tuple(ip): function family_to_string (line 90) | def family_to_string(family): FILE: sshuttle/hostwatch.py function _is_ip (line 30) | def _is_ip(s): function write_host_cache (line 34) | def write_host_cache(): function read_host_cache (line 50) | def read_host_cache(): function found_host (line 68) | def found_host(hostname, ip): function _check_etc_hosts (line 82) | def _check_etc_hosts(): function _check_revdns (line 98) | def _check_revdns(ip): function _check_dns (line 109) | def _check_dns(hostname): function _check_netstat (line 120) | def _check_netstat(): function _check_smb (line 136) | def _check_smb(hostname): function _check_nmb (line 193) | def _check_nmb(hostname, is_workgroup, is_master): function check_host (line 224) | def check_host(hostname): function check_workgroup (line 233) | def check_workgroup(hostname): function _enqueue (line 238) | def _enqueue(op, *args): function _stdin_still_ok (line 244) | def _stdin_still_ok(timeout): function hw_main (line 253) | def hw_main(seed_hosts): FILE: sshuttle/linux.py function nonfatal (line 6) | def nonfatal(func, *args): function ipt_chain_exists (line 13) | def ipt_chain_exists(family, table, name): function ipt (line 30) | def ipt(family, table, *args): function ipt_ttl (line 46) | def ipt_ttl(family, *args): FILE: sshuttle/methods/__init__.py function original_dst (line 9) | def original_dst(sock): class Features (line 26) | class Features(object): class BaseMethod (line 30) | class BaseMethod(object): method __init__ (line 31) | def __init__(self, name): method set_firewall (line 35) | def set_firewall(self, firewall): method get_supported_features (line 38) | def get_supported_features(self): method get_tcp_dstip (line 45) | def get_tcp_dstip(self, sock): method recv_udp (line 48) | def recv_udp(self, udp_listener, bufsize): method send_udp (line 53) | def send_udp(self, sock, srcip, dstip, data): method setup_tcp_listener (line 59) | def setup_tcp_listener(self, tcp_listener): method setup_udp_listener (line 62) | def setup_udp_listener(self, udp_listener): method assert_features (line 65) | def assert_features(self, features): method setup_firewall (line 73) | def setup_firewall(self, port, dnsport, nslist, family, subnets, udp): method restore_firewall (line 76) | def restore_firewall(self, port, family, udp): method firewall_command (line 79) | def firewall_command(self, line): function _program_exists (line 83) | def _program_exists(name): function get_method (line 91) | def get_method(method_name): function get_auto_method (line 96) | def get_auto_method(): FILE: sshuttle/methods/nat.py class Method (line 7) | class Method(BaseMethod): method setup_firewall (line 14) | def setup_firewall(self, port, dnsport, nslist, family, subnets, udp): method restore_firewall (line 65) | def restore_firewall(self, port, family, udp): FILE: sshuttle/methods/pf.py class Generic (line 18) | class Generic(object): class pf_addr (line 29) | class pf_addr(Structure): class _pfa (line 30) | class _pfa(Union): method __init__ (line 40) | def __init__(self): method enable (line 57) | def enable(self): method disable (line 62) | def disable(self): method query_nat (line 66) | def query_nat(self, family, proto, src_ip, src_port, dst_ip, dst_port): method _add_natlook_ports (line 92) | def _add_natlook_ports(self, pnl, src_port, dst_port): method _get_natlook_port (line 96) | def _get_natlook_port(self, xport): method add_anchors (line 99) | def add_anchors(self, status=None): method _add_anchor_rule (line 106) | def _add_anchor_rule(self, type, name, pr=None): method add_rules (line 123) | def add_rules(self, rules): class FreeBsd (line 129) | class FreeBsd(Generic): method __new__ (line 132) | def __new__(cls): method __init__ (line 153) | def __init__(self): method add_anchors (line 156) | def add_anchors(self): method _add_anchor_rule (line 162) | def _add_anchor_rule(self, type, name): method add_rules (line 171) | def add_rules(self, includes, port, dnsport, nslist): class OpenBsd (line 201) | class OpenBsd(Generic): method __init__ (line 206) | def __init__(self): method add_anchors (line 228) | def add_anchors(self): method add_rules (line 235) | def add_rules(self, includes, port, dnsport, nslist): class Darwin (line 265) | class Darwin(FreeBsd): method __init__ (line 268) | def __init__(self): method enable (line 293) | def enable(self): method disable (line 298) | def disable(self): method add_anchors (line 302) | def add_anchors(self): method _add_natlook_ports (line 309) | def _add_natlook_ports(self, pnl, src_port, dst_port): method _get_natlook_port (line 313) | def _get_natlook_port(self, xport): function pfctl (line 325) | def pfctl(args, stdin=None): function pf_get_dev (line 339) | def pf_get_dev(): class Method (line 348) | class Method(BaseMethod): method get_tcp_dstip (line 350) | def get_tcp_dstip(self, sock): method setup_firewall (line 370) | def setup_firewall(self, port, dnsport, nslist, family, subnets, udp): method restore_firewall (line 398) | def restore_firewall(self, port, family, udp): method firewall_command (line 409) | def firewall_command(self, line): FILE: sshuttle/methods/tproxy.py function recv_udp (line 33) | def recv_udp(listener, bufsize): function recv_udp (line 64) | def recv_udp(listener, bufsize): function recv_udp (line 97) | def recv_udp(listener, bufsize): class Method (line 103) | class Method(BaseMethod): method get_supported_features (line 105) | def get_supported_features(self): method get_tcp_dstip (line 116) | def get_tcp_dstip(self, sock): method recv_udp (line 119) | def recv_udp(self, udp_listener, bufsize): method send_udp (line 128) | def send_udp(self, sock, srcip, dstip, data): method setup_tcp_listener (line 141) | def setup_tcp_listener(self, tcp_listener): method setup_udp_listener (line 144) | def setup_udp_listener(self, udp_listener): method setup_firewall (line 152) | def setup_firewall(self, port, dnsport, nslist, family, subnets, udp): method restore_firewall (line 237) | def restore_firewall(self, port, family, udp): FILE: sshuttle/options.py class OptDict (line 12) | class OptDict: method __init__ (line 14) | def __init__(self): method __setitem__ (line 17) | def __setitem__(self, k, v): method __getitem__ (line 23) | def __getitem__(self, k): method __getattr__ (line 28) | def __getattr__(self, k): function _default_onabort (line 32) | def _default_onabort(msg): function _intify (line 36) | def _intify(v): function _atoi (line 46) | def _atoi(v): function _remove_negative_kv (line 53) | def _remove_negative_kv(k, v): function _remove_negative_k (line 59) | def _remove_negative_k(k): function _tty_width (line 63) | def _tty_width(): class Options (line 77) | class Options: method __init__ (line 92) | def __init__(self, optspec, optfunc=getopt.gnu_getopt, method _gen_usage (line 104) | def _gen_usage(self): method usage (line 166) | def usage(self, msg=""): method fatal (line 173) | def fatal(self, s): method parse (line 179) | def parse(self, args): FILE: sshuttle/server.py function _ipmatch (line 19) | def _ipmatch(ipstr): function _ipstr (line 40) | def _ipstr(ip, width): function _maskbits (line 47) | def _maskbits(netmask): function _shl (line 56) | def _shl(n, bits): function _list_routes (line 60) | def _list_routes(): function list_routes (line 83) | def list_routes(): function _exc_dump (line 89) | def _exc_dump(): function start_hostwatch (line 94) | def start_hostwatch(seed_hosts): class Hostwatch (line 116) | class Hostwatch: method __init__ (line 118) | def __init__(self): class DnsProxy (line 123) | class DnsProxy(Handler): method __init__ (line 125) | def __init__(self, mux, chan, request): method try_send (line 135) | def try_send(self): method callback (line 164) | def callback(self, sock): class UdpProxy (line 188) | class UdpProxy(Handler): method __init__ (line 190) | def __init__(self, mux, chan, family): method send (line 200) | def send(self, dstip, data): method callback (line 208) | def callback(self, sock): function main (line 219) | def main(latency_control): FILE: sshuttle/ssh.py function readfile (line 12) | def readfile(name): function empackage (line 46) | def empackage(z, name, data=None): function connect (line 55) | def connect(ssh_cmd, rhostport, python, stderr, options): FILE: sshuttle/ssnet.py function _add (line 59) | def _add(l, elem): function _fds (line 64) | def _fds(l): function _nb_clean (line 75) | def _nb_clean(func, *args): function _try_peername (line 86) | def _try_peername(sock): class SockWrapper (line 100) | class SockWrapper: method __init__ (line 102) | def __init__(self, rsock, wsock, connect_to=None, peername=None): method __del__ (line 115) | def __del__(self): method __repr__ (line 122) | def __repr__(self): method seterr (line 129) | def seterr(self, e): method try_connect (line 135) | def try_connect(self): method noread (line 182) | def noread(self): method nowrite (line 188) | def nowrite(self): method too_full (line 197) | def too_full(self): method uwrite (line 200) | def uwrite(self, buf): method write (line 216) | def write(self, buf): method uread (line 220) | def uread(self): method fill (line 232) | def fill(self): method copy_to (line 241) | def copy_to(self, outwrap): class Handler (line 251) | class Handler: method __init__ (line 253) | def __init__(self, socks=None, callback=None): method pre_select (line 259) | def pre_select(self, r, w, x): method callback (line 263) | def callback(self, sock): class Proxy (line 274) | class Proxy(Handler): method __init__ (line 276) | def __init__(self, wrap1, wrap2): method pre_select (line 282) | def pre_select(self, r, w, x): method callback (line 304) | def callback(self, sock): class Mux (line 324) | class Mux(Handler): method __init__ (line 326) | def __init__(self, rsock, wsock): method next_channel (line 342) | def next_channel(self): method amount_queued (line 351) | def amount_queued(self): method check_fullness (line 357) | def check_fullness(self): method send (line 368) | def send(self, channel, cmd, data): method got_packet (line 378) | def got_packet(self, channel, cmd, data): method flush (line 424) | def flush(self): method fill (line 434) | def fill(self): method handle (line 446) | def handle(self): method pre_select (line 465) | def pre_select(self, r, w, x): method callback (line 470) | def callback(self, sock): class MuxWrapper (line 478) | class MuxWrapper(SockWrapper): method __init__ (line 480) | def __init__(self, mux, channel): method __del__ (line 488) | def __del__(self): method __repr__ (line 492) | def __repr__(self): method noread (line 495) | def noread(self): method nowrite (line 502) | def nowrite(self): method maybe_close (line 509) | def maybe_close(self): method too_full (line 516) | def too_full(self): method uwrite (line 519) | def uwrite(self, buf): method uread (line 527) | def uread(self): method got_packet (line 533) | def got_packet(self, cmd, data): function connect_dst (line 545) | def connect_dst(family, ip, port): function runonce (line 554) | def runonce(handlers, mux): FILE: sshuttle/ssyslog.py function start_syslog (line 9) | def start_syslog(): function stderr_to_syslog (line 16) | def stderr_to_syslog(): FILE: sshuttle/tests/test_firewall.py function setup_daemon (line 7) | def setup_daemon(): function test_rewrite_etc_hosts (line 24) | def test_rewrite_etc_hosts(tmpdir): function test_main (line 64) | def test_main(mock_get_method, mock_setup_daemon, mock_rewrite_etc_hosts): FILE: sshuttle/tests/test_helpers.py function test_log (line 12) | def test_log(mock_stderr, mock_stdout): function test_debug1 (line 47) | def test_debug1(mock_stderr, mock_stdout): function test_debug1_nop (line 62) | def test_debug1_nop(mock_stderr, mock_stdout): function test_debug2 (line 72) | def test_debug2(mock_stderr, mock_stdout): function test_debug2_nop (line 87) | def test_debug2_nop(mock_stderr, mock_stdout): function test_debug3 (line 97) | def test_debug3(mock_stderr, mock_stdout): function test_debug3_nop (line 112) | def test_debug3_nop(mock_stderr, mock_stdout): function test_resolvconf_nameservers (line 119) | def test_resolvconf_nameservers(mock_open): function test_resolvconf_random_nameserver (line 143) | def test_resolvconf_random_nameserver(mock_open): function test_islocal (line 165) | def test_islocal(): function test_family_ip_tuple (line 172) | def test_family_ip_tuple(): function test_family_to_string (line 183) | def test_family_to_string(): FILE: sshuttle/tests/test_methods_nat.py function test_get_supported_features (line 10) | def test_get_supported_features(): function test_get_tcp_dstip (line 18) | def test_get_tcp_dstip(): function test_recv_udp (line 27) | def test_recv_udp(): function test_send_udp (line 36) | def test_send_udp(): function test_setup_tcp_listener (line 43) | def test_setup_tcp_listener(): function test_setup_udp_listener (line 50) | def test_setup_udp_listener(): function test_assert_features (line 57) | def test_assert_features(): function test_firewall_command (line 71) | def test_firewall_command(): function test_setup_firewall (line 79) | def test_setup_firewall(mock_ipt_chain_exists, mock_ipt_ttl, mock_ipt): FILE: sshuttle/tests/test_methods_pf.py function test_get_supported_features (line 10) | def test_get_supported_features(): function test_get_tcp_dstip (line 19) | def test_get_tcp_dstip(): function test_recv_udp (line 44) | def test_recv_udp(): function test_send_udp (line 53) | def test_send_udp(): function test_setup_tcp_listener (line 60) | def test_setup_tcp_listener(): function test_setup_udp_listener (line 67) | def test_setup_udp_listener(): function test_assert_features (line 74) | def test_assert_features(): function test_firewall_command_darwin (line 92) | def test_firewall_command_darwin(mock_pf_get_dev, mock_ioctl, mock_stdout): function test_firewall_command_freebsd (line 115) | def test_firewall_command_freebsd(mock_pf_get_dev, mock_ioctl, mock_stdo... function test_firewall_command_openbsd (line 138) | def test_firewall_command_openbsd(mock_pf_get_dev, mock_ioctl, mock_stdo... function pfctl (line 157) | def pfctl(args, stdin=None): function test_setup_firewall_darwin (line 171) | def test_setup_firewall_darwin(mock_pf_get_dev, mock_ioctl, mock_pfctl): function test_setup_firewall_freebsd (line 253) | def test_setup_firewall_freebsd(mock_pf_get_dev, mock_ioctl, mock_pfctl): function test_setup_firewall_openbsd (line 334) | def test_setup_firewall_openbsd(mock_pf_get_dev, mock_ioctl, mock_pfctl): FILE: sshuttle/tests/test_methods_tproxy.py function test_get_supported_features_recvmsg (line 7) | def test_get_supported_features_recvmsg(mock_recvmsg): function test_get_supported_features_norecvmsg (line 16) | def test_get_supported_features_norecvmsg(): function test_get_tcp_dstip (line 24) | def test_get_tcp_dstip(): function test_recv_udp (line 33) | def test_recv_udp(mock_recv_udp): function test_send_udp (line 45) | def test_send_udp(mock_socket): function test_setup_tcp_listener (line 60) | def test_setup_tcp_listener(): function test_setup_udp_listener (line 69) | def test_setup_udp_listener(): function test_assert_features (line 80) | def test_assert_features(): function test_firewall_command (line 86) | def test_firewall_command(): function test_setup_firewall (line 94) | def test_setup_firewall(mock_ipt_chain_exists, mock_ipt_ttl, mock_ipt):