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.

157 lines
3.7 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-server(1)
  2. ============
  3. NAME
  4. ----
  5. ss-server - shadowsocks server, libev port
  6. SYNOPSIS
  7. --------
  8. *ss-server*
  9. [-AuUv] [-h|--help]
  10. [-s <server_host>] [-p <server_port>] [-l <local_port>]
  11. [-k <password>] [-m <encrypt_method>] [-f <pid_file>]
  12. [-t <timeout>] [-c <config_file>] [-i <interface>]
  13. [-a <user_name>] [-d <addr>] [-n <nofile>]
  14. [--fast-open] [--acl <acl_config>]
  15. [--manager-address <path_to_unix_domain>]
  16. DESCRIPTION
  17. -----------
  18. *Shadowsocks-libev* is a lightweight and secure socks5 proxy.
  19. It is a port of the original shadowsocks created by clowwindy.
  20. *Shadowsocks-libev* is written in pure C and takes advantage of libev to
  21. achieve both high performance and low resource consumption.
  22. *Shadowsocks-libev* consists of five components.
  23. `ss-server`(1) runs on a remote server to provide secured tunnel service.
  24. For more information, check out `shadowsocks-libev`(8).
  25. OPTIONS
  26. -------
  27. -s <server_host>::
  28. Set the server's hostname or IP.
  29. -p <server_port>::
  30. Set the server's 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-server` 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. -U::
  73. Enable UDP relay and disable TCP relay.
  74. -A::
  75. Enable onetime authentication.
  76. -6::
  77. Resovle hostname to IPv6 address first.
  78. -w::
  79. Enable white list mode (when ACL enabled).
  80. -d <addr>::
  81. Setup name servers for internal DNS resolver (libudns).
  82. The default server is fetched from '/etc/resolv.conf'.
  83. --fast-open::
  84. Enable TCP fast open.
  85. +
  86. Only available with Linux kernel > 3.7.0.
  87. --acl <acl_config>::
  88. Enable ACL (Access Control List) and specify config file.
  89. --manager-address <path_to_unix_domain>::
  90. Specify UNIX domain socket address for the communication between ss-manager(1) and ss-server(1).
  91. +
  92. Only available in server and manager mode.
  93. -v::
  94. Enable verbose mode.
  95. -h|--help::
  96. Print help message.
  97. EXAMPLE
  98. -------
  99. It is recommended to use a config file when starting `ss-server`(1).
  100. The config file is written in JSON and is easy to edit.
  101. Check out the 'SEE ALSO' section for the default path of config file.
  102. ....
  103. # Start the ss-server
  104. ss-server -c /etc/shadowsocks-libev/config.json
  105. ....
  106. INCOMPATIBILITY
  107. ---------------
  108. The config file of `shadowsocks-libev`(8) is slightly different from original
  109. shadowsocks.
  110. In order to listen to both IPv4/IPv6 address, use the following grammar in
  111. your config json file:
  112. ....
  113. {
  114. "server":["[::0]","0.0.0.0"],
  115. ...
  116. }
  117. ....
  118. SEE ALSO
  119. --------
  120. `ss-local`(1),
  121. `ss-tunnel`(1),
  122. `ss-redir`(1),
  123. `ss-manager`(1),
  124. `shadowsocks-libev`(8),
  125. `iptables`(8),
  126. /etc/shadowsocks-libev/config.json