This repository has been archived by the owner on Mar 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shadowsocks-libev: sync with upstrem
fixes Entware/Entware-ng#701
- Loading branch information
Showing
9 changed files
with
772 additions
and
321 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
#!/bin/sh | ||
|
||
ENABLED=yes | ||
PROCS=ss-redir | ||
PROCS=ss-local | ||
ARGS="-c /opt/etc/shadowsocks.json" | ||
PREARGS="" | ||
DESC=$PROCS | ||
PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | ||
|
||
[ -z "$(which $PROCS)" ] && exit 0 | ||
|
||
. /opt/etc/init.d/rc.func |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
/etc/init.d/shadowsocks-libev reload |
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 |
---|---|---|
@@ -1,15 +1,60 @@ | ||
|
||
config shadowsocks-libev | ||
option enable '1' | ||
option server '127.0.0.1' | ||
option server_port '8388' | ||
config ss_local | ||
option disabled 1 | ||
option server 'sss0' | ||
option local_address '0.0.0.0' | ||
option local_port '1080' | ||
option password 'barfoo!' | ||
option timeout '30' | ||
|
||
config ss_tunnel | ||
option disabled 1 | ||
option server 'sss0' | ||
option local_address '0.0.0.0' | ||
option local_port '1090' | ||
option tunnel_address 'example.com:80' | ||
option mode 'tcp_and_udp' | ||
option timeout '60' | ||
option encrypt_method 'rc4-md5' | ||
option ignore_list '/dev/null' | ||
option udp_mode '0' | ||
option tunnel_enable '1' | ||
option tunnel_port '5300' | ||
option tunnel_forward '8.8.4.4:53' | ||
option lan_ac_mode '0' | ||
|
||
config ss_redir hi | ||
option disabled 1 | ||
option server 'sss0' | ||
option local_address '0.0.0.0' | ||
option local_port '1100' | ||
option mode 'tcp_and_udp' | ||
option timeout '60' | ||
option fast_open 1 | ||
option verbose 1 | ||
option reuse_port 1 | ||
|
||
config ss_redir hj | ||
option disabled 1 | ||
option server 'sss0' | ||
option local_address '0.0.0.0' | ||
option local_port '1100' | ||
option mode 'tcp_and_udp' | ||
option timeout '60' | ||
option fast_open 1 | ||
option verbose 1 | ||
option reuse_port 1 | ||
|
||
config ss_rules 'ss_rules' | ||
option disabled 1 | ||
option redir_tcp 'hi' | ||
option redir_udp 'hi' | ||
option src_default 'bypass' | ||
option local_default 'checkdst' | ||
list src_ips_forward '192.168.1.4' | ||
list dst_ips_forward '8.8.8.8' | ||
|
||
config server 'sss0' | ||
option disabled 1 | ||
option server '192.168.1.3' | ||
option server_port '9001' | ||
option password '********' | ||
option method 'aes-256-cfb' | ||
|
||
config ss_server | ||
option disabled 1 | ||
option server_port '9001' | ||
option password '********' | ||
option method 'aes-256-cfb' | ||
option bind_address '192.168.7.72' |
Oops, something went wrong.