Closed weiqi-chen closed 7 years ago
The shadowsocks-libev
package in this repo has been rewritten only about 20 days ago and the corresponding rewritten version of luci-app-shadowsocks-libev
package has only been ready only the day before yesterday and it's still in the luci repo for review and feedback (https://github.com/openwrt/luci/pull/1242).
I would suggest giving the openwrt/luci#1242 a try. It should work. Otherwise, you need to manually enabling/configuring the relevant config sections in the /etc/config/shadowsocks-libev
. There is a README.md file to guide you through this
The /etc/config/shadowsocks-opkg
file is probably from shadowsocks/luci-app-shadowsocks which is not relevant here.
I rm feeds/luci/applications/luci-app-shadowsocks-libev/ -r
and copy another one from https://github.com/yousong/luci/commit/4e6b8ae9dfa862abc85a2194fc788390114ed597
.
I recompiled, installed it on my raspberry pi , and reboot my pi.
Now I seem that luci-app-shadowsocks-libev
can add Local Instances and configure Remote Servers.
But the Running status is no , I can't get it yes.
The Server's content is ip address of my $$ server. (Can I write it's hostname in that Text box??)
Before this time, I used
git clone --depth=1 https://github.com/shadowsocks/openwrt-feeds.git package/feeds
git clone --depth=1 https://github.com/shadowsocks/openwrt-shadowsocks.git package/shadowsocks-libev
git clone --depth=1 https://github.com/shadowsocks/luci-app-shadowsocks.git package/luci-app-shadowsocks
git clone --depth=1 https://github.com/clowwindy/ChinaDNS.git package/ChinaDNS
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
make package/luci-app-shadowsocks/compile package/shadowsocks-libev/compile V=99
to compile ss for openwrt. Now I found ss in openwrt's trunk so I want to try that out.
Anyway, I can't compile the code clone below in the sdk that is compiled by me. It seem that something wrong in the package
mbedtls-2.5.1
when it compiled in a sdk. (https://github.com/shadowsocks/luci-app-shadowsocks/issues/131)
But the Running status is no , I can't get it yes.
That's because the instances are in "Disabled" state in the screenshot. Click the button to toggle this state, then "Save & apply". I will add a line of text for this in the description text. Thanks for the feedback.
The Server's content is ip address of my $$ server. (Can I write it's hostname in that Text box??)
Yes, the datatype of that field is host
and it will accept ipv4, ipv6, hostnames
I tried that before, And it's the same.
by the way, ss-local can run.
root@Raspberrypi-OpenWRT:~# ss-local --help
shadowsocks-libev 3.0.6
maintained by Max Lv <max.c.lv@gmail.com> and Linus Yang <laokongzi@gmail.com>
usage:
ss-local
-s <server_host> Host name or IP address of your remote server.
-p <server_port> Port number of your remote server.
-l <local_port> Port number of your local server.
-k <password> Password of your remote server.
-m <encrypt_method> Encrypt method: rc4-md5,
aes-128-gcm, aes-192-gcm, aes-256-gcm,
aes-128-cfb, aes-192-cfb, aes-256-cfb,
aes-128-ctr, aes-192-ctr, aes-256-ctr,
camellia-128-cfb, camellia-192-cfb,
camellia-256-cfb, bf-cfb,
chacha20-ietf-poly1305,
xchacha20-ietf-poly1305,
salsa20, chacha20 and chacha20-ietf.
The default cipher is rc4-md5.
[-a <user>] Run as another user.
[-f <pid_file>] The file path to store pid.
[-t <timeout>] Socket timeout in seconds.
[-c <config_file>] The path to config file.
[-n <number>] Max number of open files.
[-i <interface>] Network interface to bind.
[-b <local_address>] Local address to bind.
[-u] Enable UDP relay.
[-U] Enable UDP relay and disable TCP relay.
[--reuse-port] Enable port reuse.
[--fast-open] Enable TCP fast open.
with Linux kernel > 3.7.0.
[--acl <acl_file>] Path to ACL (Access Control List).
[--mtu <MTU>] MTU of your network interface.
[--mptcp] Enable Multipath TCP on MPTCP Kernel.
[--key <key_in_base64>] Key of your remote server.
[--plugin <name>] Enable SIP003 plugin. (Experimental)
[--plugin-opts <options>] Set SIP003 plugin options. (Experimental)
[-v] Verbose mode.
[-h, --help] Print this message.
It will take a few seconds before procd starts up the instances and before that the page wil be rendered with running being off. Have you tried refreshing the Local Instances page?
Is there any output if you manually start the service with /etc/init.d/shadowsocks-libev. If all goes well, the generated json config file will bein directory /var/etc/shadowsocks-libev
Yes, I tried refreshing that page.
Here is the output of restart service command:
root@Raspberrypi-OpenWRT:~# /etc/init.d/shadowsocks-libev restart
root@Raspberrypi-OpenWRT:~# ls /var/etc/shadowsocks-libev/
root@Raspberrypi-OpenWRT:~# ps | grep ss
2706 root 1012 S grep ss
root@Raspberrypi-OpenWRT:~#
Is there a log or other thing that I can use it to debug what is happening?
Weiqi and I have just finished a Teamviewer session and the issue turns out to be caused by validate_data
being too old in OpenWrt 15.01 branch causing compatibility issues with shadowsocks-libev in master
branch here. I have just pushed the fix.
Thanks for the feedback and patience.
yousong,
Can you help, I have shadowsocks-libev_3.0.8-1 and shadowsocks-libev-3.0.8-1 server also installed on Lede 17.0.1. The Kernel is 4.4.79, when I tried loading luci-app-shadowsocks_1.8.1-1 it gives the following error:
Installing luci-app-shadowsocks (1.8.1-1) to root... Collected errors:
The error indicates that the package was built against a kernel of different version from the currently running one. Please consider giving shadowsocks-libev related packages in LEDE master branch a try.
For further info, please open a new issue and report there. Keep the old, closed discussion clean and intact. Thanks
Maintainer: @yousong Environment: Raspberry pi 2, model B, Openwrt Master branch.
Description:
Software package
And The luci
http://raspberrypi-openwrt.lan/cgi-bin/luci/admin/services/shadowsocks-libev
page showMy configure file:
/etc/config/shadowsocks-libev
/etc/config/shadowsocks-opkg
I tried
/etc/init.d/shadowsocks-libev start
but nothing changes.