Set the network interface of IPFire to promiscuous mode

How can I set the network interface of IPFire to promiscuous mode, and which configuration file should I modify? Thank you.

I was aware that promiscuos mode was a ā€œvirtualizerā€ thing, not a firewall oneā€¦

I want to use Suricata to receive mirrored traffic from the switch for monitoring network threats. SOļ¼Œ I must set the network interface of IPFire to promiscuous mode

Run the command
ip link set green0 promisc on
and it will set promiscuous mode on the green0 nic.

You can confirm this by running netstat -i and it will show the flags for all interfaces. By default green0 will have flags BMRU. After running the above command it will be BMPRU

and you can turn it off again by running
ip link set green0 promisc off

1 Like

Thank you! Suricata needs to modify which configurations? I have changed the interface mode, but IPFire is not generating IDS logs.

Have you added ruleset providers to your IPS page and selected rules within them?

Have you enabled the Intrusion P{revention System and Enabled the green interface?

Is the IPS status on the WUi page green and running?

If all the above are yes then any rules that are triggered will be logged. If nothing is showing in the logs then nothing has triggered it yet.

You can test it by running an nmap scan from outside your IPFire machine and it will trigger logs with Emerging Threats ruleset provider selected and if you have the emerging-scan.rules selected.

sudo nmap -v ip_or_fqdn_of_ipfire_system

The IPS works normally in inline mode and generates logs. However, when receiving mirrored traffic from the switch in bypass mode, there are no logs. The green0 interface has already been set to promiscuous mode.

Well then I canā€™t help you further.

I have never tried to do what you are doing. I just searched on how to change a nic to promiscuous mode.

I presume that you have set any switch in your network also to promiscuous mode and that you are deliberately sending out bad packets from a computer on the green network that should trigger some of the IPS rules that you have set.

Beyond that I have no further idea.