summaryrefslogtreecommitdiffstats
path: root/tests/family-bridge
blob: 633211fb4e4ab956c03dc39a201e6399d16e0499 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! nft -f

table add bridge filter
chain add bridge filter output NF_INET_LOCAL_OUT 0

# LL protocol
rule add bridge filter output eth type 0x0800 counter

# IP address
rule add bridge filter output eth type 0x0800 ip daddr 20.0.0.2 counter

# IPv6 address
rule add bridge filter output eth type 0x86DD ip6 daddr 2001:6f8:974:3::2 counter