From: "Kertész Viktor" <kviktor@i-trade.hu>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] htb parameter problem
Date: Mon, 10 Mar 2003 13:01:34 +0000 [thread overview]
Message-ID: <marc-lartc-104730136723181@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104701906522033@msgid-missing>
Hi,
>
> iptables -t mangle -A FORWARD -p tcp -o eth0 -s 0/0 --dport ftp -d 0/0 -j MARK --set-mark 2
> iptables -t mangle -A PREROUTING -p tcp -i eth0 -s 0/0 --dport ftp -d 0/0 -j MARK --set-mark 2
> iptables -t mangle -A FORWARD -p tcp -o eth0 -s 0/0 --dport ftp-data -d 0/0 -j MARK --set-mark 7
> iptables -t mangle -A PREROUTING -p tcp -i eth0 -s 0/0 --dport ftp-data -d 0/0 -j MARK --set-mark 7
> iptables -t mangle -A FORWARD -p tcp -o eth0 -s 0/0 --dport http -d 0/0 -j MARK --set-mark 5
instead of --dport ftp-data/ftp use -m helper --helper "ftp". Match for
port does not work because of the nature of ftp. (passive mode) This can
be tricky.
Viktor
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2003-03-10 13:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-07 6:36 [LARTC] htb parameter problem liang jian
2003-03-07 6:55 ` Martin A. Brown
2003-03-07 8:53 ` liang jian
2003-03-08 19:39 ` Stef Coene
2003-03-10 2:02 ` liang jian
2003-03-10 13:01 ` Kertész Viktor [this message]
2003-03-10 17:51 ` Stef Coene
2003-03-12 12:48 ` liang jian
2003-03-12 20:48 ` Stef Coene
2003-03-13 2:31 ` liang jian
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=marc-lartc-104730136723181@msgid-missing \
--to=kviktor@i-trade.hu \
--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 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.