Skip to contentSkip to conversation

traffic monitoring

LARTC Adi 2 participants 2 messages Feb 17, 2004 – Feb 18, 2004

lore
Share & tools
lore

Adi

author
#0 lore raw

I have bridge that used for bw manager but
i have problem with traffic accounting using iptables.

I already used -t mangle -A PREROUTING -j ACCEPT but no packet match. I see the bytes using iptables -t mangle -nL -vx and the value is 0.

Any suggestion why?
Or anyone have another tool or script to accounting in bridge.

Thanks

----- Original Message -----
From: "mark ryan" <[email protected]>
To: "lartc" <[email protected]>
Sent: Thursday, February 12, 2004 2:50 PM
Subject: [LARTC] limiting ports

Quoted 11 lines

Will the following commands limit my ftpserver upload speed on the passive ports?

iptables -t mangle -A FORWARD -m tcp -p tcp -s 192.168.1.101 --sport 50000:60000 -j MARK --set-mark 0x02
tc qdisc add dev eth0 root handle 1: htb default 20
tc class add dev eth0 parent 1:1 classid 1:30 htb rate 340kbit burst 6k prio 2

Quoted 9 lines

I want to mark the packets from 192.168.1.101 ports 50000-60000.....and limit the speed to 340kbit.

Mark

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

Bridge ? Wouldn't you need ebtables or bride-nf+iptables ?
http://ebtables.sourceforge.net

Rubens

Quoted 34 lines · Adi

I have bridge that used for bw manager but
i have problem with traffic accounting using iptables.

I already used -t mangle -A PREROUTING -j ACCEPT but no packet match. I see the bytes using iptables -t mangle -nL -vx and the value is 0.

Any suggestion why?
Or anyone have another tool or script to accounting in bridge.

Thanks

----- Original Message -----
From: "mark ryan" <[email protected]>
To: "lartc" <[email protected]>
Sent: Thursday, February 12, 2004 2:50 PM
Subject: [LARTC] limiting ports

Quoted 16 lines

Will the following commands limit my ftpserver upload speed on the passive ports?

iptables -t mangle -A FORWARD -m tcp -p tcp -s 192.168.1.101 --sport 50000:60000 -j MARK --set-mark 0x02
tc qdisc add dev eth0 root handle 1: htb default 20
tc class add dev eth0 parent 1:1 classid 1:30 htb rate 340kbit burst 6k prio 2

I want to mark the packets from 192.168.1.101 ports 50000-60000.....and limit the speed to 340kbit.

Mark

Quoted 9 lines
Quoted 4 lines

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/