Skip to content
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

vrrp: For use_vmac and use_ipvlan, copy the group from the base interface #2390

Merged
merged 1 commit into from
Mar 1, 2024

Commits on Mar 1, 2024

  1. vrrp: For use_vmac and use_ipvlan, copy the group from the base inter…

    …face
    
    It is useful in many instances to set up firewall rules based on
    interface groups so that sets of interfaces may be aggregated by group
    and matched with a single rule rather than by listing them all.
    
    Prior to this change, when use_vmac or use_ipvlan is used, new interfaces
    are created with the default group, which breaks this ability.
    
    Further complicating the issue is that nftables resolves interface names
    to ifindex at load time. This is problematic with keepalived's interface
    creation, which usually comes after the firewall loading, forcing the
    use of iifname, oifname instead (similar to iptables -i, -o).
    
    By copying the group value, such firewall rules can continue to work
    regardless of the use_vmac or use_ipvlan settings, since packets may
    now arrive on, or be routed out from, the new interfaces.
    
    Signed-off-by: Simon Kirby <sim@netnation.com>
    sim- committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    0070dc8 View commit details
    Browse the repository at this point in the history