From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] FTP Connection Tracking in a Bridge
Date: Wed, 20 Aug 2003 12:24:15 +0000 [thread overview]
Message-ID: <marc-lartc-106138263111495@msgid-missing> (raw)
In-Reply-To: <marc-lartc-106136953432545@msgid-missing>
On Wednesday 20 August 2003 12:06, Wayne wrote:
> I believe I am using fwmark as below. Any input would be appreciated:
>
>
> Here is part of the setup:
>
> iptables -A PREROUTING -t mangle -j CONNMARK --restore-mark
> iptables -A PREROUTING -t mangle -m mark ! --mark 0 -j ACCEPT
> iptables -A PREROUTING -m mark --mark 0 -p tcp --sport 21 -t mangle -j
> MARK --set-mark 14
> iptables -A PREROUTING -m mark --mark 0 -p tcp --sport 80 -t mangle -j
> MARK --set-mark 2
> iptables -A PREROUTING -m mark --mark 0 -p tcp --sport 3128 -t mangle -j
> MARK --set-mark 2
> iptables -A PREROUTING -t mangle -j CONNMARK --save-mark
>
> tc filter add dev eth1 parent 1:2 protocol ip prio 1 handle 2 fw classid
> 1:2a
>
>
> Here is part of /proc/net/ip_conntrack showing the packet is getting
> marked:
>
> tcp 6 431989 ESTABLISHED src\x10.0.1.99 dst\x196.34.2.188 sport\x1838
> dport128 src\x196.34.2.188 dst\x10.0.1.99 sport128 dport\x1838 [ASSURED]
> use=1 mark=2
>
> Here is part of the QOS class stats show no packets being picked up by the
> filter command:
>
> class htb 1:2 parent 1:1001 leaf 2a: prio 0 quantum 1500 rate 22Kbit ceil
> 120Kbit burst 1627b/8 mpu 0b cburst 1752b/8 mpu 0b level 0
> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
> lended: 0 borrowed: 0 giants: 0
> tokens: 473600 ctokens: 93492
>
> Thanks
Can you also post your filter rules ?
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
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-08-20 12:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-20 8:48 [LARTC] FTP Connection Tracking in a Bridge Wayne
2003-08-20 9:02 ` Eric Leblond
2003-08-20 9:56 ` S Mohan
2003-08-20 10:06 ` Wayne
2003-08-20 12:24 ` Stef Coene [this message]
2003-08-20 12:26 ` Stef Coene
2003-08-20 12:38 ` Eric Leblond
2003-08-20 12:39 ` Wayne
2003-08-20 13:26 ` S Mohan
2003-08-20 15:17 ` Stef Coene
2003-08-21 7:28 ` Wayne
2003-08-22 19:12 ` Bart De Schuymer
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-106138263111495@msgid-missing \
--to=stef.coene@docum.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