Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] Marking ftp inbound traffic is impossible ?
@ 2005-01-08  7:55 ngo giang
  2005-01-08  9:48 ` Dimitris Kotsonis
  2005-01-08 11:57 ` Andy Furniss
  0 siblings, 2 replies; 3+ messages in thread
From: ngo giang @ 2005-01-08  7:55 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 567 bytes --]

Hello,
 
I searched the archives mailing list of LARTC. Everyone discussed about marking outbound ftp 
 
traffic . I could not  find any thread discussed about marking inbound ftp traffic.
 
 With inbound ftp traffic , we don't know the random ports specified by ftp servers in passive mode ?
 
So marking inbound ftp traffic is impossible ?
 
If it is possible, can you tell me,
 
Thanks in advance,
 
nhgiang
 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[-- Attachment #2: Type: text/html, Size: 823 bytes --]

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

* Re: [LARTC] Marking ftp inbound traffic is impossible ?
  2005-01-08  7:55 [LARTC] Marking ftp inbound traffic is impossible ? ngo giang
@ 2005-01-08  9:48 ` Dimitris Kotsonis
  2005-01-08 11:57 ` Andy Furniss
  1 sibling, 0 replies; 3+ messages in thread
From: Dimitris Kotsonis @ 2005-01-08  9:48 UTC (permalink / raw)
  To: lartc

ngo giang wrote:
> Hello,
>  
> I searched the archives mailing list of LARTC. Everyone discussed about 
> marking outbound ftp
>  
> traffic . I could not  find any thread discussed about marking inbound 
> ftp traffic.
>  
>  With inbound ftp traffic , we don't know the random ports specified by 
> ftp servers in passive mode ?
>  
> So marking inbound ftp traffic is impossible ?
>  
> If it is possible, can you tell me,
>  
> Thanks in advance,
>  
> nhgiang

Use CONNMARK and owner match. For example, to mark incoming and ougoing 
packets of vsftpd with fwmark 12 use the following ...

iptables -t mangle -A OUTPUT -j CONNMARK --restore-mark
iptables -t mangle -A OUTPUT -m owner --cmd-owner vsftpd -j MARK-set-mark 12
iptables -t mangle -A OUTPUT -j CONNMARK --save-mark

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

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

* Re: [LARTC] Marking ftp inbound traffic is impossible ?
  2005-01-08  7:55 [LARTC] Marking ftp inbound traffic is impossible ? ngo giang
  2005-01-08  9:48 ` Dimitris Kotsonis
@ 2005-01-08 11:57 ` Andy Furniss
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Furniss @ 2005-01-08 11:57 UTC (permalink / raw)
  To: lartc

ngo giang wrote:
> Hello,
>  
> I searched the archives mailing list of LARTC. Everyone discussed about marking outbound ftp 
>  
> traffic . I could not  find any thread discussed about marking inbound ftp traffic.
>  
>  With inbound ftp traffic , we don't know the random ports specified by ftp servers in passive mode ?
>  
> So marking inbound ftp traffic is impossible ?
>  
> If it is possible, can you tell me,
>  
> Thanks in advance,
>  
> nhgiang

There's an ftp protocol netfilter match - if you are conntracking maybe 
that will do it - never tested it myself.

Andy.


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

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

end of thread, other threads:[~2005-01-08 11:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-08  7:55 [LARTC] Marking ftp inbound traffic is impossible ? ngo giang
2005-01-08  9:48 ` Dimitris Kotsonis
2005-01-08 11:57 ` Andy Furniss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox