[Olsr-dev] Asymmetric ipip not working

Markus Kittenberger (spam-protected)
Sun Apr 25 18:06:46 CEST 2010


afair its not necessary to set rp_filter on all or the wireless or lan
interfaces

but u must turn it off on the tun0 interface,.

but check with the olsrd code,..

Markus

On Sun, Apr 25, 2010 at 5:39 PM, Sven-Ola Tuecke <(spam-protected)> wrote:

> Hey,
>
> @henning | @markus: you must have it at least running. I'm too stupid
> obviously. Here's a manual example (without olsrd, two PCs with linux-2.6)
>
> PC-cli has 192.168.65.110 on wlan0, PC-srv has 192.168.65.67 on eth0
> No other routes nor interfaces (besides lo), no iptables, olsrd etc.
>
> On PC-srv, I enter:
> -------------------
> sysctl -w \
>  net.ipv4.ip_forward=1 \
>  net.ipv4.conf.all.rp_filter=0 \
>  net.ipv4.conf.eth0.rp_filter=0 \
>  net.ipv4.conf.all.send_redirects=0
> ip addr add dev lo 192.168.11.11
> # I need a ping target
> ping -c 1 192.168.11.11
> # works
> modprobe ipip
> ip link set dev tunl0 up
> tcpdump -ni tunl0
> # ok - waits and shows nothing
>
> on PC-cli, I enter:
> ------------------
> ping -c 1 192.168.11.11
> # unreachable
>
> ip route add 192.168.11.0/24 dev wlan0
> ping -c 1 192.168.11.11
> ip route del 192.168.11.0/24 dev wlan0
> # works, so no firewall in the way
>
> sysctl -w \
>  net.ipv4.ip_forward=1 \
>  net.ipv4.conf.all.rp_filter=0 \
>  net.ipv4.conf.wlan0.rp_filter=0 \
>  net.ipv4.conf.all.send_redirects=0
> modprobe ipip
> ip tunnel add ipip mode ipip local 192.168.65.110 remote 192.168.65.67
> ip link set dev ipip up
> ip route add 192.168.11.0/24 dev ipip
> ping -c 1 192.168.11.11
> # I see the ping via ipip on PC-srv(dev tunl0), but no answer packet
>
> So I need to ask again: what's missing?
>
> // Sven-Ola
>
> --
> Olsr-dev mailing list
> (spam-protected)
> http://lists.olsr.org/mailman/listinfo/olsr-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20100425/02eaa20e/attachment.html>


More information about the Olsr-dev mailing list