Skip to contentSkip to conversation

ip_conntrack_ftp.c kernel source more ports

DISCUSSION HakRz1 2 participants 2 messages Jan 20, 2004 – Jan 21, 2004 netfilter

lore
Share & tools
lore

HakRz1

author
#0 lore raw

Hello,
im trying to make a big security flaw in my network but i want to try
anyways ...what im trying to do is make ip_conntrack_ftp monitor all non standard ports instead of defualt 21
i know ip_conntrack_ftp.h is where it gets port 21 defined
is there anyway to make it monitor all FTP ports without typing in all ports manually

i know alot of you dont like this idea but the way i figure it is to get Active FTP to work on non standard ports ( or even using pasv) you cant close the firewall can only close ports 1-1080 for pasv to work if i can get this module to work with all ports then i can enable established and related connections only...sounds secure to me more so than before with ports 1-1080 :)

Hope somone can help me with this

also i already know about modprobe ip_conntrack_ftp ports=...etc but this is a hassle to do

im running kernel 2.6.0 / iptables v1.2.8 / slackware 9.1

Thanks

#1 lore raw
Quoted 4 lines · On Mon, Jan 19, 2004 at 11:38:08PM -0800, HakRz1 wrote:

Hello,
im trying to make a big security flaw in my network but i want to try
anyways ...what im trying to do is make ip_conntrack_ftp monitor all non standard ports instead of defualt 21

what is your definition of 'all non-standard ports' ?

Quoted 3 lines

i know ip_conntrack_ftp.h is where it gets port 21 defined
is there anyway to make it monitor all FTP ports without typing in all ports manually

no, and there's a good reason for that: You add a huge performance penalty to any kind of traffic on those poerts.

After ftp, you would start to look for any kind of other protocol, like h.323, irc, ... and then you would end up running all helpers on all ports.

If you do that, performance cannot be important to you anymore.

Thus, you should use a transparent proxy for this kind of stuff.

Quoted 1 line

Thanks

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