I have a process greedyprocess
that is always run as user greedyuser
that uses too many NAT connections. They aren't using too much bandwidth, instead they are clogging up the router's NAT table. Is it possible to limit the user to, say, 1000 open connections? I would prefer some kind of kernel limit on the number of sockets that greedyuser
can have open.
Server running debian jessie (stable branch at the time of writing). No, I cannot work around the NAT as I do not control the router.
User's open file limit is 166,384 and I prefer not to reduce this if possible. I only want to limit open sockets, not all open files.