From: =?UTF-8?B?RnLDqWTDqXJpYyBNYXNzb3Q=?= Date: Thu, 22 Mar 2007 09:58:46 +0000 Subject: [LARTC] Re: Mark on FTP passive traffic Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Rodolfo Brasnarof wrote: >=20 [...] > Here's what I'm using to mark ftp traffic for routing purposes, then > I use the prerouting chain: >=20 > # ftp > iptables -t mangle -A PREROUTING -i eth0 -p tcp --sport 20 -j MARK --set-= mark 1000 > iptables -t mangle -A PREROUTING -i eth0 -p tcp --dport 20 -j MARK --set-= mark 1000 > iptables -t mangle -A PREROUTING -i eth0 -p tcp --sport 21 -j MARK --set-= mark 1000 > iptables -t mangle -A PREROUTING -i eth0 -p tcp --dport 21 -j MARK --set-= mark 1000 > iptables -t mangle -A PREROUTING -m helper --helper ftp -j MARK --set-mar= k 1000 >=20 > With the use of the ftp_conntrack helper you can match all you ftp > traffic, even passive ftp. >=20 > I hope this can help you. Hi, Thank you, it is really what was necessary for me. :o) Regards. --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D | FR=C3=89D=C3=89RIC MASSOT | | http://www.juliana-multimedia.com | | mailto:frederic@juliana-multimedia.com | =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=DEbian=3DGNU/Linux=3D _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc