-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about filtering mirrored packets by TCP port in OVS bridge configuration #350
Comments
I'm not sure what the Anyways, there is a new feature in OVS 3.4 that allows setting a filter for a mirror in OpenFlow format, so you can do something like this:
It's documented in the database man page here: https://www.openvswitch.org/support/dist-docs/ovs-vswitchd.conf.db.5.html Though not very extensively. If you need a more complex filtering or need filtering in older version of OVS, a better solution might be to modify your OpenFlow rules to direct traffic to a separate OpenFlow table before egresing a specific port. Then you could add any kinds of OpenFlow rules to filter and send a copy of the packet on the other port. |
This comment was marked as duplicate.
This comment was marked as duplicate.
If there some entity inside Bluefield DPU creating the OpenFlow flows, you should probably add support to your filtering there. |
I understand, thank you! |
Thanks for the response! I'm running Open vSwitch on a Bluefield2 DPU. When I installed the DPU system image, OVS was installed as part of the system. Running
I believe the 3.3.0 version corresponds to the actual OVS version, while 2.8.0 refers to the version of the DPU system image. Regarding your suggestion to modify OpenFlow rules to direct traffic to a separate table before exiting a specific port, could you please elaborate on this method? Specifically, I would like to know how I can configure the flow to direct traffic to a different OpenFlow table and then apply filters before mirroring the packets to another port. Any detailed steps or examples would be greatly appreciated! Thanks again for your help! |
I'm using Open vSwitch version
2.8.0-0091-24.07-based-3.3.0
and have configured packet mirroring on my bridgeovsbr1
. The setup currently mirrors all packets from thepf0hpf
port tosf88
onovsbr1
, which works as expected. Here's the configuration:Bridge Configuration:
Mirror Configuration:
This configuration successfully mirrors all packets from
pf0hpf
tosf88
.I would like to filter the mirrored packets so that only TCP packets with a specific port (e.g., TCP port 8080) are mirrored to
sf88
, rather than all packets frompf0hpf
.Is this kind of filtering supported in Open vSwitch, and if so, how can I configure it to only mirror packets that match a specific TCP port? I have searched through documentation but couldn't find relevant information on packet filtering for mirroring.
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: