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.

135 lines
3.9 KiB

  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-LOCAL" "1" "September 10, 2015" "SHADOWSOCKS-LIBEV"
  29. .SH NAME
  30. ss-local \- shadowsocks client as socks5 proxy, libev port
  31. .SH SYNOPSIS
  32. \*(Lo
  33. [\fB\-Auhv\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 \fBshadowsocks-libev\fR(8).
  45. .SH OPTIONS
  46. .TP
  47. .B \-s \fIserver_host\fP
  48. Set the server's hostname or IP.
  49. .TP
  50. .B \-p \fIserver_port\fP
  51. Set the server's port number.
  52. .TP
  53. .B \-l \fIlocal_port\fP
  54. Set the local 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,
  62. aes-128-cfb, aes-192-cfb, aes-256-cfb, bf-cfb, camellia-128-cfb,
  63. camellia-192-cfb, camellia-256-cfb, cast5-cfb, des-cfb, idea-cfb, rc2-cfb,
  64. seed-cfb, salsa20, 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 \-f \fIpid_file\fP
  69. Start shadowsocks as a daemon with specific pid file.
  70. .TP
  71. .B \-t \fItimeout\fP
  72. Set the socket timeout in seconds. The default value is 10.
  73. .TP
  74. .B \-c \fIconfig_file\fP
  75. Use a configuration file.
  76. .TP
  77. .B \-n \fInofile\fP
  78. Specify max number of open files.
  79. Only avaliable on Linux.
  80. .TP
  81. .B \-i \fIinterface\fP
  82. Specify network interface to bind.
  83. .TP
  84. .B \-b \fIlocal_address\fP
  85. Specify local address to bind.
  86. .TP
  87. .B \-a \fIuser_name\fP
  88. Run as a specific user.
  89. .TP
  90. .B \-u
  91. Enable UDP relay.
  92. .TP
  93. .B \-A
  94. Enable onetime authentication.
  95. .TP
  96. .B \--fast-open
  97. Enable TCP fast open.
  98. Only available with Linux kernel > 3.7.0.
  99. .TP
  100. .B \--acl \fIacl_config\fP
  101. Enable ACL (Access Control List) and specify config file.
  102. .TP
  103. .B \-v
  104. Enable verbose mode.
  105. .SH EXAMPLE
  106. \*(Lo(1) can be started from command line and run in foreground. Here is an example:
  107. # Start ss-local with given parameters
  108. ss-local -s example.com -p 12345 -l 1080 -k foobar -m aes-256-cfb
  109. .SH SEE ALSO
  110. .BR \*(Se (1),
  111. .BR \*(Tu (1),
  112. .BR \*(Re (1),
  113. .BR \*(Ma (1),
  114. .BR shadowsocks-libev (8),
  115. .BR iptables (8),
  116. /etc/shadowsocks-libev/config.json
  117. .br
  118. .SH AUTHOR
  119. shadowsocks was created by clowwindy <clowwindy42@gmail.com> and
  120. shadowsocks-libev was maintained by Max Lv <max.c.lv@gmail.com> and Linus Yang
  121. <laokongzi@gmail.com>.
  122. .PP
  123. This manual page was written by Max Lv <max.c.lv@gmail.com>.
  124. .PP
  125. The manual pages were rearranged by hosiet <073plan@gmail.com>.