Utility to force an interface into promiscuous mode. Uses libpcap.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Emiel Kollof 73a40c0e37
4 years ago
Makefile Add code. 5 years ago
README.md Update README 4 years ago
promisc.c Indent/cleanup 5 years ago



Simple tool to set your nic into promiscuous mode and to then go in the background.

Tested on

Linux, FreeBSD, Illumos/Solaris


Headers for libpcap, and libpcap itself.


./promisc [iface]

iface is optional. When iface is not specified, it will take the default interface (which has the default route).

Use cases

Sometimes jail/zone-like functionality doesn't seem to route packets unless interfaces are set to IF_PROMISC. This is a better way to force your nic into promiscuous mode instead of running tcpdump or sniff in the background.