DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 13th May 2017
bassocksky bassocksky is offline
New User
 
Join Date: Mar 2017
Posts: 5
Default How to disable promiscuous mode on nics?

Hello to the forum,

I just hit on a small problem on nics with the PROMISC flag set:
I'm not able to delete the flag with ifconfig.
In Linux and FreeBSD it is possible.

(I don't think of bridge configurations here....)

Some nics have the flag set:
em1: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,S IMPLEX,MULTICAST> mtu 1500
...

and some not:
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
...

The flag for bge0 changes whem I'm running tcpdump:
bge0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,S IMPLEX,MULTICAST> mtu 1500
...

and is cleared if I stop tcpdump.

That ist not the same with em1 - the flag is "always-on".

Any clues how to disable promiscuous mode in a running configuration?

Regards
Andre
Reply With Quote
  #2   (View Single Post)  
Old 13th May 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

I have an em(4) device and have the same flag in ifconfig(8) output, running -current.

Looking through the commit log for sys/dev/pci/if_em.c, it appears that naddy@ made some revisions to promiscuous management for the em() driver back in June 2009 which are still in place. I do not see a discussion of this in the tech@ mailing list archives at that time, so I do not know the reason for the revision.

You might send him an Email to ask, if this is of concern to you.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable console on Multi User Mode Peter_APIIT OpenBSD Security 4 1st November 2015 12:43 PM
Lagg failover on FreeBSD 7.0 Dell 1950/Broadcom 5708 NICs rfranzke FreeBSD General 4 14th September 2010 08:06 PM
Feasibility: "Load Balance Outgoing Traffic" with 2 NICs only Tramboi FreeBSD Security 3 29th April 2010 09:13 AM
Two NICs on same subnet anomie Other BSD and UNIX/UNIX-like 6 7th November 2008 03:24 AM
Setting a nic to promiscuous mode? kardon33 OpenBSD General 4 31st July 2008 02:36 PM


All times are GMT. The time now is 10:51 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick