LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-09-2020, 08:22 AM   #1
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Rep: Reputation: Disabled
Post How to block Promiscuous mode?


Hello,
In a Virtualization environment, for some reasons, host NIC must be in promiscuous mode, but I don't like my Linux VM that using that NIC working in promiscuous mode. Any command that could block this mode in my Linux VM? Is it OK?

Thank you.
 
Old 10-09-2020, 09:27 AM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,177

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
The VM will need that to work with most networking. If you can install an second NIC in the system, then you can set that aside for the VM to use.
Read up on how the VM tools you are reading do networking as it varies between them a bit.
 
Old 10-09-2020, 09:28 AM   #3
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,177

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
The VM will need that to work with most networking. If you can install an second NIC in the system, then you can set that aside for the VM to use.
Read up on how the VM tools you are reading do networking as it varies between them a bit.
 
Old 10-09-2020, 03:08 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,008

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
"promiscuous mode"

I believe that is only for bridged connections isn't it?
 
Old 10-09-2020, 05:42 PM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by n00b_noob View Post
Hello,
In a Virtualization environment, for some reasons, host NIC must be in promiscuous mode
In non-promiscuous mode, an ethernet NIC only accepts frames that are destined to its own MAC address, or broadcast frames. Since the MAC addresses of the VMs are different, traffic destined to the VMs would be blocked if the VM host's NIC were not promiscuous.
Quote:
but I don't like my Linux VM that using that NIC working in promiscuous mode.
You can't always get what you want.
Quote:
Any command that could block this mode in my Linux VM? Is it OK?
Sure.
Code:
ip link set [interface] promisc off
You seem to be confusing the host's NIC and the VM's NIC. Only the host's NIC needs to be promiscuous (except for special cases like nested virtualization perhaps).

Last edited by berndbausch; 10-09-2020 at 05:44 PM.
 
Old 10-10-2020, 09:07 AM   #6
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
In non-promiscuous mode, an ethernet NIC only accepts frames that are destined to its own MAC address, or broadcast frames. Since the MAC addresses of the VMs are different, traffic destined to the VMs would be blocked if the VM host's NIC were not promiscuous.

You can't always get what you want.

Sure.
Code:
ip link set [interface] promisc off
You seem to be confusing the host's NIC and the VM's NIC. Only the host's NIC needs to be promiscuous (except for special cases like nested virtualization perhaps).
If promiscuous mode is ON then can it make any security problem?
 
Old 10-12-2020, 09:31 AM   #7
martin smith
Member
 
Registered: Feb 2020
Posts: 34

Rep: Reputation: 3
To disable promiscuous mode on the physical NIC, run the following command on the XenServer text console # ifconfig eth0 –promisc.
Run the ifconfig command again and notice that promiscuous mode is now disabled.
 
  


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
Eth0 : Promiscuous mode enabled singhrishi Linux - Hardware 1 10-10-2003 01:24 PM
Eth0 : Promiscuous mode enabled singhrishi Linux - Software 0 10-10-2003 04:23 AM
Promiscuous mode detection, apps. unSpawn Linux - Security 10 09-19-2003 06:19 PM
promiscuous mode of eth santoshbhise Linux - Newbie 1 02-01-2002 09:58 AM
eth0 promiscuous mode susx Linux - Networking 11 09-22-2001 12:39 AM

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

All times are GMT -5. The time now is 03:13 AM.

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