Page MenuHomeVyOS Platform

Ability to choose the direction of Mirroring
Resolved (N/A)PublicFEATURE REQUEST

Description

We can mirror only incoming direction to some port.

show interfaces ethernet eth0 
Possible completions:
...
   mirror       Incoming packet mirroring destination

It is necessary to provide directions (in/out/both).

Old code for the handler mirror actions in the file.
https://github.com/vyos/vyatta-cfg-qos/blob/current/scripts/vyatta-qos.pl

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)

Related Objects

StatusSubtypeAssignedTask
Resolved N/AFEATURE REQUESTNone
ResolvedFEATURE REQUESTjack9603301

Event Timeline

I found some interesting information, it seems that inbound/outbound port mirroring can be achieved

https://adamkuj.net/blog/2016/05/18/pro-tip-port-mirroring-in-linux/

erkin set Issue type to Feature (new functionality).Aug 30 2021, 6:20 AM
erkin removed a subscriber: Active contributors.

Implemented in previous versions, https://github.com/vyos/vyos-1x/blob/a5c5998a84917cc45f9fb3234607f53b27a109fc/interface-definitions/include/interface/mirror.xml.i#L1-L25

vyos@r1# set interfaces ethernet eth0 mirror 
Possible completions:
   egress       Mirror the egress traffic of the interface to the destination interface
   ingress      Mirror the ingress traffic of the interface to the destination interface