User Tools

Site Tools


linux:miwifi-shadowsocks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:miwifi-shadowsocks [2019/03/09 00:42] – [Reference] percylinux:miwifi-shadowsocks [2019/03/09 01:35] (current) percy
Line 51: Line 51:
 } }
 </code> </code>
 +
  
 <code BASH> <code BASH>
Line 62: Line 63:
   /etc/init.d/myshadowsocks   /etc/init.d/myshadowsocks
  
 +
 +==== To support kcptun with shadowsocks ====
 +
 +<code BASH>
 +CONFIG_KCPTUN=/etc/shadowsocks-kcptun.json
 +#CONFIG=/etc/shadowsocks.json
 +CONFIG=$CONFIG_KCPTUN
 +DNS=8.8.8.8:53
 +TUNNEL_PORT=5353
 +
 +start() {
 +   # Client Mode
 +   #service_start /usr/bin/ss-local -c $CONFIG -b 0.0.0.0 -f $SERVICE_PID_FILE
 +   # Proxy Mode
 +   service_start /usr/bin/ss-redir -c $CONFIG -b 0.0.0.0 -f $SS_REDIR_PID_FILE
 +   # Tunnel
 +   service_start /usr/bin/ss-tunnel -c $CONFIG_DEFAULT -b 0.0.0.0 -u -l $TUNNEL_PORT -L $DNS -f $SS_TUNNEL_PID_FILE
 +}
 +stop() {
 +   # Client Mode
 +   #service_stop /usr/bin/ss-local
 +   # Proxy Mode
 +   service_stop /usr/bin/ss-redir
 +   # Tunnel
 +   service_stop /usr/bin/ss-tunnel
 +}
 +</code>
 +
 +And the shadowsocks-kcptun.json
 +<code Bash>
 +{
 +  "server":"127.0.0.1",
 +  "server_port":8480,
 +  "local_address":"0.0.0.0",
 +  "local_port":1081,
 +  "password":"xxx",
 +  "timeout":600,
 +  "method":"aes-256-cfb"
 +}
 +</code>
 +
 +And it will depends on the kcptun `cat /userdisk/data/bin/kcptun_start.sh`
 +<code Bash>
 +
 +#!/bin/sh
 +
 +cd /userdisk/data/bin
 +echo ./client_linux_arm5  -r ef.pjq.me:4001 -l :8480 -mode fast3
 +./client_linux_arm5  -r ef.pjq.me:4001 -l :8480 -mode fast3
 +</code>
  
 ===== dnsmasq ===== ===== dnsmasq =====
/var/www/dokuwiki/wiki/data/attic/linux/miwifi-shadowsocks.1552063374.txt.gz · Last modified: 2019/03/09 00:42 by percy