Acris / shadowsocks-asuswrt-merlin

Shadowsock for Asuswrt-Merlin New Gen
MIT License
255 stars 44 forks source link

can't connect to shadowsocks server #58

Closed leslielg closed 2 months ago

leslielg commented 4 months ago

{ "server": "c77s1.portablesubmarines.com", "server_port": 5110, "local_address": "0.0.0.0", "local_port": 1080, "password": "xxxxxxx", "timeout": 600, "method": "aes-256-gcm", "mode": "tcp_and_udp" }

not sure if installed correctly, sometimes I saw download fail while installing, but eventually it says install finished. shadowsocks server is working on my cell phone

leslielg commented 4 months ago

is below ipset list correct? gfwlist is empty? `ipset list Name: userwhitelist Type: hash:net Revision: 6 Header: family inet hashsize 1024 maxelem 65536 Size in memory: 316 References: 1 Number of entries: 0 Members:

Name: usergfwlist Type: hash:net Revision: 6 Header: family inet hashsize 1024 maxelem 65536 Size in memory: 316 References: 1 Number of entries: 0 Members:

Name: gfwlist Type: hash:ip Revision: 4 Header: family inet hashsize 1024 maxelem 65536 Size in memory: 60 References: 1 Number of entries: 0 Members:

Name: localips Type: hash:net Revision: 6 Header: family inet hashsize 1024 maxelem 65536 Size in memory: 1380 References: 1 Number of entries: 19 Members: 224.0.0.0/4 169.254.0.0/16 192.175.48.0/24 192.168.0.0/16 172.16.0.0/12 100.64.0.0/10 192.52.193.0/24 10.0.0.0/8 127.0.0.0/8 203.0.113.0/24 198.51.100.0/24 192.88.99.0/24 198.18.0.0/15 192.31.196.0/24 240.0.0.0/4 0.0.0.0/8 255.255.255.255 192.0.0.0/24 192.0.2.0/24

Name: whitelist Type: hash:ip Revision: 4 Header: family inet hashsize 1024 maxelem 65536 Size in memory: 220 References: 1 Number of entries: 4 Members: 65.49.201.63 119.29.29.29 47.96.179.163 118.89.110.78 `

leslielg commented 4 months ago

seems you didn't add anything into gfwlist if [[ ${mode} -eq 0 ]]; then

Add GFW list to gfwlist ipset for GFW list mode

if ipset create gfwlist hash:ip 2>/dev/null; then
if [[ -s ${DNSMASQ_CONFIG_DIR}/dnsmasq_gfwlist_ipset.conf.bak ]]; then
rm -f ${DNSMASQ_CONFIG_DIR}/dnsmasq_gfwlist_ipset.conf 2>/dev/null
cp ${DNSMASQ_CONFIG_DIR}/dnsmasq_gfwlist_ipset.conf.bak ${DNSMASQ_CONFIG_DIR}/dnsmasq_gfwlist_i fi
fi
elif

Acris commented 4 months ago

Hi, please run below commands to update the gfwlist rules and restart ss-merlin again:

cd /opt/share/ss-merlin/scripts
./update_gfwlist.sh
ss-merlin restart
Acris commented 2 months ago

Hi, issue closed, feel free to re-open it if needed.