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.

95 lines
2.0 KiB

Asciidoc man page rework (#699) * Add 'tunnel_address' support for json config parser And allow ss-tunnel to use the newly introduced parser. Signed-off-by: Adam Anonymous <anonymous_temp_user@yahoo.co.jp> * Add "mode" support for jconf Now jconf supports "mode" setting, allowed values are "tcp_only", "tcp_and_udp" and "udp_only". Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Use jconf "mode" for server/local/tunnel/manager Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Add per-project vimrc to gitignore As the coding style differs from kernel and other projects, so such project vimrc should be helpful. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Introduce asciidoc based documentation framework Use asciidoc for new documentation framework, which could not only output man pages, but also htmls. And asciidoc documentation is much more human-readable than roff man pages. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert shadowsocks-libev man page to asciidoc The port to asciidoc has some format change compared to old one. The most obvious one is the options listed in SYNOPSIS. Now the options list is not split into 2/3 columns, or we must use asciidoc tables and introduce table frames. Other small change includes the removal of AUTHOR sector, as it's not an expendable method to update AUTHOR sector every time it gets updated. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-local man page to asciidoc Also modify gitignore, since it use too generic rules to ignore such documentation. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-manager man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-nat man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-redir man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-server man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Convert ss-tunnel man page to asciidoc Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Remove old roff man pages Welcome to the new age of asciidoc. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp> * Doc: Add equivalent tables for command line options and config file Now user can get a more clear view of config file and command line options. Signed-off-by: Adam Anonymous <anonymous_temp_mail@yahoo.co.jp>
8 years ago
  1. ss-nat(1)
  2. =========
  3. NAME
  4. ----
  5. ss-nat - helper script to setup NAT rules for transparent proxy
  6. SYNOPSIS
  7. --------
  8. *ss-nat*
  9. [-ouUfh]
  10. [-s <server_ip>] [-S <server_ip>] [-l <local_port>]
  11. [-L <local_port>] [-i <ip_list_file>] [-a <lan_ips>]
  12. [-b <wan_ips>] [-w <wan_ips>] [-e <extra_options>]
  13. DESCRIPTION
  14. -----------
  15. *Shadowsocks-libev* is a lightweight and secure socks5 proxy.
  16. It is a port of the original shadowsocks created by clowwindy.
  17. *Shadowsocks-libev* is written in pure C and takes advantage of libev to
  18. achieve both high performance and low resource consumption.
  19. `ss-nat`(1) sets up NAT rules for `ss-redir`(1) to provide traffic redirection.
  20. It requires netfilter's NAT module and `iptables`(8).
  21. For more information, check out `shadowsocks-libev`(8) and the following
  22. 'EXAMPLE' section.
  23. OPTIONS
  24. -------
  25. -s <server_ip>::
  26. IP address of shadowsocks remote server
  27. -l <local_port>::
  28. Port number of shadowsocks local server
  29. -S <server_ip>::
  30. IP address of shadowsocks remote UDP server
  31. -L <local_port>::
  32. Port number of shadowsocks local UDP server
  33. -i <ip_list_file>::
  34. a file whose content is bypassed ip list
  35. -a <lan_ips>::
  36. LAN IP of access control, need a prefix to define access control mode
  37. -b <wan_ips>::
  38. WAN IP of will be bypassed
  39. -w <wan_ips>::
  40. WAN IP of will be forwarded
  41. -e <extra_options>::
  42. Extra options for iptables
  43. -o::
  44. Apply the rules to the OUTPUT chain
  45. -u::
  46. Enable udprelay mode, TPROXY is required
  47. -U::
  48. Enable udprelay mode, using different IP and ports for TCP and UDP
  49. -f::
  50. Flush the rules
  51. -h::
  52. Show this help message and exit
  53. EXAMPLE
  54. -------
  55. `ss-nat` requires `iptables`(8). Here is an example:
  56. ....
  57. # Enable NAT rules for shadowsocks,
  58. # with both TCP and UDP redirection enabled,
  59. # and applied for both PREROUTING and OUTPUT chains
  60. root@Wrt:~# ss-nat -s 192.168.1.100 -l 1080 -u -o
  61. # Disable and flush all NAT rules for shadowsocks
  62. root@Wrt:~# ss-nat -f
  63. ....
  64. SEE ALSO
  65. --------
  66. `ss-local`(1),
  67. `ss-server`(1),
  68. `ss-tunnel`(1),
  69. `ss-manager`(1),
  70. `shadowsocks-libev`(8),
  71. `iptables`(8),
  72. /etc/shadowsocks-libev/config.json