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.

136 lines
4.1 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 Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
  11. .
  12. . A copy of the license is included in the section entitled
  13. . "GNU Free Documentation License".
  14. .
  15. ..
  16. \# - these two are for chuckles, makes great grammar
  17. .ds Lo \fBss-local\fR
  18. .ds Re \fBss-redir\fR
  19. .ds Se \fBss-server\fR
  20. .ds Tu \fBss-tunnel\fR
  21. .ds Ma \fBss-manager\fR
  22. .ds Me \fBShadowsocks-libev\fR
  23. .
  24. .TH "SS-TUNNEL" "1" "April 19, 2016" "SHADOWSOCKS-LIBEV"
  25. .SH NAME
  26. ss-tunnel \- shadowsocks tools for local port forwarding, libev port
  27. .SH SYNOPSIS
  28. \*(Tu
  29. [\fB-AuUv\fR] [\fB\-h\fR|\fB\--help\fR]
  30. [\fB\-s\fR \fIserver_host\fR] [\fB\-p\fR \fIserver_port\fR] [\fB\-l\fR \fIlocal_port\fR]
  31. [\fB\-k\fR \fIpassword\fR] [\fB\-m\fR \fIencrypt_method\fR] [\fB\-f\fR \fIpid_file\fR]
  32. [\fB\-t\fR \fItimeout\fR] [\fB\-c\fR \fIconfig_file\fR] [\fB\-i\fR \fIinterface\fR]
  33. [\fB\-b\fR \fIlocal_addr\fR] [\fB\-a\fR \fIuser_name\fR] [\fB\-n\fR \fInofile\fR]
  34. [\fB\-L\fR \fIaddr\fR:\fIport\fR]
  35. .SH DESCRIPTION
  36. \*(Me is a lightweight and secure socks5 proxy. It is a port of the original
  37. shadowsocks created by clowwindy. \*(Me is written in pure C and takes advantage
  38. of \fBlibev\fP to achieve both high performance and low resource consumption.
  39. .PP
  40. \*(Me consists of five components. \*(Tu(1) is a tool for local port forwarding.
  41. See \fBOPTIONS\fR section for special option needed by \*(Tu(1). For more
  42. information, check out \fBshadowsocks-libev\fR(8).
  43. .SH OPTIONS
  44. .TP
  45. .B \-s \fIserver_host\fP
  46. Set the server's hostname or IP.
  47. .TP
  48. .B \-p \fIserver_port\fP
  49. Set the server's port number.
  50. .TP
  51. .B \-l \fIlocal_port\fP
  52. Set the local port number.
  53. .TP
  54. .B \-k \fIpassword\fP
  55. Set the password. The server and the client should use the same password.
  56. .TP
  57. .B \-m \fIencrypt_method\fP
  58. Set the cipher.
  59. \*(Me accepts 18 different ciphers: table, rc4, rc4-md5, aes-128-cfb,
  60. aes-192-cfb, aes-256-cfb, bf-cfb, camellia-128-cfb, camellia-192-cfb,
  61. camellia-256-cfb, cast5-cfb, des-cfb, idea-cfb, rc2-cfb, seed-cfb, salsa20,
  62. chacha20 and chacha20-ietf. The default cipher is \fItable\fP.
  63. If built with PolarSSL or custom OpenSSL libraries, some of these ciphers may
  64. not work.
  65. .TP
  66. .B \-a \fIuser_name\fP
  67. Run as a specific user.
  68. .TP
  69. .B \-f \fIpid_file\fP
  70. Start shadowsocks as a daemon with specific pid file.
  71. .TP
  72. .B \-t \fItimeout\fP
  73. Set the socket timeout in seconds. The default value is 60.
  74. .TP
  75. .B \-c \fIconfig_file\fP
  76. Use a configuration file.
  77. .TP
  78. .B \-n \fInumber\fP
  79. Specify max number of open files.
  80. Only available on Linux.
  81. .TP
  82. .B \-i \fIinterface\fP
  83. Send traffic through specific network interface.
  84. For example, there are three interfaces in your device, which is lo (127.0.0.1),
  85. eth0 (192.168.0.1) and eth1 (192.168.0.2). Meanwhile, you configure \*(Tu to
  86. listen on 0.0.0.0:8388 and bind to eth1. That results the traffic go out through
  87. eth1, but not lo nor eth0. This option is useful to control traffic in
  88. multi-interface environment.
  89. .TP
  90. .B \-b \fIlocal_address\fP
  91. Specify local address to bind.
  92. .TP
  93. .B \-u
  94. Enable UDP relay.
  95. .TP
  96. .B \-U
  97. Enable UDP relay and disable TCP relay.
  98. .TP
  99. .B \-A
  100. Enable onetime authentication.
  101. .TP
  102. .B \-L \fIaddr\fR:\fIport\fP
  103. Specify destination server address and port for local port forwarding.
  104. Only used and available in tunnel mode.
  105. .TP
  106. .B \-v
  107. Enable verbose mode.
  108. .TP
  109. .B \-h, --help
  110. Print help message.
  111. .SH SEE ALSO
  112. .BR \*(Lo (1),
  113. .BR \*(Se (1),
  114. .BR \*(Re (1),
  115. .BR \*(Ma (1),
  116. .BR shadowsocks-libev (8),
  117. .BR iptables (8),
  118. /etc/shadowsocks-libev/config.json
  119. .br
  120. .SH AUTHOR
  121. shadowsocks was created by clowwindy <clowwindy42@gmail.com> and
  122. shadowsocks-libev was maintained by Max Lv <max.c.lv@gmail.com> and Linus Yang
  123. <laokongzi@gmail.com>.
  124. .PP
  125. This manual page was written by Max Lv <max.c.lv@gmail.com>.
  126. .PP
  127. The manual pages were rearranged by hosiet <073plan@gmail.com>.