port parameter of ftp conntrack module
Hello,
When I issue this command:
iptables -A INPUT -m helper --helper ftp -j ACCEPT
I don't know:
1/ How can ftp conntrack module is called inside kernel?
2/ How can ftp conntrack module get ports parameter inside kernel? Who does transmit value of port parameter to init() function of ip_conntrack_ftp.c? Pls help me!
Thanks in advance,
Nguyen Binh Phuong
R&D Dept, Sunyard Embedded Tech Company.
Quoted 1 line · Nguyen Binh Phuong
1/ How can ftp conntrack module is called inside kernel?
By the definition of the ftp helper in the ftp helper module conntrack knows that for ftp traffic it needs to call the ftp helper.
Quoted 1 line
2/ How can ftp conntrack module get ports parameter inside kernel? Who does transmit value of port parameter to
init()function ofip_conntrack_ftp.c?
Either compiler info ip_conntrack_ftp, or as module arguments when you instert the module into the kernel.
Regards
Henrik