Score:0

Linux TCP/IP Connections Limit

ad flag

I want only 1 incoming connection from port 1000 to 65535 to be able to connect to the ubuntu server, how and in what way can it be done?

zwets avatar
us flag
Do you mean one connection at a time, from any server? From one other server? What do you mean by "connect"? Please expand your question to make clear what you are trying to achieve.
Score:1
jp flag

This iptables rule will allow 1 TCP connection at a time for that port range.

iptables -A INPUT -p tcp --syn --match multiport --dports 1000:65535 -m connlimit --connlimit-above 1 --connlimit-mask 0 -j DROP

inspiring links

soheilsh avatar
ad flag
thanks for replay I tested the method you mentioned and it disconnects correctly, but it doesn't connect again
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.