Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month at the Massachusetts Institute of Technology, in Building E51.

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

> From: Tom Luo <mariolzx at>
> 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.

As Richard Pieri says, you could have your application impose this

It would be straightforward for a firewall to implement such a
restriction -- if anyone ever wanted a firewall to do so.

But it's really a rather odd restriction you're trying to implement.
It's not clear to me what circumstances would make such a restriction
desirable/useful.  Maybe if you explained the reasons, we might be able
to suggest an alternative that would be easier to implement and just as


BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!

Boston Linux & Unix /