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.

146 lines
4.3 KiB

  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-LOCAL" "1" "April 19, 2016" "SHADOWSOCKS-LIBEV"
  29. .SH NAME
  30. ss-local \- shadowsocks client as socks5 proxy, libev port
  31. .SH SYNOPSIS
  32. \*(Lo
  33. [\fB\-Auv\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] [\fB\-t\fR \fItimeout\fR]
  36. [\fB\-c\fR \fIconfig_file\fR] [\fB\-b\fR \fIinterface\fR] [\fB\-a\fR \fIuser_name\fR]
  37. [\fB\-n\fR \fInofile\fR] [\fB\-\-fast\-open\fR] [\fB\-\-acl\fR \fIacl_config\fR]
  38. .SH DESCRIPTION
  39. \*(Me is a lightweight and secure socks5 proxy. It is a port of the original
  40. shadowsocks created by clowwindy. \*(Me is written in pure C and takes advantage
  41. of \fBlibev\fP to achieve both high performance and low resource consumption.
  42. .PP
  43. \*(Me consists of five components. \*(Lo(1) works as a standard socks5 proxy
  44. on local machines to proxy TCP traffic. For more information, check out
  45. \fBshadowsocks-libev\fR(8).
  46. .SH OPTIONS
  47. .TP
  48. .B \-s \fIserver_host\fP
  49. Set the server's hostname or IP.
  50. .TP
  51. .B \-p \fIserver_port\fP
  52. Set the server's port number.
  53. .TP
  54. .B \-l \fIlocal_port\fP
  55. Set the local port number.
  56. .TP
  57. .B \-k \fIpassword\fP
  58. Set the password. The server and the client should use the same password.
  59. .TP
  60. .B \-m \fIencrypt_method\fP
  61. Set the cipher.
  62. \*(Me accepts 18 different ciphers: table, rc4, rc4-md5, aes-128-cfb,
  63. aes-192-cfb, aes-256-cfb, bf-cfb, camellia-128-cfb, camellia-192-cfb,
  64. camellia-256-cfb, cast5-cfb, des-cfb, idea-cfb, rc2-cfb, seed-cfb, salsa20,
  65. chacha20 and chacha20-ietf. The default cipher is \fItable\fP.
  66. If built with PolarSSL or custom OpenSSL libraries, some of these ciphers may
  67. not work.
  68. .TP
  69. .B \-a \fIuser_name\fP
  70. Run as a specific user.
  71. .TP
  72. .B \-f \fIpid_file\fP
  73. Start shadowsocks as a daemon with specific pid file.
  74. .TP
  75. .B \-t \fItimeout\fP
  76. Set the socket timeout in seconds. The default value is 60.
  77. .TP
  78. .B \-c \fIconfig_file\fP
  79. Use a configuration file.
  80. .TP
  81. .B \-n \fInumber\fP
  82. Specify max number of open files.
  83. Only avaliable on Linux.
  84. .TP
  85. .B \-i \fIinterface\fP
  86. Send traffic through specific network interface.
  87. For example, there are three interfaces in your device, which is lo (127.0.0.1),
  88. eth0 (192.168.0.1) and eth1 (192.168.0.2). Meanwhile, you configure \*(Lo to
  89. listen on 0.0.0.0:8388 and bind to eth1. That results the traffic go out through
  90. eth1, but not lo nor eth0. This option is useful to control traffic in
  91. multi-interface environment.
  92. .TP
  93. .B \-b \fIlocal_address\fP
  94. Specify local address to bind.
  95. .TP
  96. .B \-u
  97. Enable UDP relay.
  98. .TP
  99. .B \-A
  100. Enable onetime authentication.
  101. .TP
  102. .B \--fast-open
  103. Enable TCP fast open.
  104. Only available with Linux kernel > 3.7.0.
  105. .TP
  106. .B \--acl \fIacl_config\fP
  107. Enable ACL (Access Control List) and specify config file.
  108. .TP
  109. .B \-v
  110. Enable verbose mode.
  111. .TP
  112. .B \-h, --help
  113. Print help message.
  114. .SH EXAMPLE
  115. \*(Lo(1) can be started from command line and run in foreground. Here is an
  116. example:
  117. # Start ss-local with given parameters
  118. ss-local -s example.com -p 12345 -l 1080 -k foobar -m aes-256-cfb
  119. .SH SEE ALSO
  120. .BR \*(Se (1),
  121. .BR \*(Tu (1),
  122. .BR \*(Re (1),
  123. .BR \*(Ma (1),
  124. .BR shadowsocks-libev (8),
  125. .BR iptables (8),
  126. /etc/shadowsocks-libev/config.json
  127. .br
  128. .SH AUTHOR
  129. shadowsocks was created by clowwindy <clowwindy42@gmail.com> and
  130. shadowsocks-libev was maintained by Max Lv <max.c.lv@gmail.com> and Linus Yang
  131. <laokongzi@gmail.com>.
  132. .PP
  133. This manual page was written by Max Lv <max.c.lv@gmail.com>.
  134. .PP
  135. The manual pages were rearranged by hosiet <073plan@gmail.com>.