[ale] Close port

Beddingfield, Allen allen at ua.edu
Fri Jan 3 10:14:46 EST 2014


I'm wondering if you could accomplish a variation of this with selinux or Apparmor...or maybe by using kernel control groups....  then again, I've only taken a couple of sips of my coffee, and this response may sound completely off by the time I re-read it after finishing the cup :D

--
Allen Beddingfield
Systems Engineer
The University of Alabama
________________________________
From: ale-bounces at ale.org [ale-bounces at ale.org] on behalf of Jim Kinney [jim.kinney at gmail.com]
Sent: Friday, January 03, 2014 9:03 AM
To: Atlanta User Group (E-mail)
Subject: Re: [ale] Close port


That's the "well behaved" process. I'm looking for a solution at the kernel control level that can alter the list of ports the kernel manages for the aberrant process that hangs with an open port and dies leaving it open. It feels like a kernel bug to have an open port with no process attached. Closing a port with the owning process still running would be a useful tool for testing that process' response to a system failure.

On Jan 3, 2014 8:53 AM, "James Sumners" <james.sumners at gmail.com<mailto:james.sumners at gmail.com>> wrote:
Uh, a port is only open if a process has opened it. Short of killing
the process that opened it, your only option is dropping any requests
to that port with an iptables rule.

On Fri, Jan 3, 2014 at 8:37 AM, Jim Kinney <jim.kinney at gmail.com<mailto:jim.kinney at gmail.com>> wrote:
> Based on Alex's recent post with an errant port, I realized I have a gap in
> knowledge.
>
> As root, how can I close an open port without firewall stuff and regardless
> of whether a process is attached to the port or not?
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org<mailto:Ale at ale.org>
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>



--
James Sumners
http://james.roomfullofmirrors.com/

"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."

Missionaria Protectiva, Text QIV (decto)
CH:D 59
_______________________________________________
Ale mailing list
Ale at ale.org<mailto:Ale at ale.org>
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo



More information about the Ale mailing list