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.

140 lines
4.2 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-TUNNEL" "1" "April 19, 2016" "SHADOWSOCKS-LIBEV"
  29. .SH NAME
  30. ss-tunnel \- shadowsocks tools for local port forwarding, libev port
  31. .SH SYNOPSIS
  32. \*(Tu
  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\-b\fR \fIlocal_addr\fR] [\fB\-a\fR \fIuser_name\fR] [\fB\-n\fR \fInofile\fR]
  38. [\fB\-L\fR \fIaddr\fR:\fIport\fR]
  39. .SH DESCRIPTION
  40. \*(Me is a lightweight and secure socks5 proxy. It is a port of the original
  41. shadowsocks created by clowwindy. \*(Me is written in pure C and takes advantage
  42. of \fBlibev\fP to achieve both high performance and low resource consumption.
  43. .PP
  44. \*(Me consists of five components. \*(Tu(1) is a tool for local port forwarding.
  45. See \fBOPTIONS\fR section for special option needed by \*(Tu(1). For more
  46. 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. \*(Me accepts 18 different ciphers: table, rc4, rc4-md5, aes-128-cfb,
  64. aes-192-cfb, aes-256-cfb, bf-cfb, camellia-128-cfb, camellia-192-cfb,
  65. camellia-256-cfb, cast5-cfb, des-cfb, idea-cfb, rc2-cfb, seed-cfb, salsa20,
  66. chacha20 and chacha20-ietf. 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 \-a \fIuser_name\fP
  71. Run as a specific user.
  72. .TP
  73. .B \-f \fIpid_file\fP
  74. Start shadowsocks as a daemon with specific pid file.
  75. .TP
  76. .B \-t \fItimeout\fP
  77. Set the socket timeout in seconds. The default value is 60.
  78. .TP
  79. .B \-c \fIconfig_file\fP
  80. Use a configuration file.
  81. .TP
  82. .B \-n \fInumber\fP
  83. Specify max number of open files.
  84. Only available on Linux.
  85. .TP
  86. .B \-i \fIinterface\fP
  87. Send traffic through specific network interface.
  88. For example, there are three interfaces in your device, which is lo (127.0.0.1),
  89. eth0 (192.168.0.1) and eth1 (192.168.0.2). Meanwhile, you configure \*(Tu to
  90. listen on 0.0.0.0:8388 and bind to eth1. That results the traffic go out through
  91. eth1, but not lo nor eth0. This option is useful to control traffic in
  92. multi-interface environment.
  93. .TP
  94. .B \-b \fIlocal_address\fP
  95. Specify local address to bind.
  96. .TP
  97. .B \-u
  98. Enable UDP relay.
  99. .TP
  100. .B \-U
  101. Enable UDP relay and disable TCP relay.
  102. .TP
  103. .B \-A
  104. Enable onetime authentication.
  105. .TP
  106. .B \-L \fIaddr\fR:\fIport\fP
  107. Specify destination server address and port for local port forwarding.
  108. Only used and available in tunnel mode.
  109. .TP
  110. .B \-v
  111. Enable verbose mode.
  112. .TP
  113. .B \-h, --help
  114. Print help message.
  115. .SH SEE ALSO
  116. .BR \*(Lo (1),
  117. .BR \*(Se (1),
  118. .BR \*(Re (1),
  119. .BR \*(Ma (1),
  120. .BR shadowsocks-libev (8),
  121. .BR iptables (8),
  122. /etc/shadowsocks-libev/config.json
  123. .br
  124. .SH AUTHOR
  125. shadowsocks was created by clowwindy <clowwindy42@gmail.com> and
  126. shadowsocks-libev was maintained by Max Lv <max.c.lv@gmail.com> and Linus Yang
  127. <laokongzi@gmail.com>.
  128. .PP
  129. This manual page was written by Max Lv <max.c.lv@gmail.com>.
  130. .PP
  131. The manual pages were rearranged by hosiet <073plan@gmail.com>.