From: Dimitris Kotsonis <jnk@pwn.emphyrio.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Marking ftp inbound traffic is impossible ?
Date: Sat, 08 Jan 2005 09:48:18 +0000 [thread overview]
Message-ID: <41DFAC62.6090309@pwn.emphyrio.org> (raw)
In-Reply-To: <20050108075557.73544.qmail@web51605.mail.yahoo.com>
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/
next prev parent reply other threads:[~2005-01-08 9:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-08 7:55 [LARTC] Marking ftp inbound traffic is impossible ? ngo giang
2005-01-08 9:48 ` Dimitris Kotsonis [this message]
2005-01-08 11:57 ` Andy Furniss
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41DFAC62.6090309@pwn.emphyrio.org \
--to=jnk@pwn.emphyrio.org \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox