-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sendto to 224.0.0.1 on aaa.bbb.ccc.1: Permission denied #171
Comments
Hi Pete! That shouldn't be necessary. Could you tell me a bit more about your setup? Like, what operating system and hardware are you running on, what version of pimd are you running, how do the interface flags on your interfaces look, and do you perhaps have a firewall enabled? This could also be caused by SELinux, AppArmor, or similar. |
Final ping before closing due to inactivity. I'd really like to know more about your setup, because I've never run into your problem with any of the multicast routing daemons I maintain (SMCRoute, pimd-dense, pimd, pim6sd, mrouted). |
Closing, no reply from reporter. |
Sorry, Real Life got crazy... I will try to come back regularly. My setup:
Yes, there's a firewall. I have logging turned up quite far and am not seeing ANY firewall blockages related to pimd (the only internal block being triggered is a LAN monitoring app I'm testing that currently is poking at port 0 on the router, which doesn't like that ;) ) Interface flags (good question! I have no idea what sets these ;) ) Below is a typical minute from my system.log: Anything else that might be helpful? THANK YOU for all you do! |
oh... pimd.conf (with command line disable-vifs) spt-threshold packets 0 interval 100 |
I have very little experience with FreeBSD, have only set it up in very plain routing scenarios to do interop testing of pimd et al against other operating systems. FreeBSD has actually been the best of the *BSDs to work with, never really had any problems. Your issue really sounds like exactly the same problem that you run into on a Linux box with a very strict firewall. Searching duckduckgo yields this: https://www.freebsd.org/doc/en/books/faq/networking.html#idp49801592 which points to the manual here: https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html If everything really is denied by default, you need to open it up for IGMP and PIM protocols on the interfaces you want to run pimd on. Try enabling firewall logging to see if you get any hits. I found this forum thread that may be relevant: https://forums.freebsd.org/threads/ipfw-igmp-query-v3.72547/ Dunno if it helps but it's probably worth trying. |
As I noted, I do have logging on for all (?) related items, including the fall-through blocking. I'll check those links and see what I can find. |
Any progress on this? |
Thanks for asking.
I did some captures but haven't yet captured the actual issue... and then I had to
take a break for the Real World (my wife will soon have back surgery).
I think I can track it down this coming week.
(IF it is a firewall issue, it is not simple ;) )
Joachim Wiberg said (on 1 Jan 2021)...
Any progress on this?
|
OK, good luck hunting it down! (And with the surgery!) |
I'm running into the same issue, and have firewall rules allowing all IGMP and PIM traffic. Though I'm not sure that I have the config correct:
Is the The process is started like so: Which shows in logs (reverse order):
Rules are floating rules as such:
|
Hi, ran into the same issue. And after some debugging, it turned out to be PF that is blocking it, even with an empty ruleset. The devil is in the pf.conf details:
So, the following rule does not work
But modifying it to this...
..and 🎉 we now have working pimd! Note that this affects regular IGMP as well, a regular listener will not be able to send it's join-group messages if PF is enabled but the above is missing. Big kudos to Kristof Provost of FreeBSD team for digging this up oddity very quickly after my (as it turned out, semi-invalid) bug report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259879 Edit: now I see that post above this one actually mentions allow-opts in the rules. And now looking at https://troglobit.com/howtos/pimd-on-freebsd/ I did not see this mentioned, buuut following the link to https://troglobit.com/howtos/pimd-on-openbsd/ I see that it is mentioned, but with another error message. |
Yeah, firewall issues are very common. Originally these fine protocols were not intended to be run with firewalls and such, so error messages are not always very useful. But EPERM is a really good indicator that the kernel has some policy in place. On Linux you can get it with SELinux, Apparmor, and similar hardening mechs. as well. I should really update my howtos ... 🙄 |
I am back on this, after a lot of Real World challenges. At a surface level, I do have allow-opts set "everywhere"... but we shall see. What I REALLY want to find at this point is tools for diagnosing issues like this. "Permission denied" is not exactly helpful. Hopefully back soon... |
pimd consistently puts this error in syslog.
I've been searching for answers. The best suggestion I've seen:
The text was updated successfully, but these errors were encountered: