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
Last revisionBoth sides next revision
linux:miwifi-shadowsocks [2019/03/09 01:30] – [/etc/init.d/myshadowsocks] percylinux:miwifi-shadowsocks [2019/03/09 01:32] percy
Line 51: Line 51:
 } }
 </code> </code>
 +
 +
 +<code BASH>
 +/etc/init.d/myshadowsocks enable //add to the auto start jobs
 +/etc/init.d/myshadowsocks start //start
 +</code>
 +
 +Everytime after the router restart, it will delete the script, so I put the script to /userdisk/data/bin/myshadowsocks, and do the soft link
 +  chmod +x /userdisk/data/bin/myshadowsocks
 +  ln -s /userdisk/data/bin/myshadowsocks /etc/init.d/myshadowsocks
 +  /etc/init.d/myshadowsocks
 +
 +
 ==== To support kcptun with shadowsocks ==== ==== To support kcptun with shadowsocks ====
  
-``` Bash+<code BASH>
 CONFIG_KCPTUN=/etc/shadowsocks-kcptun.json CONFIG_KCPTUN=/etc/shadowsocks-kcptun.json
 #CONFIG=/etc/shadowsocks.json #CONFIG=/etc/shadowsocks.json
Line 76: Line 89:
    service_stop /usr/bin/ss-tunnel    service_stop /usr/bin/ss-tunnel
 } }
-``` 
- 
-<code BASH> 
-/etc/init.d/myshadowsocks enable //add to the auto start jobs 
-/etc/init.d/myshadowsocks start //start 
 </code> </code>
  
-Everytime after the router restartit will delete the scriptso I put the script to /userdisk/data/bin/myshadowsocksand do the soft link +And the shadowsocks-kcptun.json 
-  chmod +x /userdisk/data/bin/myshadowsocks +<code Bash> 
-  ln -s /userdisk/data/bin/myshadowsocks /etc/init.d/myshadowsocks +
-  /etc/init.d/myshadowsocks +  "server":"127.0.0.1", 
 +  "server_port":8480, 
 +  "local_address":"0.0.0.0"
 +  "local_port":1081, 
 +  "password":"pjq", 
 +  "timeout":600, 
 +  "method":"aes-256-cfb" 
 +
 +</code>
  
 ===== dnsmasq ===== ===== dnsmasq =====
/var/www/dokuwiki/wiki/data/pages/linux/miwifi-shadowsocks.txt · Last modified: 2019/03/09 01:35 by percy