Socks5 ip disconnect after sometime

I've tried different methods to connect socks5 IP on my router and successfully connected. However, after some time, those IPs disconnect automatically. I've tried using redsocks, passwall, and ssr+ but encountered the same issue. This problem occurred on three different routers, and each time there were 2 or 3 other routers connected to the LAN port. When there are no sub-routers on the LAN port, the proxy works fine without any issues. However, when there are other routers connected to the LAN port, I face this issue. If anyone knows a solution to fix this issue, please share it.

Current configuration:

  • Router: Netgear R6120
  • Architecture: MediaTek MT7628AN
  • Firmware Version: OpenWrt 23.05.4

Most likely router ran out of 64MB memory, install zram swapp and it adds swap backed by compressed memory, router will get slower in place of otherwise glitching and killing processes.

1 Like

If you could kindly explain the process of how to do that, I would greatly appreciate it. Thank you.

Luci -> System -> Software -> Refresh sources -> in search type zram-swap -> install
Return to status page it shows ~30MB swap which will be backed by (significantly less) compressed memory

1 Like

At which point?

1 Like

after install the zram swap. got this error and after that when go to overview page then got last massage that i reply.

"zram_start: activating '/dev/zram0' for swapping (27 MiB)
zram_reset: enforcing defaults via /sys/block/zram0/reset
zram_comp_algo: set compression algorithm 'lzo' for zram '/dev/zram0'"

Normally you would log out and in to luci for new module (but zram is just one line in main status) or restart device and make a new login after.

1 Like

there no login page after reboot showing this.

Runtime error
Unhandled exception during request dispatching
module 'luci.ucodebridge' not found:
no field package.preload['luci.ucodebridge']
no file './luci/ucodebridge.lua'
no file '/usr/share/lua/luci/ucodebridge.lua'
no file '/usr/share/lua/luci/ucodebridge/init.lua'
no file '/usr/lib/lua/luci/ucodebridge.lua'
no file '/usr/lib/lua/luci/ucodebridge/init.lua'
no file './luci/ucodebridge.so'
no file '/usr/lib/lua/luci/ucodebridge.so'
no file '/usr/lib/lua/loadall.so'
no file './luci.so'
no file '/usr/lib/lua/luci.so'
no file '/usr/lib/lua/loadall.so'

In anonymous function, file [C]
In anonymous function, file /usr/share/ucode/luci/runtime.uc, line 55, byte 48:
called from function [anonymous function] (/usr/share/ucode/luci/runtime.uc:69:30)
called from function [anonymous function] (/usr/share/ucode/luci/dispatcher.uc:932:91)
called from anonymous function (/www/cgi-bin/luci:39:13)

this.L.invoke('require', 'luci.ucodebridge');
Near here -------------------------------------------------^

This file is not in default installation. Did you install and uninstall any luci plugins

1 Like

yeah some of plugin i install priviusly unstall now. now reset my router. installing again zramswap.

luci-compat does not uninstall cleanly (if you see it uninstalling just install it back via SSH)

1 Like

plz tall me the process i have putty and ssh i know some of it.

If you see luci-compat being uninstalled in luci it means luci is killed off

In command line:

opkg update # aka refresh rouces
opkg install luci-compat # install package
1 Like

tnx man. its a verybig help i am suffer this problem from a several month.

1 Like

till now working fine but today got the same issue as Previus and installed zram swap 2times. same issue as previous. any solution.

Examine logs after disconnection using "logread -e socks"

Also check in th first status page - if swap is getting usedm or there is some other problem accumulating over longer runtime.


Solution is here. Probably make a PR to double defaults, problems would arise if you reach 30k conntrack states with real connections, way past 4k suggested there.

TNX BRO. Its a big help.