shadowsocks-rust icon indicating copy to clipboard operation
shadowsocks-rust copied to clipboard

Running on router: memory allocation of 327660 bytes failed

Open ameir opened this issue 1 year ago • 5 comments
trafficstars

I am trying to run this on a router, and while it works, it only works for a very short period of time. Shortly after I set it as the default route, I get the following message before it aborts: memory allocation of 327660 bytes failed.

This is a Linksys EA6900 router with 255MB of memory. Do you have any thoughts/suggestions on how I can overcome this issue? I am also currently bypassing Shadowsocks for my DNS resolvers to avoid overwhelming it with UDP requests.

For reference, this is how I am invoking it:

sslocal --server-addr "xxxx" \
    --password "xxxx" \
    --encrypt-method "chacha20-ietf-poly1305" \
    --protocol tun --local-addr="127.0.0.1:8444" -U  \
    --tun-interface-address "192.168.220.1/24"

ameir avatar Sep 30 '24 20:09 ameir