Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to limit one port only accept one connection? #119

Open
travelbob2005 opened this issue Jul 15, 2015 · 3 comments
Open

How to limit one port only accept one connection? #119

travelbob2005 opened this issue Jul 15, 2015 · 3 comments

Comments

@travelbob2005
Copy link

How to limit one port only accept one shadowsocks connection?

@WalkerWalker
Copy link

WalkerWalker commented Mar 18, 2017

I have the exact same need. In the wiki I have found this

  1. 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

@itsOmidKarami
Copy link

did anyone find any working solution for this problem?
i have the same problem and i couldn't find any solution for that!

@chenshaoju
Copy link
Contributor

this project was discarded.
Please use other versions of shadowsocks: https://github.com/shadowsocks/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants