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.

172 lines
5.0 KiB

8 years ago
9 years ago
  1. .ig
  2. . manual page for shadowsocks-libev
  3. .
  4. . Copyright (c) 2012-2016, by: Max Lv
  5. . All rights reserved.
  6. .
  7. . Permission is granted to copy, distribute and/or modify this document
  8. . under the terms of the GNU Free Documentation License, Version 1.1 or
  9. . any later version published by the Free Software Foundation;
  10. . with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
  11. .
  12. . A copy of the license is included in the section entitled
  13. . "GNU Free Documentation License".
  14. .
  15. ..
  16. \# - these two are for chuckles, makes great grammar
  17. .ds Lo \fBss-local\fR
  18. .ds Re \fBss-redir\fR
  19. .ds Se \fBss-server\fR
  20. .ds Tu \fBss-tunnel\fR
  21. .ds Ma \fBss-manager\fR
  22. .ds Me \fBShadowsocks-libev\fR
  23. .
  24. .TH "SS-SERVER" "1" "April 19, 2016" "SHADOWSOCKS-LIBEV"
  25. .SH NAME
  26. ss-server \- shadowsocks server, libev port
  27. .SH SYNOPSIS
  28. \*(Se
  29. [\fB-AuUv\fR] [\fB\-h\fR|\fB\--help\fR]
  30. [\fB\-s\fR \fIserver_host\fR] [\fB\-p\fR \fIserver_port\fR] [\fB\-l\fR \fIlocal_port\fR]
  31. [\fB\-k\fR \fIpassword\fR] [\fB\-m\fR \fIencrypt_method\fR] [\fB\-f\fR \fIpid_file\fR]
  32. [\fB\-t\fR \fItimeout\fR] [\fB\-c\fR \fIconfig_file\fR] [\fB\-i\fR \fIinterface\fR]
  33. [\fB\-a\fR \fIuser_name\fR] [\fB\-d\fR \fIaddr\fR] [\fB\-n\fR \fInofile\fR]
  34. [\fB\-\-fast\-open\fR] [\fB\-\-acl\fR \fIacl_config\fR]
  35. [\fB\-\-manager\-address\fR \fIpath_to_unix_domain\fR]
  36. .SH DESCRIPTION
  37. \*(Me is a lightweight and secure socks5 proxy. It is a port of the original
  38. shadowsocks created by clowwindy. \*(Me is written in pure C and takes advantage
  39. of \fBlibev\fP to achieve both high performance and low resource consumption.
  40. .PP
  41. \*(Me consists of five components. \*(Se(1) runs on a remote server to provide
  42. secured tunnel service. For more information, check out
  43. \fBshadowsocks-libev\fR(8).
  44. .SH OPTIONS
  45. .TP
  46. .B \-s \fIserver_host\fP
  47. Set the server's hostname or IP.
  48. .TP
  49. .B \-p \fIserver_port\fP
  50. Set the server's port number.
  51. .TP
  52. .B \-k \fIpassword\fP
  53. Set the password. The server and the client should use the same password.
  54. .TP
  55. .B \-m \fIencrypt_method\fP
  56. Set the cipher.
  57. \*(Me accepts 18 different ciphers: table, rc4, rc4-md5, aes-128-cfb,
  58. aes-192-cfb, aes-256-cfb, bf-cfb, camellia-128-cfb, camellia-192-cfb,
  59. camellia-256-cfb, cast5-cfb, des-cfb, idea-cfb, rc2-cfb, seed-cfb, salsa20,
  60. chacha20 and chacha20-ietf. The default cipher is \fItable\fP.
  61. If built with PolarSSL or custom OpenSSL libraries, some of these ciphers may
  62. not work.
  63. .TP
  64. .B \-a \fIuser_name\fP
  65. Run as a specific user.
  66. .TP
  67. .B \-f \fIpid_file\fP
  68. Start shadowsocks as a daemon with specific pid file.
  69. .TP
  70. .B \-t \fItimeout\fP
  71. Set the socket timeout in seconds. The default value is 60.
  72. .TP
  73. .B \-c \fIconfig_file\fP
  74. Use a configuration file.
  75. .TP
  76. .B \-n \fInumber\fP
  77. Specify max number of open files.
  78. Only available on Linux.
  79. .TP
  80. .B \-i \fIinterface\fP
  81. Send traffic through specific network interface.
  82. For example, there are three interfaces in your device, which is lo (127.0.0.1),
  83. eth0 (192.168.0.1) and eth1 (192.168.0.2). Meanwhile, you configure \*(Se to
  84. listen on 0.0.0.0:8388 and bind to eth1. That results the traffic go out through
  85. eth1, but not lo nor eth0. This option is useful to control traffic in
  86. multi-interface environment.
  87. .TP
  88. .B \-b \fIlocal_address\fP
  89. Specify local address to bind.
  90. .TP
  91. .B \-u
  92. Enable UDP relay.
  93. .TP
  94. .B \-U
  95. Enable UDP relay and disable TCP relay.
  96. .TP
  97. .B \-A
  98. Enable onetime authentication.
  99. .TP
  100. .B \-6
  101. Resovle hostname to IPv6 address first.
  102. .TP
  103. .B \-w
  104. Enable white list mode (when ACL enabled).
  105. .TP
  106. .B \-d \fIaddr\fP
  107. Setup name servers for internal DNS resolver (libudns). The default server is
  108. fetched from /etc/resolv.conf.
  109. .TP
  110. .B \--fast-open
  111. Enable TCP fast open.
  112. Only available with Linux kernel > 3.7.0.
  113. .TP
  114. .B \--acl \fIacl_config\fP
  115. Enable ACL (Access Control List) and specify config file.
  116. .TP
  117. .B \--manager-address \fIpath_to_unix_domain\fP
  118. Specify UNIX domain socket address for the communication between \*(Ma(1) and
  119. \*(Se(1).
  120. Only available in server and manager mode.
  121. .TP
  122. .B \-v
  123. Enable verbose mode.
  124. .TP
  125. .B \-h, --help
  126. Print help message.
  127. .SH EXAMPLE
  128. It is recommended to use a config file when starting \*(Se(1).
  129. The config file is written in JSON and is easy to edit. Check out the \fBSEE
  130. ALSO\fR section for the default path of config file.
  131. # Start the ss-server
  132. ss-server -c /etc/shadowsocks-libev/config.json
  133. .SH BUGS
  134. The config file of \fBshadowsocks-libev\fR(8) is slightly different from
  135. original shadowsocks. In order to listen to both IPv4/IPv6 address, use the
  136. following grammar in your config json file:
  137. {
  138. "server":["[::0]","0.0.0.0"],
  139. ...
  140. }
  141. .SH SEE ALSO
  142. .BR \*(Lo (1),
  143. .BR \*(Tu (1),
  144. .BR \*(Re (1),
  145. .BR \*(Ma (1),
  146. .BR shadowsocks-libev (8),
  147. .BR iptables (8),
  148. /etc/shadowsocks-libev/config.json
  149. .br
  150. .SH AUTHOR
  151. shadowsocks was created by clowwindy <clowwindy42@gmail.com> and
  152. shadowsocks-libev was maintained by Max Lv <max.c.lv@gmail.com> and Linus Yang
  153. <laokongzi@gmail.com>.
  154. .PP
  155. This manual page was written by Max Lv <max.c.lv@gmail.com>.
  156. .PP
  157. The manual pages were rearranged by hosiet <073plan@gmail.com>.