freebsd-dev/sbin/ipfw
Arseny Smalyuk 81cac3906e ipfw: add support radix tables and table lookup for MAC addresses
By analogy with IP address matching, add a way to use ipfw radix
tables for MAC matching. This is implemented using new ipfw table
with mac:radix type. Also there are src-mac and dst-mac lookup
commands added.

Usage example:
  ipfw table 1 create type mac
  ipfw table 1 add 11:22:33:44:55:66/48
  ipfw add skipto tablearg src-mac 'table(1)'
  ipfw add deny src-mac 'table(1, 100)'
  ipfw add deny lookup dst-mac 1

Note: sysctl net.link.ether.ipfw=1 should be set to enable ipfw
filtering on L2.

Reviewed by:	melifaro
Obtained from:	Yandex LLC
MFC after:	1 month
Relnotes:	yes
Sponsored by:	Yandex LLC
Differential Revision:	https://reviews.freebsd.org/D35103
2022-06-04 19:12:29 +03:00
..
altq.c
dummynet.c ipfw: use unsigned int for dummynet bandwidth 2021-08-19 10:48:53 +02:00
ipfw2.c ipfw: add support radix tables and table lookup for MAC addresses 2022-06-04 19:12:29 +03:00
ipfw2.h ipfw: add support radix tables and table lookup for MAC addresses 2022-06-04 19:12:29 +03:00
ipfw.8 ipfw: add support radix tables and table lookup for MAC addresses 2022-06-04 19:12:29 +03:00
ipv6.c
main.c dnctl: Support reading config from file like ipfw(8) 2022-01-03 09:50:18 +01:00
Makefile ipfw: Introduce dnctl 2021-09-08 17:17:50 +02:00
Makefile.depend
nat64clat.c
nat64lsn.c
nat64stl.c
nat.c Allow setting alias port ranges in libalias and ipfw. This will allow a system 2021-02-02 13:24:17 -08:00
nptv6.c
tables.c ipfw: add support radix tables and table lookup for MAC addresses 2022-06-04 19:12:29 +03:00