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.

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