LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-13-2020, 08:33 AM   #1
postcd
Member
 
Registered: Oct 2013
Posts: 527

Rep: Reputation: Disabled
IGMP LAN network traffic - block or allow?


Hi, on Raspbian 10, in /var/log/syslog
i seen lines like:

Code:
raspberrypi kernel: [163349.859013] [UFW BLOCK] IN=eth0 OUT= MAC=AAA SRC=192.168.1.1 DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0x00 TTL=2 ID=0 DF PROTO=2
i found the command "tcpdump -p -n -e host 224.0.0.1"

and it reports lines like:

Code:
14:52:01.423236 BBB > CCC, ethertype IPv4 (0x0800), length 60: 192.168.1.1 > 224.0.0.1: igmp query v2 [max resp time 1] [gaddr 234.21.81.1]
BBB may be the MAC address of my LAN/WAN router, since the command "arp -a" shows same kind of address next my router IP.

in ufw manual i have found following:

Quote:
ufw deny in on eth0 to 224.0.0.1 proto igmp
This will deny all igmp traffic to 224.0.0.1 on the eth0 interface.
but i do not know if i want to block it. i am surprised it is blocked, since iptables -L shown no rules with default policy ACCEPT and after installing ufw firewall i only rate-limitted port 22 so i would think everything else is allowed :-/

What do you think about that igmp requests and what would you do with it? Thank you

Last edited by postcd; 01-13-2020 at 08:34 AM.
 
Old 01-13-2020, 09:16 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,800

Rep: Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002
Quote:
Originally Posted by postcd View Post
Hi, on Raspbian 10, in /var/log/syslog i seen lines like:
Code:
raspberrypi kernel: [163349.859013] [UFW BLOCK] IN=eth0 OUT= MAC=AAA SRC=192.168.1.1 DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0x00 TTL=2 ID=0 DF PROTO=2
i found the command "tcpdump -p -n -e host 224.0.0.1"

and it reports lines like:
Code:
14:52:01.423236 BBB > CCC, ethertype IPv4 (0x0800), length 60: 192.168.1.1 > 224.0.0.1: igmp query v2 [max resp time 1] [gaddr 234.21.81.1]
BBB may be the MAC address of my LAN/WAN router, since the command "arp -a" shows same kind of address next my router IP. in ufw manual i have found following:
Code:
ufw deny in on eth0 to 224.0.0.1 proto igmp
This will deny all igmp traffic to 224.0.0.1 on the eth0 interface.
but i do not know if i want to block it. i am surprised it is blocked, since iptables -L shown no rules with default policy ACCEPT and after installing ufw firewall i only rate-limitted port 22 so i would think everything else is allowed :-/

What do you think about that igmp requests and what would you do with it? Thank you
Since you've been working with iptables and network routing for YEARS now, you should already know what IGMP is and why you would want to allow/deny it, and what it does. You're asking a question that has no real answer...if you want to block it, then do so. If you don't, then DON'T....we have no idea what your network is like, what your needs are, or what you're trying to accomplish.

And again, since you've been working with/asking about iptables for many years now, you know how the rules are processed...since you don't share your ruleset here, we again have no idea why/what is blocked or allowed.

Last edited by TB0ne; 01-13-2020 at 09:23 AM.
 
Old 03-10-2020, 03:08 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
https://superuser.com/questions/7394...n-attemps-mean

I'd think last answer is more of what you have.
 
Old 03-10-2020, 05:37 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,800

Rep: Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002
Quote:
Originally Posted by jefro View Post
https://superuser.com/questions/7394...n-attemps-mean

I'd think last answer is more of what you have.
Yes, but there is no way to answer the OP's question in a meaningful way, which was, "What do you think about that igmp requests and what would you do with it?"

Based on the lack of information ("BBB may be the MAC address of my LAN/WAN router") (bolded for emphasis only, and not posting their existing rule-set, or even telling us what the actual problem/issue is ("but i do not know if i want to block it."), they seem to be asking for something there's not much way to answer, aside from supposition and guessing.

While you're probably right in that it's multicast, we can't really know, and the OP didn't post back any details. The only answer to their question would be, "It depends...is there a problem, and do you WANT to block it??"
 
Old 03-11-2020, 02:32 AM   #5
postcd
Member
 
Registered: Oct 2013
Posts: 527

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
https://superuser.com/questions/7394...n-attemps-mean

I'd think last answer is more of what you have.
You mean this answer that says the traffic is "IGMP Query packet sent by your local router to all devices on the subnet so it can update / refresh IP multicast group memberships." Also he says something about that traffic being "query/discovery packet but specifically for mDNS" - i am not sure how important this is.
 
Old 03-11-2020, 07:02 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,800

Rep: Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002
Quote:
Originally Posted by postcd View Post
You mean this answer that says the traffic is "IGMP Query packet sent by your local router to all devices on the subnet so it can update / refresh IP multicast group memberships." Also he says something about that traffic being "query/discovery packet but specifically for mDNS" - i am not sure how important this is.
Since that was the post that dealt with IGMP, yes. And AGAIN:
  • You have not said what your actual problem is with this traffic
  • You have provided no details about your iptables rules
  • You have provided no details about your network
  • You have provided no details about your hardware/devices on your network
  • You have provided no details about what efforts YOU have put into solving your problem
Again, you're asking whether you should block it or not; the answer remains "That's up to you". That's YOUR network...you should know what devices are on it, and why they are doing what they're doing. We can't guess as to whether or not it's 'bad' that you have IGMP running or not. We can't guess as to your ruleset on blocking such things. We can't guess as to the problem(s) you may or may not be having. If it was a concern, you could have blocked that traffic in less time than it took you to post this thread and wait over a month to come back to check it.

Since you've been working with iptables for **YEARS** at this point, you should be well familiar with how to block traffic if you choose to. You have also been advised many, MANY times to show your own efforts, ask clear questions, and provide details, yet you again have not.
 
Old 03-11-2020, 03:02 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
On my home router I set all devices to keep that same dhcp address. I know that seems like static but I have reasons. But still in any dhcp config you have booting systems and systems that have ip lease changes so I think you want it to allow that rule.

Turn it off and see what happens would be very simple test.

Last edited by jefro; 03-11-2020 at 03:47 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
firewalld and pptp - How to allow tcp traffic? (icmp traffic works) Mark L. Wise Linux - Networking 1 06-21-2017 01:50 PM
Block all traffic allow only one special port and ssh? newbie14 Linux - Security 4 12-10-2015 09:45 PM
How to allow/block application-specific outbound traffic? vansteen Linux - Networking 7 08-13-2009 09:56 AM
IGMP packets in log Daily... How do I fix / shut this off... ? Vince0000 Linux - General 0 03-12-2004 09:50 AM
This looks interesting, spoofed IGMP report DoS vulnerability neo77777 Linux - Security 1 06-21-2002 07:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration