Dear all,
I have implemented a small firewall on linux as a kernel
module (.ko)
(using victor castros tutorial on netfilter programming) .
and now i
need to pass arguments such as source ip, dst ip,
port..etc..from a
remote machine to my firewall module. basically .ko module
should
accept that parameters and block the specific traffic.
without
unloading the kernel module how should i insert my firewall
rules to
kernel module.
can someone give me a sample code for that.
many thnaks,
Tharanga
|