hello yanosz,
choose a priority somewhere between
1: from all lookup local
and
32766: from all lookup main
for your rules, e.g.:
ip rule add from 10.0.0.0/8 table 66 pref 11
I had the same problem when going from BB to CC.
They seem to have changed the default priority for added rules.
taz
13.03.2016 01:28 yanosz:
Hello,
I've two routers running 15.05.
Both have some 10.x.y.z/8 address configured on an ad-hoc network
(wlan0) - here I'm looking at 10.159.167.1
If I do enable policy routing, ARP requests are no longered answered on
wlan0.
I checked:
root@Freifunk-Uplink:~# sysctl net.ipv4.conf.all.arp_ignore
net.ipv4.conf.all.arp_ignore = 0
root@Freifunk-Uplink:~# sysctl net.ipv4.conf.default.arp_ignore
net.ipv4.conf.default.arp_ignore = 0
root@Freifunk-Uplink:~# sysctl net.ipv4.conf.wlan0.arp_ignore
net.ipv4.conf.wlan0.arp_ignore = 0
and
root@Freifunk-Uplink:~# sysctl net.ipv4.conf.wlan0.arp_announce
net.ipv4.conf.wlan0.arp_announce = 0
root@Freifunk-Uplink:~# sysctl net.ipv4.conf.all.arp_announce
net.ipv4.conf.all.arp_announce = 0
root@Freifunk-Uplink:~# sysctl net.ipv4.conf.default.arp_announce
net.ipv4.conf.default.arp_announce = 0
root@Freifunk-Uplink:~# sysctl net.ipv4.conf.wlan0.rp_filter
net.ipv4.conf.wlan0.rp_filter = 0
root@Freifunk-Uplink:~# sysctl net.ipv4.conf.all.rp_filter
net.ipv4.conf.all.rp_filter = 0
root@Freifunk-Uplink:~# sysctl net.ipv4.conf.default.rp_filter
net.ipv4.conf.default.rp_filter = 0
the address exists:
root@Freifunk-Uplink:~# ip addr show dev wlan0
8: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1532 qdisc mq master
bat0 state UP group default qlen 1000
link/ether f4:ec:38:e9:72:34 brd ff:ff:ff:ff:ff:ff
inet 10.159.167.1/8 brd 10.255.255.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::f6ec:38ff:fee9:7234/64 scope link
valid_lft forever preferred_lft forever
Routing for table 66 is configured
root@Freifunk-Uplink:~# ip rule show
0: from all lookup 128
0: from all oif wlan0 lookup 66
0: from all to 10.0.0.0/8 lookup 66
0: from 10.0.0.0/8 lookup 66
0: from all iif wlan0 lookup 66
1: from all lookup local
32766: from all lookup main
32767: from all lookup default
90012: from all iif lo lookup 66
And 66 has some data:
root@Freifunk-Uplink:~# ip route show table 66
default dev tun0 proto static scope link
10.0.0.0/8 dev wlan0 scope link
10.159.66.0/24 via 10.159.166.1 dev wlan0 proto babel metric 2048
onlink
10.159.67.0/24 dev br-freifunk proto static scope link
But still, ARPs to the Router's IP-Address 10.159.167.1 remain
unanswered:
root@Freifunk-Uplink:~# tcpdump -i wlan0 arp
tcpdump: verbose output suppressed, use -v or -vv for full protocol
decode
listening on wlan0, link-type EN10MB (Ethernet), capture size 65535
bytes
00:25:07.023244 ARP, Request who-has 10.159.167.1 tell 10.159.166.1,
length 28
00:25:08.024502 ARP, Request who-has 10.159.167.1 tell 10.159.166.1,
length 28
[..]
The system asking is reachable:
root@Freifunk-Uplink:~# ip route get 10.159.166.1 from 10.159.167.1
10.159.166.1 from 10.159.167.1 dev wlan0
cache
The moment I disable policy routing by removing the rules according,
everything is fine.
What's wrong here? How can I have ARP und Policy Routing working
together?
Thanks,
yanosz
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users