Skip to contentSkip to conversation

port parameter of ftp conntrack module

DISCUSSION Nguyen Binh Phuong 2 participants 2 messages Oct 13, 2003 – Oct 14, 2003 netfilter

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
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 of ip_conntrack_ftp.c?

Either compiler info ip_conntrack_ftp, or as module arguments when you instert the module into the kernel.

Regards
Henrik