07.12.2015, 15:52, "SC SCx" <kredaxx@gmail.com>:
Hello.
š
I have a FreeBSD x64 10.2-p7 system with Bird 1.5.0 acting as a PPPOE concentrator using MPD5 version 5.7
š
The system has 2 physical interfaces:
š
ix0 ( a /30 connection to another freebsd router - ABR running Bird š)
ix1 ( listening for PPPOE via MPD5 )
š
And many virtual interfaces when a PPPOE connection is established that follow this pattern:
š
ng1, ng2, ng3 ... etc
š
Here's my bird config (This router is running in a Totally Stubby Area 0.0.0.1):
š
router id 172.16.116.5;
š
protocol kernel {
š š š š export all;
}
š
protocol direct {
š š š š interface "ix0", "ng*";
}
š
protocol device {
š š š š scan time 10;
}
š
protocol static {
š
}
š
protocol ospf {
š š š š tick 2;
š š š š area 0.0.0.1 {
š š š š š š š š stub yes;
š š š š š š š š summary no;
š
š š š š š š š š networks {
š š š š š š š š š š š š 10.10.0.0/16;
š š š š š š š š š š š š 125.40.44.0/22;
š š š š š š š š };
š
š š š š š š š š interface "ix0" {
š š š š š š š š š š š š dead count 4;
š š š š š š š š š š š š type broadcast;
š š š š š š š š };
š
š š š š š š š š interface "ng*" {
š š š š š š š š š š š š stub yes;
š š š š š š š š };
š š š š };
}
š
This router also has a firewall enabled (ipfw) with the following rules:
š
00100 šdeny ip from any to notš125.40.44.0/22šout recv ng* xmit ng*
01000 špipe tablearg ip from any to table(2) out via ng*
01010 šdeny ip from any to any out via ng*
01020 špipe tablearg ip from table(1) to any in via ng*
01030 šdeny ip from any to any in via ng*
65534 šallow ip from any to any
65535 šdeny ip from any to any
š
What happens when I turn the system on and receive about 800 connections (e.g around 800 ng interfaces are created) is this in the logs:
š
Does it happen w/ less number of interfaces?
š
Dec š2 03:59:41 pppoe1 bird: ospf1: Socket error on ix0: Permission denied
Dec š2 03:59:41 pppoe1 bird: KIF: Received address message for unknown interface 124
Dec š2 03:59:41 pppoe1 last message repeated 2 times
Dec š2 03:59:41 pppoe1 bird: KIF: Received address message for unknown interface 123
Dec š2 03:59:41 pppoe1 last message repeated 2 times
Dec š2 03:59:41 pppoe1 bird: KIF: Received address message for unknown interface 125
Dec š2 03:59:41 pppoe1 last message repeated 2 times
Dec š2 03:59:41 pppoe1 bird: KIF: Received address message for unknown interface 126
Dec š2 03:59:41 pppoe1 last message repeated 2 times
Dec š2 03:59:41 pppoe1 bird: KIF: Received address message for unknown interface 127
Dec š2 03:59:41 pppoe1 last message repeated 2 times
Dec š2 03:59:41 pppoe1 bird: KIF: Received address message for unknown interface 128
Dec š2 03:59:41 pppoe1 last message repeated 2 times
Dec š2 03:59:41 pppoe1 bird: KIF: Received address message for unknown interface 130
Dec š2 03:59:41 pppoe1 last message repeated 2 times
Dec š2 03:59:41 pppoe1 bird: KIF: Received address message for unknown interface 129
Dec š2 03:59:41 pppoe1 last message repeated 2 times
Dec š2 03:59:41 pppoe1 bird: KIF: Received address message for unknown interface 131
Dec š2 03:59:41 pppoe1 last message repeated 2 times
Dec š2 03:59:41 pppoe1 bird: KIF: Received address message for unknown interface 133
Dec š2 03:59:41 pppoe1 last message repeated 2 times
Dec š2 03:59:41 pppoe1 bird: KIF: Received address message for unknown interface 132
Dec š2 03:59:41 pppoe1 last message repeated 2 times
Dec š2 03:59:41 pppoe1 bird: KIF: Received address message for unknown interface 134
Dec š2 03:59:41 pppoe1 last message repeated 2 times
Dec š2 03:59:41 pppoe1 bird: KIF: Received address message for unknown interface 136
Dec š2 03:59:41 pppoe1 last message repeated 2 times
Dec š2 03:59:41 pppoe1 bird: KIF: Received address message for unknown interface 135
Dec š2 03:59:41 pppoe1 last message repeated 2 times
.... and much more
š
As it can be seen I see tons ofšKIF: Received address message for unknown interface messages which I am not sure if it means anything serious. These happen anytime a ng interface is brought up/down.
š
The worst is ospf1: Socket error on ix0: Permission denied because bird doesn't appear to listen and form any adjacency via ospf on this interface.
Well, EPERM is most likely return by firewall.
Just in case:
1) is this full ipfw ruleset?
2) can you change deny to deny log in ipfw?
2) are you sure that there are no other packet filters running ?
š
At first I thought this may be due to a race condition, e.g Bird might load faster than the firewall rules and with ipfw the only loaded rule at startup is 'deny ip from any to any' which could explain the permission error. However if I manually stop bird and restart it after the system has fully booted I still receive the permission error, despite that there's now an 'allow ip from any to any' rule present.
š
Interestingly I have an identical setup created with VirtualBox for this router and when I test with only 2 PPPOE connections it doesn't complain about any permission error. Same firewall rules and everything else. System starts up the same way, but no permission error. And the router forms adjacency..
š
I do still see ofšKIF: Received address message for unknown interface messages, though.
Can you show 'sh interfaces' for birds and your ifconfig output (for ng* interfaces)?
š
Any ideas what can be the cause?
š
Thank you.
š
š
š