Re: lug-bg: marking packets and tc rules
- Subject: Re: lug-bg: marking packets and tc rules
- From: divanov@email.domain.hidden (Damyan Ivanov)
- Date: Fri, 14 Mar 2003 11:18:03 +0200
On Fri, 14 Mar 2003 10:33:13 +0200 (EET)
Konstantin Ivanov <lugbg_at_abv.bg> wrote:
<em class="quotelev1">> Markiram izhodiashtite paketi kym dadeno IP po slednia nachin:
<em class="quotelev1">>
<em class="quotelev1">> iptables -A PREROUTING -i eth2 -t mangle -s xxx.xxx.xxx.xxx -d xxx.xxx.xxx.xxx/xx -j MARK --set-mark 1
<em class="quotelev1">>
<em class="quotelev1">> Set mark markira TOS poleto, ako gresha me popravete.
Ts, "markira" go po nyakakav specialen nachin, koyto samo kernel-a si znae.
<em class="quotelev1">> Interesuva me kak s tc pravila da opravliavam (v sluchea da shape-na) vsichki paketi koito sa markirani s mark 1. Mislia che filtyra e tozi, popravete me ako gresha:
<em class="quotelev1">>
<em class="quotelev1">> tc filter add dev ppp0 parent 1:0 prio 10 u32 \
<em class="quotelev1">> match ip tos 0x10 0xff \
<em class="quotelev1">> flowid 1:4
handle 1 fw vmesto u32...
HTH,
dam
--
Damyan Ivanov Creditreform Bulgaria
divanov_at_creditreform.bg http://www.creditreform.bg/
phone: +359 2 928 2611, 929 3993 fax: +359 2 920 0994
mobile: +359 88 566067 ICQ: 3028500
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
<hr> Attachment:
part
Description: PGP signature
|