All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Re: Shaping only FTP traffic
@ 2001-09-25  8:55 Shanker Balan
  2001-09-25 10:08 ` Ivan Lopez
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Shanker Balan @ 2001-09-25  8:55 UTC (permalink / raw)
  To: lartc

Hello:

Ivan Lopez wrote,
> you just filter by ftp-data port (20) and by passive ports range (most
> ftp daemons gives you the chance to define a determinate range of
> ports to use in passive mode)

But i have no control over the FTP clients users behind my Linux router
will use. Moreover, i have full NAT for my internal network.
 
> i discourage you from shaping ftp control traffic (21), because of the
> annoying delay you introduce in the interactiveness of the ftp session

Ok. Will take out port 21 then.

> this is how i do it using iptables marking and fw tc filter
> 
> #for matching ftp-data iptables -A OUTPUT -o $IF_EXT -p tcp --sport 20
> -j MARK 1 #for matching passive ports range that i configured in my
> ftp daemon iptables -A OUTPUT -o $IF_EXT -p tcp --sport 5000:5100 -j
> MARK 1

For this to work, all FTP clients should be configured to use only ports
between 5000 and 5100 right?

-- 
Emperor Palpatine:
	Everything that has transpired has done so according
	to my design.

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-09-25 12:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-25  8:55 [LARTC] Re: Shaping only FTP traffic Shanker Balan
2001-09-25 10:08 ` Ivan Lopez
2001-09-25 10:49 ` Shanker Balan
2001-09-25 11:29 ` Daniel Bergqvist
2001-09-25 11:56 ` Ivan Lopez
2001-09-25 12:43 ` Shanker Balan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.