Skip to contentSkip to conversation

problem regarding ftp helper

DISCUSSION Harald Welte 1 participant 1 message Oct 11, 2006 1 message not in the archive netfilter

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 4 lines · manu gautam

By looking at the source code I cudnt figure out that how come helper is able to put the port information in the expect structure that it obtains from PORT command packet in case of active FTP. Other things are pretty clear in the NAT and CONNTRACK files.

I'm not really sure if I understand your question correctly.

Are you asking why we create an expectation for active FTP?

This is mainly for the case where we have a stateful packet filter (or NAT) in front of a FTP Server (rather than in front of the client).

In this case, passive / active are reversed, and we need to track (and possibly nat) the active FTP connections.

Please post further questions to the netfilter-devel mailinglist

Signature · 5 lines
- Harald Welte <[email protected]>                 http://netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie