iptables dynamic port blocking
I was wondering if there is a way to get callbacks from iptables in my usermode application when a destination port is being opened.

I need this because I want to block a port when a certain condition is met. I don't want to apply rules because I need to decide at that precise moment (not beforehand) whether the port is allowed or rejected.

How can this be done with iptables?

iptables dynamic port blocking
===

I was wondering if there is a way to get callbacks from iptables in my usermode application when a destination port is being opened.

I need this because I want to block a port when a certain condition is met. I don't want to apply rules because I need to decide at that precise moment (not beforehand) whether the port is allowed or rejected.

How can this be done with iptables?
