I want access to remote cassandra with one ip address. how can I change cassandra.yaml to block all ip address except ip that I want to connect?

Can I do by cassandra.yaml ?

  • Could you define "connect" here? Connect = SSH/connect via Drivers/etc.,?
    – Madhavan
    Commented Aug 22, 2022 at 12:42

3 Answers 3


Isn't this exactly what a Firewall does for you?

Isn't it better to let this purpose-built software take the brunt of any "attack", rather than letting the attacker most of the way into your server and asking Cassandra to try to defend "herself" ... ?

As a certain, fictional engineer is famed for saying:

The Right Tool for the Right Job ...


While you cannot block or allow IP addresses with Cassandra, I recommend enabling authentication, authorization, and client-to-node SSL/TLS encryption. This way, anyone from another IP address (who tries to access your cluster), will not have the required valid credentials or TLS certificate; and will not be allowed to connect to your cluster.


You don't configure network access rules in the database itself. You need to do this at the network layer using hardware or software firewalls.

With firewalls, you can configure access control lists (ACLs) such that only certain devices/network segments (typically your app servers) have connectivity to the database. Cheers!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.