BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] Limit the number of ip addresses which can connect to a port
- Subject: [Discuss] Limit the number of ip addresses which can connect to a port
- From: mariolzx at gmail.com (Tom Luo)
- Date: Mon, 30 Oct 2017 17:08:36 -0500
Hi, All, I am running a service in Ubuntu on a port. I try to limit the number of ip addresses which can connect to the port. For example, if the limit is set to 1, only connect from on ip address is allowed. If there is a connection from another ip address, it will be declined. The only thing I can find so far is: iptables -I INPUT -p tcp --dport 8000 -m connlimit --connlimit-upto 200 --connlimit-mask 0 -j ACCEPT However, this only limits the number of connections instead of the number of ip addresses. Any one knows how to do it? Thanks a lot! Tom
- Follow-Ups:
- [Discuss] Limit the number of ip addresses which can connect to a port
- From: abreauj at gmail.com (John Abreau)
- [Discuss] Limit the number of ip addresses which can connect to a port
- From: richard.pieri at gmail.com (Richard Pieri)
- [Discuss] Limit the number of ip addresses which can connect to a port
- Prev by Date: [Discuss] Ubuntu 17.10: As messed up as it appears in first impression?
- Next by Date: [Discuss] Limit the number of ip addresses which can connect to a port
- Previous by thread: [Discuss] Ubuntu 17.10: As messed up as it appears in first impression?
- Next by thread: [Discuss] Limit the number of ip addresses which can connect to a port
- Index(es):