Limit connections

Hello
Is there a way to limit nknd IP connections?
I’ve had a quick look at the source config.go and no config options are apparent.

Is our only option to use iptables or nftables?

Thanks.