Repository navigation
Conversation
pony1k
reviewed
Oct 20, 2026
|
|
||
| [ "$DEVICE" = "$BRIDGE_INTERFACE" ] || [ "$DEVICE" = "$MACVLAN_INTERFACE" ] || exit 0 | ||
|
|
||
| MACVLAN_MAC=$(ip l s $MACVLAN_INTERFACE 2>/dev/null | grep ether | awk '{ print $2 }' ) |
Contributor
There was a problem hiding this comment.
better:
MACVLAN_MAC=$(cat /sys/class/net/$MACVLAN_INTERFACE/address)
Contributor
|
Did you check if the nftable rules actually catch packets? Just curious, why are you filtering on dsa conduit ports, like eth0 and not on lan1, lan2, etc.? Are you sure this works with all switches? From what I've read, the packets passing here would use a switch specifc tagging protcol that may change the location of the mac source address in the frame. If outgoing frames from anygw mac address are prevented from leaving through ethernet ports, wouldn't that break internet connection for clients connected via cable? |
a-gave
force-pushed
the
fix/anygw-dsa-mac
branch
from
October 20, 2026 18:06
e5fe5a3 to
57a5794
Compare
a-gave
force-pushed
the
fix/anygw-dsa-mac
branch
from
October 21, 2026 07:42
57a5794 to
21e05e7
Compare
a-gave
force-pushed
the
fix/anygw-dsa-mac
branch
from
October 21, 2026 07:45
21e05e7 to
68d2fa2
Compare
a-gave
force-pushed
the
fix/anygw-dsa-mac
branch
from
October 21, 2026 08:28
68d2fa2 to
0fef14f
Compare
a-gave
force-pushed
the
fix/anygw-dsa-mac
branch
from
October 21, 2026 08:29
0fef14f to
a336d0d
Compare
This branch is waiting to be deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WIP
Retrying the approach of #1214:
bridge fdb replaceinstead offlushand thenaddnetandifaceevents for the devicesanygwandbr-lanWorks so far on: