Skip to contentSkip to conversation

Changing netfilter rules from a kernel module

DISCUSSION spid spid 2 participants 2 messages Sep 22, 2004 – Sep 23, 2004 netfilter

lore
Share & tools
lore

spid spid

author
#0 lore raw

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

#1 lore raw

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/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