Skip to contentSkip to conversation

Protocol Internal State

DISCUSSION Ricky Foo 2 participants 2 messages Jun 7, 2003 – Jun 11, 2003 netfilter

lore
Share & tools
lore

Ricky Foo

author
#0 lore raw

Hi all,

In the ftp helper module, why is it that we need to keep the internal state of the ftp protocol by defining the structures in the header? Since we already have the ct and expect structure, would it already be sufficient to identify future incoming related streams? Fill me with the details.

Ricky

_________________________________________________________________
Send a fun phone greeting to your friend! http://www.msn.com.sg/mobile/fungreetings/

#1 lore raw
Quoted 4 lines · Ricky Foo

Hi all,

In the ftp helper module, why is it that we need to keep the internal state of the ftp protocol by defining the structures in the header?

you are talking about the last newline stuff, etc? This is to make sure nobody abuses the FTP helper to drill holes in th firewall.

Quoted 3 lines

Since we already have the ct and expect structure, would it already be sufficient to identify future incoming related streams? Fill me with the details.

yes, but firewalls are actually about restricting access.. helpers should be very tight with what they allow.

Quoted 1 line

Ricky

Signature · 5 lines
- Harald Welte <[email protected]>             http://www.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