You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
3.0 KiB

Asciidoc man page rework (#699) * Add 'tunnel_address' support for json config parser And allow ss-tunnel to use the newly introduced parser. Signed-off-by: Adam Anonymous <anonymous_temp_user@yahoo.co.jp> * Add "mode" support for jconf Now jconf supports "mode" setting, allowed values are "tcp_only", "tcp_and_udp" and "udp_only". Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Use jconf "mode" for server/local/tunnel/manager Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Add per-project vimrc to gitignore As the coding style differs from kernel and other projects, so such project vimrc should be helpful. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Introduce asciidoc based documentation framework Use asciidoc for new documentation framework, which could not only output man pages, but also htmls. And asciidoc documentation is much more human-readable than roff man pages. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert shadowsocks-libev man page to asciidoc The port to asciidoc has some format change compared to old one. The most obvious one is the options listed in SYNOPSIS. Now the options list is not split into 2/3 columns, or we must use asciidoc tables and introduce table frames. Other small change includes the removal of AUTHOR sector, as it's not an expendable method to update AUTHOR sector every time it gets updated. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-local man page to asciidoc Also modify gitignore, since it use too generic rules to ignore such documentation. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-manager man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-nat man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-redir man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-server man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-tunnel man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Remove old roff man pages Welcome to the new age of asciidoc. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Add equivalent tables for command line options and config file Now user can get a more clear view of config file and command line options. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
8 years ago
  1. ss-local(1)
  2. ===========
  3. NAME
  4. ----
  5. ss-local - shadowsocks client as socks5 proxy, libev port
  6. SYNOPSIS
  7. --------
  8. *ss-local*
  9. [-Auv] [-h|--help]
  10. [-s <server_host>] [-p <server_port>] [-l <local_port>]
  11. [-k <password>] [-m <encrypt_method>] [-f <pid_file>] [-t <timeout>]
  12. [-c <config_file>] [-b <interface>] [-a <user_name>]
  13. [-n <nofile>] [--fast-open] [--acl <acl_config>]
  14. DESCRIPTION
  15. -----------
  16. *Shadowsocks-libev* is a lightweight and secure socks5 proxy.
  17. It is a port of the original shadowsocks created by clowwindy.
  18. *Shadowsocks-libev* is written in pure C and takes advantage of libev to
  19. achieve both high performance and low resource consumption.
  20. *Shadowsocks-libev* consists of five components. `ss-local`(1) works as a standard
  21. socks5 proxy on local machines to proxy TCP traffic.
  22. For more information, check out `shadowsocks-libev`(8).
  23. OPTIONS
  24. -------
  25. -s <server_host>::
  26. Set the server's hostname or IP.
  27. -p <server_port>::
  28. Set the server's port number.
  29. -l <local_port>::
  30. Set the local port number.
  31. -k <password>::
  32. Set the password. The server and the client should use the same password.
  33. -m <encrypt_method>::
  34. Set the cipher.
  35. +
  36. *Shadowsocks-libev* accepts 18 different ciphers:
  37. +
  38. table, rc4, rc4-md5, aes-128-cfb, aes-192-cfb, aes-256-cfb, bf-cfb,
  39. camellia-128-cfb, camellia-192-cfb, camellia-256-cfb, cast5-cfb, des-cfb,
  40. idea-cfb, rc2-cfb, seed-cfb, salsa20, chacha20 and chacha20-ietf.
  41. +
  42. The default cipher is 'table'.
  43. +
  44. If built with PolarSSL or custom OpenSSL libraries, some of
  45. these ciphers may not work.
  46. -a <user_name>::
  47. Run as a specific user.
  48. -f <pid_file>::
  49. Start shadowsocks as a daemon with specific pid file.
  50. -t <timeout>::
  51. Set the socket timeout in seconds. The default value is 60.
  52. -c <config_file>::
  53. Use a configuration file.
  54. +
  55. Refer to `shadowsocks-libev`(8) 'CONFIG FILE' section for more details.
  56. -n <number>::
  57. Specify max number of open files.
  58. +
  59. Only available on Linux.
  60. -i <interface>::
  61. Send traffic through specific network interface.
  62. +
  63. For example, there are three interfaces in your device,
  64. which is lo (127.0.0.1), eth0 (192.168.0.1) and eth1 (192.168.0.2).
  65. Meanwhile, you configure `ss-local` to listen on 0.0.0.0:8388 and bind to eth1.
  66. That results the traffic go out through eth1, but not lo nor eth0.
  67. This option is useful to control traffic in multi-interface environment.
  68. -b <local_address>::
  69. Specify local address to bind.
  70. -u::
  71. Enable UDP relay.
  72. -A::
  73. Enable onetime authentication.
  74. --fast-open::
  75. Enable TCP fast open.
  76. +
  77. Only available with Linux kernel > 3.7.0.
  78. --acl <acl_config>::
  79. Enable ACL (Access Control List) and specify config file.
  80. -v::
  81. Enable verbose mode.
  82. -h|--help::
  83. Print help message.
  84. EXAMPLE
  85. -------
  86. `ss-local`(1) can be started from command line and run in foreground.
  87. Here is an example:
  88. ....
  89. # Start ss-local with given parameters
  90. ss-local -s example.com -p 12345 -l 1080 -k foobar -m aes-256-cfb
  91. ....
  92. SEE ALSO
  93. --------
  94. `ss-server`(1),
  95. `ss-tunnel`(1),
  96. `ss-redir`(1),
  97. `ss-manager`(1),
  98. `shadowsocks-libev`(8),
  99. `iptables`(8),
  100. /etc/shadowsocks-libev/config.json