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.

154 lines
4.5 KiB

9 years ago
  1. .ig
  2. . manual page for shadowsocks-libev
  3. .
  4. . Copyright (c) 2012-2015, 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" "September 10, 2015" "SHADOWSOCKS-LIBEV"
  29. .SH NAME
  30. ss-server \- shadowsocks server, libev port
  31. .SH SYNOPSIS
  32. \*(Se
  33. [\fB-AhuUv\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]
  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 \fBshadowsocks-libev\fR(8).
  47. .SH OPTIONS
  48. .TP
  49. .B \-s \fIserver_host\fP
  50. Set the server's hostname or IP.
  51. .TP
  52. .B \-p \fIserver_port\fP
  53. Set the server's port number.
  54. .TP
  55. .B \-l \fIlocal_port\fP
  56. Set the local port number.
  57. .TP
  58. .B \-k \fIpassword\fP
  59. Set the password. The server and the client should use the same password.
  60. .TP
  61. .B \-m \fIencrypt_method\fP
  62. Set the cipher.
  63. Shadowsocks accepts 16 different ciphers: table, rc4, rc4-md5,
  64. aes-128-cfb, aes-192-cfb, aes-256-cfb, bf-cfb, camellia-128-cfb,
  65. camellia-192-cfb, camellia-256-cfb, cast5-cfb, des-cfb, idea-cfb, rc2-cfb,
  66. seed-cfb, salsa20 and chacha20. The default cipher is \fItable\fP.
  67. If built with PolarSSL or custom OpenSSL libraries, some of these ciphers may
  68. not work.
  69. .TP
  70. .B \-f \fIpid_file\fP
  71. Start shadowsocks as a daemon with specific pid file.
  72. .TP
  73. .B \-t \fItimeout\fP
  74. Set the socket timeout in seconds. The default value is 10.
  75. .TP
  76. .B \-c \fIconfig_file\fP
  77. Use a configuration file.
  78. .TP
  79. .B \-i \fIinterface\fP
  80. Specify network interface to bind.
  81. .TP
  82. .B \-a \fIuser_name\fP
  83. Run as a specific user.
  84. .TP
  85. .B \-u
  86. Enable UDP relay.
  87. .TP
  88. .B \-U
  89. Enable UDP relay and disable TCP relay.
  90. .TP
  91. .B \-A
  92. Enable onetime authentication.
  93. .TP
  94. .B \-d \fIaddr\fP
  95. Setup name servers for internal DNS resolver (libudns). The default server
  96. is fetched from /etc/resolv.conf.
  97. .TP
  98. .B \--fast-open
  99. Enable TCP fast open.
  100. Only available with Linux kernel > 3.7.0.
  101. .TP
  102. .B \--acl \fIacl_config\fP
  103. Enable ACL (Access Control List) and specify config file.
  104. .TP
  105. .B \--manager-address \fIpath_to_unix_domain\fP
  106. Specify UNIX domain socket address for the communication between ss-manager and
  107. ss-server.
  108. Only available in server and manager mode.
  109. .TP
  110. .B \-v
  111. Enable verbose mode.
  112. .SH EXAMPLE
  113. It is recommended to use a config file when starting \*(Se(1).
  114. The config file is written in JSON and is easy to edit. Check out the
  115. \fBSEE ALSO\fR section for the default path of config file.
  116. # Start the ss-server
  117. ss-server -c /etc/shadowsocks-libev/config.json
  118. .SH BUGS
  119. The config file of shadowsocks-libev is slightly different from original
  120. shadowsocks. In order to listen to both ipv4/ipv6 address, use the following
  121. grammar in your config json file:
  122. {
  123. "server":["[::0]","0.0.0.0"],
  124. ...
  125. }
  126. .SH SEE ALSO
  127. .BR \*(Lo (1),
  128. .BR \*(Tu (1),
  129. .BR \*(Re (1),
  130. .BR \*(Ma (1),
  131. .BR shadowsocks-libev (8),
  132. .BR iptables (8),
  133. /etc/shadowsocks-libev/config.json
  134. .br
  135. .SH AUTHOR
  136. shadowsocks was created by clowwindy <clowwindy42@gmail.com> and
  137. shadowsocks-libev was maintained by Max Lv <max.c.lv@gmail.com> and Linus Yang
  138. <laokongzi@gmail.com>.
  139. .PP
  140. This manual page was written by Max Lv <max.c.lv@gmail.com>.
  141. .PP
  142. The manual pages were rearranged by hosiet <073plan@gmail.com>.