* IPv4 route cache DOS attack
@ 2012-11-27 23:15 叶雨飞
2012-11-28 1:01 ` Eric Dumazet
2012-11-28 2:14 ` David Miller
0 siblings, 2 replies; 5+ messages in thread
From: 叶雨飞 @ 2012-11-27 23:15 UTC (permalink / raw)
To: netdev
Hi,
I have a linux router running kernel 3.2 that receive public ingress
packets and route them through an GRE tunnel, return packets don't go
through it
I've recently faced a serious issue with the route cache, when the
router received spoofed source , the route cache will quickly get
exhausted (depending on the size of it) and soon the ip dst cache
overflow will be printed and network subsystem will hang until
restarted.
So, my question is, how can I turn off the route cache without
recompile the kernel or adding the patch for removal in 3.7? I
tried to set
echo 0 > /proc/sys/net/ipv4/route/max_size but that has no effect at all.
And if some one can share some insight on why when dst cache
overflows, the network subsystem hangs, it would be great.
Thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: IPv4 route cache DOS attack
2012-11-27 23:15 IPv4 route cache DOS attack 叶雨飞
@ 2012-11-28 1:01 ` Eric Dumazet
2012-11-28 1:34 ` 叶雨飞
2012-11-28 2:14 ` David Miller
1 sibling, 1 reply; 5+ messages in thread
From: Eric Dumazet @ 2012-11-28 1:01 UTC (permalink / raw)
To: 叶雨飞; +Cc: netdev
On Tue, 2012-11-27 at 15:15 -0800, 叶雨飞 wrote:
> Hi,
>
> I have a linux router running kernel 3.2 that receive public ingress
> packets and route them through an GRE tunnel, return packets don't go
> through it
>
> I've recently faced a serious issue with the route cache, when the
> router received spoofed source , the route cache will quickly get
> exhausted (depending on the size of it) and soon the ip dst cache
> overflow will be printed and network subsystem will hang until
> restarted.
>
> So, my question is, how can I turn off the route cache without
> recompile the kernel or adding the patch for removal in 3.7? I
> tried to set
>
> echo 0 > /proc/sys/net/ipv4/route/max_size but that has no effect at all.
>
> And if some one can share some insight on why when dst cache
> overflows, the network subsystem hangs, it would be great.
echo -1 >/proc/sys/net/ipv4/rt_cache_rebuild_count
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: IPv4 route cache DOS attack
2012-11-28 1:01 ` Eric Dumazet
@ 2012-11-28 1:34 ` 叶雨飞
0 siblings, 0 replies; 5+ messages in thread
From: 叶雨飞 @ 2012-11-28 1:34 UTC (permalink / raw)
To: Eric Dumazet; +Cc: netdev
Thanks!!! it works, after flushing cache it stays 0.
On Tue, Nov 27, 2012 at 5:01 PM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
> On Tue, 2012-11-27 at 15:15 -0800, 叶雨飞 wrote:
>> Hi,
>>
>> I have a linux router running kernel 3.2 that receive public ingress
>> packets and route them through an GRE tunnel, return packets don't go
>> through it
>>
>> I've recently faced a serious issue with the route cache, when the
>> router received spoofed source , the route cache will quickly get
>> exhausted (depending on the size of it) and soon the ip dst cache
>> overflow will be printed and network subsystem will hang until
>> restarted.
>>
>> So, my question is, how can I turn off the route cache without
>> recompile the kernel or adding the patch for removal in 3.7? I
>> tried to set
>>
>> echo 0 > /proc/sys/net/ipv4/route/max_size but that has no effect at all.
>>
>> And if some one can share some insight on why when dst cache
>> overflows, the network subsystem hangs, it would be great.
>
> echo -1 >/proc/sys/net/ipv4/rt_cache_rebuild_count
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: IPv4 route cache DOS attack
2012-11-27 23:15 IPv4 route cache DOS attack 叶雨飞
2012-11-28 1:01 ` Eric Dumazet
@ 2012-11-28 2:14 ` David Miller
2012-11-28 2:48 ` 叶雨飞
1 sibling, 1 reply; 5+ messages in thread
From: David Miller @ 2012-11-28 2:14 UTC (permalink / raw)
To: sunyucong; +Cc: netdev
We saw your email the other day, do not resend the same exact
question over and over again.
If nobody has time, or wants, to answer you, then you have to simply
accept that. Repeating your posting only will make things worse
for you, trust me.
Thank you.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: IPv4 route cache DOS attack
2012-11-28 2:14 ` David Miller
@ 2012-11-28 2:48 ` 叶雨飞
0 siblings, 0 replies; 5+ messages in thread
From: 叶雨飞 @ 2012-11-28 2:48 UTC (permalink / raw)
To: David Miller; +Cc: netdev
my first email is to lartc@ and this one is to netdev@ .
On Tue, Nov 27, 2012 at 6:14 PM, David Miller <davem@davemloft.net> wrote:
>
> We saw your email the other day, do not resend the same exact
> question over and over again.
>
> If nobody has time, or wants, to answer you, then you have to simply
> accept that. Repeating your posting only will make things worse
> for you, trust me.
>
> Thank you.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-11-28 2:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-27 23:15 IPv4 route cache DOS attack 叶雨飞
2012-11-28 1:01 ` Eric Dumazet
2012-11-28 1:34 ` 叶雨飞
2012-11-28 2:14 ` David Miller
2012-11-28 2:48 ` 叶雨飞
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox