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.

126 lines
3.7 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]
  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. Shadowsocks accepts 16 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 and chacha20. 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 \-i \fIinterface\fP
  80. Specify network interface to bind.
  81. .TP
  82. .B \-b \fIlocal_address\fP
  83. Specify local address to bind.
  84. .TP
  85. .B \-a \fIuser_name\fP
  86. Run as a specific user.
  87. .TP
  88. .B \-u
  89. Enable UDP relay.
  90. .TP
  91. .B \-U
  92. Enable UDP relay and disable TCP relay.
  93. .TP
  94. .B \-A
  95. Enable onetime authentication.
  96. .TP
  97. .B \-L \fIaddr\fR:\fIport\fP
  98. Specify destination server address and port for local port forwarding.
  99. Only used and available in tunnel mode.
  100. .TP
  101. .B \-v
  102. Enable verbose mode.
  103. .SH SEE ALSO
  104. .BR \*(Lo (1),
  105. .BR \*(Se (1),
  106. .BR \*(Re (1),
  107. .BR \*(Ma (1),
  108. .BR shadowsocks-libev (8),
  109. .BR iptables (8),
  110. /etc/shadowsocks-libev/config.json
  111. .br
  112. .SH AUTHOR
  113. shadowsocks was created by clowwindy <clowwindy42@gmail.com> and
  114. shadowsocks-libev was maintained by Max Lv <max.c.lv@gmail.com> and Linus Yang
  115. <laokongzi@gmail.com>.
  116. .PP
  117. This manual page was written by Max Lv <max.c.lv@gmail.com>.
  118. .PP
  119. The manual pages were rearranged by hosiet <073plan@gmail.com>.