ss-nat - helper script to setup NAT rules for transparent proxy
ss-nat
[-ouUfh]
[-s
Shadowsocks-libev is a lightweight and secure socks5 proxy. It is a port of the original shadowsocks created by clowwindy. Shadowsocks-libev is written in pure C and takes advantage of libev to achieve both high performance and low resource consumption.
ss-nat
(1) sets up NAT rules for ss-redir
(1) to provide traffic redirection.
It requires netfilter’s NAT module and iptables
(8).
For more information, check out shadowsocks-libev
(8) and the following
EXAMPLE section.
IP address of shadowsocks remote server
Port number of shadowsocks local server
IP address of shadowsocks remote UDP server
Port number of shadowsocks local UDP server
a file whose content is bypassed ip list
LAN IP of access control, need a prefix to define access control mode
WAN IP of will be bypassed
WAN IP of will be forwarded
Extra options for iptables
Apply the rules to the OUTPUT chain
Enable udprelay mode, TPROXY is required
Enable udprelay mode, using different IP and ports for TCP and UDP
Flush the rules
Show this help message and exit
ss-nat
requires iptables
(8). Here is an example:
# Enable NAT rules for shadowsocks,
# with both TCP and UDP redirection enabled,
# and applied for both PREROUTING and OUTPUT chains
root@Wrt:~# ss-nat -s 192.168.1.100 -l 1080 -u -o
# Disable and flush all NAT rules for shadowsocks
root@Wrt:~# ss-nat -f
ss-local
(1),
ss-server
(1),
ss-tunnel
(1),
ss-manager
(1),
shadowsocks-libev
(8),
iptables
(8),
/etc/shadowsocks-libev/config.json
Last updated 2017-11-20 04:22:43 UTC