Open travelbob2005 opened 9 years ago
I have the exact same need. In the wiki I have found this
- Limit connections
iptables -A INPUT -p tcp --syn --dport ${SHADOWSOCKS_PORT} -m connlimit --connlimit-above >32 -j REJECT --reject-with tcp-reset
But it doesn't work for me. I have change the ${SHADOWSOCKS_PORT}
to one of my port 8334 and change 32 to 1 because I want to limit this port with only one connection.
iptables -A INPUT -p tcp --syn --dport 8334 -m connlimit --connlimit-above 1 -j REJECT --reject-with tcp-reset
but it doesn't work for me
did anyone find any working solution for this problem? i have the same problem and i couldn't find any solution for that!
this project was discarded. Please use other versions of shadowsocks: https://github.com/shadowsocks/
How to limit one port only accept one shadowsocks connection?