Hi,

On my Debian 12 Bookworm ( raspberry pi )

My nftables do not block DHCP packets ! according to this basic rules

nft -y list rulesset

table ip Tip {

	chain chIN {
		type filter hook input priority 0; policy drop;
		ct state established,related accept
	}
	chain chFW {
		type filter hook forward priority 0; policy drop;
	}
	chain chOUT {
		type filter hook output priority 0; policy drop;
		udp dport 67 drop #DHCP
		udp dport 53 accept
		tcp dport { 80, 443} accept
		ct state established,related accept
	}

}

DHCP should be blocked… but it’s not as I get an IP from it…

Any ideas ?

Thanks.

    • SpongeB0B@programming.devOP
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      3 days ago

      As I want the system to be quite ( not sending data ) I was suspected the output hook to be the one. what are you suggesting ?

      • Synestine@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 days ago

        Ah. It just didn’t compute for me. I’d think stopping the DHCP server or making it not listen on that interface would be easier than trying to firewall it off.

        Yeah, blocking thise inbound and outbound will quiet that service.