forked from shadowsocksr-backup/shadowsocksr-libev
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
79 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,26 +13,34 @@ FWI=$(uci get firewall.shadowsocks.path 2>/dev/null) # firewall include file | |
|
||
usage() { | ||
cat <<-EOF | ||
Usage: ss-rules [options] | ||
Valid options are: | ||
-s <server_ip> ip address of shadowsocks remote server | ||
-l <local_port> port number of shadowsocks local server | ||
-S <server_ip> ip address of shadowsocks remote UDP server | ||
-L <local_port> port number of shadowsocks local UDP server | ||
-i <ip_list_file> a file content is bypassed ip list | ||
-a <lan_ips> lan ip of access control, need a prefix to | ||
define access control mode | ||
-b <wan_ips> wan ip of will be bypassed | ||
-w <wan_ips> wan ip of will be forwarded | ||
-e <extra_options> extra options for iptables | ||
-o apply the rules to the OUTPUT chain | ||
-u enable udprelay mode, TPROXY is required | ||
-U enable udprelay mode, using different IP | ||
and ports for TCP and UDP | ||
-f flush the rules | ||
-h show this help message and exit | ||
Copyright (C) 2015 OpenWrt-dist | ||
Copyright (C) 2015 Jian Chang <[email protected]> | ||
Usage: ss-nat [options] | ||
Valid options are: | ||
-s <server_ip> ip address of shadowsocks remote server | ||
-l <local_port> port number of shadowsocks local server | ||
-S <server_ip> ip address of shadowsocks remote UDP server | ||
-L <local_port> port number of shadowsocks local UDP server | ||
-i <ip_list_file> a file content is bypassed ip list | ||
-a <lan_ips> lan ip of access control, need a prefix to | ||
define access control mode | ||
-b <wan_ips> wan ip of will be bypassed | ||
-w <wan_ips> wan ip of will be forwarded | ||
-e <extra_options> extra options for iptables | ||
-o apply the rules to the OUTPUT chain | ||
-u enable udprelay mode, TPROXY is required | ||
-U enable udprelay mode, using different IP | ||
and ports for TCP and UDP | ||
-f flush the rules | ||
-h show this help message and exit | ||
This is free software, licensed under the GNU General Public License v3. | ||
See /LICENSE for more information. | ||
EOF | ||
exit $1 | ||
} | ||
|