Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

[SOLVED] Disable promiscous mode on br0?

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
Kellerkalt
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 82
Joined: Tue Dec 22, 2020 1:49 am

[SOLVED] Disable promiscous mode on br0?

  • Quote

Post by Kellerkalt » Sat May 03, 2025 5:25 pm

I have successfully setup single NIC bridge mode as described here:
https://wiki.gentoo.org/wiki/Network_bridge#OpenRC

I am using it for a few libvirt/Qemu VMs that I want directly exposed to the LAN. I do also have virbr0 for a few VMs on their own private VLAN.

RKHunter has noticed that br0 is in promiscuous mode so I disabled it with this command:

Code: Select all

ip link set br0 promisc off
The VM exposed to the LAN and using br0 is still functioning after turning promiscuous mode off on br0, so I'm left wondering if promiscuous mode is actually needed. I didn't specifically enable promiscuous mode on br0, it just happened after setting it up per the wiki and RKHunter happened to notice.

Are there any drawbacks to disabling promiscuous mode on br0 and if not, how do I disable it on startup? Do I put a line in /etc/conf.d/net and if so, what would that setting/line look like?

This is what my /etc/conf.d/net currently looks like:

Code: Select all

config_enp8s0="null"
bridge_br0="enp8s0"

config_br0="192.168.1.2 netmask 255.255.255.0"
routes_br0="default via 192.168.1.1"

bridge_forward_delay_br0=0
bridge_hello_time_br0=1000
Thanks,
Kellerkalt
Last edited by Kellerkalt on Fri May 30, 2025 4:18 pm, edited 1 time in total.
Top
grknight
Retired Dev
Retired Dev
Posts: 2565
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Sat May 03, 2025 8:38 pm

This looks difficult to do with netifrc bridges as promisc is specifically enabled with every bridge on creation just before fully bringing the interface up.
Top
Kellerkalt
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 82
Joined: Tue Dec 22, 2020 1:49 am

  • Quote

Post by Kellerkalt » Wed May 28, 2025 1:23 am

It feels like a complete and ugly hack, and please let me know if I shouldn't do this for security reasons, but I put this in root's crontab:

Code: Select all

@reboot /usr/sbin/sleep 30 ; /usr/sbin/ip link set br0 promisc off
And it seems to be working well.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic