f-76: vm: filtrage nftables par tap, champ dhcp_server, watchdog #76

Chaque NIC a sa chaîne pre-tap<id>, posée avant le tap et retirée après :
MAC, ARP et IPv4 source limités à ceux de la NIC (0.0.0.0 pour le client
DHCP et la sonde ARP), réponses DHCP refusées sauf si dhcp_server, seuls
IPv4, ARP et IPv6 émis. Le watchdog vérifie la chaîne de chaque NIC.

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-10-25 22:59:45 +01:00
commit 74bfda7004
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
16 changed files with 295 additions and 15 deletions

View file

@ -40,10 +40,11 @@ type Subnet struct {
}
type VMInterface struct {
Subnet string `json:"subnet"`
IP string `json:"ip"`
MAC string `json:"mac"`
Primary bool `json:"primary"`
Subnet string `json:"subnet"`
IP string `json:"ip"`
MAC string `json:"mac"`
Primary bool `json:"primary"`
DHCPServer bool `json:"dhcp_server"`
}
type VMStorage struct {