DNS problem with Shadowsock-libev

here is my setting but shadowsocks not working

netstat -lntp | grep -E '8053|1080'
tcp        0      0 192.168.5.2:8053        0.0.0.0:*               LISTEN      566/ss-tunnel
tcp        0      0 192.168.5.2:1080        0.0.0.0:*               LISTEN      565/ss-redir

ps ww | grep ss-
  565 root      1920 S    /usr/bin/ss-redir -c /var/etc/shadowsocks-libev/ss_redir.ssr0.json
  566 root      1532 S    /usr/bin/ss-tunnel -c /var/etc/shadowsocks-libev/ss_tunnel.cfg0249c0.json
 2399 root      1080 S    grep ss-

cat /var/etc/shadowsocks-libev/ss_redir.ssr0.json
{
        "server": "***********",
        "server_port": 10500,
        "method": "chacha20-ietf-poly1305",
        "password": "***********",
        "plugin": "ck-client",
        "plugin_opts": "***********,
        "use_syslog": true,
        "ipv6_first": false,
        "fast_open": false,
        "reuse_port": true,
        "no_delay": false,
        "local_address": "192.168.5.2",
        "local_port": 1080,
        "mode": "tcp_and_udp
}"


cat /var/etc/shadowsocks-libev/ss_tunnel.cfg0249c0.json
{
        "server": "***************",
        "server_port": 10500,
        "method": "chacha20-ietf-poly1305",
        "password": "****************",
        "plugin": "ck-client",
        "plugin_opts": "********",
        "tunnel_address": "8.8.8.8:53",
        "use_syslog": true,
        "ipv6_first": false,
        "fast_open": false,
        "reuse_port": false,
        "no_delay": false,
        "local_address": "192.168.5.2",
        "local_port": 8053,
        "mode": "tcp_and_udp"
}

I changed to tcp mode and it's just working on PC computer and not working mobile devices (IOS and Android)

it seems shadowsocks have bug with cloak option ,I run it without option and it's working now
another problem is shadowsocks enabled but not running auto after reboot.
It needs to start it manually
I put this "
@reboot sleep 60 && /etc/init.d/shadowsocks-libev restart"
in cronab but not working.

BusyBox crontab does not support @reboot.
You should use /etc/rc.local or hotplug.
Or better avoid using interface/socket binding.

does rc.local one time after rebooting ?

1 Like

I set cloak option with this option with my server parameters

UID=#;PublicKey=#;ServerName=#;BrowserSig=chrome;NumConn=100;ProxyMethod=shadowsocks;EncryptionMethod=plain;StreamTimeout=300

does it correct or needs to change something ?