LARTC
[Top] [All Lists]

[LARTC] Re: drop silently locally generated packets

To: lartc@mailman.ds9a.nl
Subject: [LARTC] Re: drop silently locally generated packets
From: "Aleksandar Kostadinov" <avalon@friendofpooh.com>
Date: Wed, 16 May 2007 22:56:19 +0300
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
In-reply-to: <a886f3c10705160543i3a4260b9x2924892de245beeb@mail.gmail.com>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <a886f3c10705160543i3a4260b9x2924892de245beeb@mail.gmail.com>
Sender: lartc-bounces@mailman.ds9a.nl
Hi. I want to drop silently locally generated packets on a specific interface. I tried 2 approaches:

tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb
tc filter add dev eth0 parent 1: proto ip u32 match ip dst 10.10.10.1 flowid 1:1 police conform-exceed drop/drop

tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: prio bands 2 priomap 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
tc qdisc add dev eth0 parent 1:2 handle 3:0 netem drop 100
tc filter add dev eth0 parent 1: proto ip u32 match ip dst 10.10.10.1 flowid 1:2

Both work (drop the packets to 10.10.10.1 and pass any others) but when I run "ping 10.10.10.1" I get after some time continuously "ping: sendmsg: No buffer space available".
Any idea why is this happening? As well how could I drop packets without application being able to detect it?

Thanks much,
Alexander
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
<Prev in Thread] Current Thread [Next in Thread>