Changing netfilter rules from a kernel module
I've written a netfilter match for port knocking. I need a way of modifying rules from a kernel module. Currently, what I have is a server that reads from /proc/net/portknock to see which knocks are open and which knocks are closed.
Is changing [a] rule(s) from a kernel module currently possible?
If so, is there any reason not do to it this way?
it's not a port knocking question, but you may visit www.portknocking.org to view information about this idea.
Thanks.
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
An alternative to portknocking is to use NuFW : http://www.nufw.org.
You could even use the nufw code as start to a real portknocking system :
QUEUE packet on toc toc ports and target ports
test order in userspace and send ACCEPT if tests succeed.
Quoted 25 lines · spid spid
I've written a netfilter match for port knocking. I need a way of modifying rules from a kernel module. Currently, what I have is a server that reads from
/proc/net/portknockto see which knocks are open and which knocks are closed.Is changing [a] rule(s) from a kernel module currently possible?
If so, is there any reason not do to it this way?
it's not a port knocking question, but you may visit www.portknocking.org to view information about this idea.
Thanks.
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com