this post was submitted on 16 Jan 2025
18 points (95.0% liked)

Linux

49417 readers
1688 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] synestine@sh.itjust.works 8 points 2 weeks ago (1 children)

Block port 68 as well as 67. And are you sure the output rule is the best place for that?

[–] SpongeB0B@programming.dev 1 points 2 weeks ago (1 children)

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 2 points 1 week 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.