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.

131 lines
3.8 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-TUNNEL" "1" "September 10, 2015" "SHADOWSOCKS-LIBEV"
  29. .SH NAME
  30. ss-tunnel \- shadowsocks tools for local port forwarding, libev port
  31. .SH SYNOPSIS
  32. \*(Tu
  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\-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).
  46. 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. \*(Me accepts 18 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, 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 \-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 \-n \fInofile\fP
  80. Specify max number of open files.
  81. Only avaliable on Linux.
  82. .TP
  83. .B \-i \fIinterface\fP
  84. Specify network interface to bind.
  85. .TP
  86. .B \-b \fIlocal_address\fP
  87. Specify local address to bind.
  88. .TP
  89. .B \-a \fIuser_name\fP
  90. Run as a specific user.
  91. .TP
  92. .B \-u
  93. Enable UDP relay.
  94. .TP
  95. .B \-U
  96. Enable UDP relay and disable TCP relay.
  97. .TP
  98. .B \-A
  99. Enable onetime authentication.
  100. .TP
  101. .B \-L \fIaddr\fR:\fIport\fP
  102. Specify destination server address and port for local port forwarding.
  103. Only used and available in tunnel mode.
  104. .TP
  105. .B \-v
  106. Enable verbose mode.
  107. .SH SEE ALSO
  108. .BR \*(Lo (1),
  109. .BR \*(Se (1),
  110. .BR \*(Re (1),
  111. .BR \*(Ma (1),
  112. .BR shadowsocks-libev (8),
  113. .BR iptables (8),
  114. /etc/shadowsocks-libev/config.json
  115. .br
  116. .SH AUTHOR
  117. shadowsocks was created by clowwindy <clowwindy42@gmail.com> and
  118. shadowsocks-libev was maintained by Max Lv <max.c.lv@gmail.com> and Linus Yang
  119. <laokongzi@gmail.com>.
  120. .PP
  121. This manual page was written by Max Lv <max.c.lv@gmail.com>.
  122. .PP
  123. The manual pages were rearranged by hosiet <073plan@gmail.com>.