Security Onion and Proxmox FYI on promisc setup #8245
-
(SPOILER) This is just a quick and dirty how-to in case you are using proxmox and having issues with traffic volume. So for the past month since setting up SO (multiple times and configs) I felt like I was never really seeing all of my network traffic. I saw lots of broadcast & multicast and some direct traffic but the volumes never really got over 1 meg a second. The setup is roughly as follows.
What I discovered after lots and lots of digging (and learning) was that even though SO was setup to be promisc on the monitor interfaces is that Proxmox needs to be setup properly to pass the traffic along to the VM. Its just not a simple bridge interface that needs to be setup. What I had to do to get the entire system to push the promisc data to the VM was as follows: Once this happened my steady slow drip of data jumped from an average of .5 Mbs to an average of 15 Mbs. I'm now questioning if I need to have 4 monitor ports... but at this point I can now sit back and watch as the system gets out of 1st gear for the first time since I started working with SO. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
I'll have to see if this works better than the previous trick I was using from vext: https://vext.info/2018/09/03/cheat-sheet-port-mirroring-ids-data-into-a-proxmox-vm.html ovs-vsctl clear bridge vmbr4 mirrors
ovs-vsctl -- --id=@p get port tap202i1 \
-- --id=@m create mirror name=span1 select-all=true output-port=@p \
-- set bridge vmbr4 mirrors=@m |
Beta Was this translation helpful? Give feedback.
-
I've added a Proxmox page to our documentation and included this recommendation: |
Beta Was this translation helpful? Give feedback.
-
I see good talk here, but let me give more on this as I heavily worked on it long time ago. So, I found that we have mainly three options: 2- Using ovs bridges: 3- Pass-through the interfaces directly to SO: By experiment, I found out the third method is the most performant "make sense", especially when coupled with "passing through" of CPU, DISK, and RAM resources and pinning it to the VM-if I can say, so you can get performance almost identical to bare-metal. |
Beta Was this translation helpful? Give feedback.
-
Why VM instead of CT lxc container in proxmox? This year I was looking at standing up SO on Proxmox and assumed linux container was the more performant and efficient method? |
Beta Was this translation helpful? Give feedback.
-
As I am reading this thread, I would image that having docker within an LXC presents few more challenges than having docker run within a guest. The LXC has to have specific settings in place such as '... docker will only run with the lxc execution driver and in a unconfined lxc'. There is probably a security aspect to think about: Linux containers (LXC) can be an attack vector and developers (of software) would need to account for the nuances (when it comes to having privilege or unprivileged settings). I also found this past post (thread): #1750 |
Beta Was this translation helpful? Give feedback.
I've added a Proxmox page to our documentation and included this recommendation:
https://docs.securityonion.net/en/2.3/proxmox.html