It sounds like you are trying to build the Firewall layer everyone is talking about. Sounds like a cool project. Most likely you’re going to have to drop down to the Ranch layer, maybe lower.
I’d check out writing a custom Ranch Protocol, Nine Nines: Protocols
Specifically, you could probably return an :ignore from your init callback to just drop the connection.


















