Subject: [alpine-devel] route caches..... help !!!

From: HL <[email-masked]>
Date: Fri, 20 Sep 2013 14:38:28 +0300

Hey all,

I need some help here ...

I am running alpine linux 2.6.4 64bits

3.10.10-1-grsec #2-Alpine SMP Tue Sep 3 07:05:53 UTC 2013 x86_64 Linux
ip utility, iproute2-ss130430

The command
ip route show cache
show no caches at ALL ...

Is it just me ?
Did something got changed in the kernel or utils ???

Do I need to adjust some kerne vars ???

Regards,
Harry

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Timo Teras <[email-masked]>
Date: Fri, 20 Sep 2013 14:47:49 +0300

On Fri, 20 Sep 2013 14:38:28 +0300

> Do I need to adjust some kerne vars ???

Kernel changed. The routing cache was removed from linux kernel, thus
no cached routes exists anymore there.

You can still check what would be the used data via
 ip route get <ip-to-target>

And it looks like cached route - but is calculated on demand.

- Timo

---

---

From: HL <[email-masked]>
Date: Fri, 20 Sep 2013 15:01:56 +0300

> And it looks like cached route - but is calculated on demand.
Thank's Timo ...

That's bad news ...
This explains the problem in udp ( ie openvpn udp mode ) connections and 
multihome  setups  :-(
- harry

---

---

From: Timo Teras <[email-masked]>
Date: Fri, 20 Sep 2013 15:08:13 +0300

On Fri, 20 Sep 2013 15:01:56 +0300
HL <[email-masked]> wrote:

> >> 3.10.10-1-grsec #2-Alpine SMP Tue Sep 3 07:05:53 UTC 2013 x86_64
> >> Linux ip utility, iproute2-ss130430
> >>
> >> The command
> >> ip route show cache
> > Kernel changed. The routing cache was removed from linux kernel,
> > thus no cached routes exists anymore there.
> >
> This explains the problem in udp ( ie openvpn udp mode ) connections
> and multihome  setups  :-(

You still have netfilter's connection tracking cache that is udp/tcp
flow based. Any iptables rules you use to do per-flow type of things,
will still work.

- Timo

---