Firewall configuration with Neo4j - no route to host error

Hello,

I installed neo4j server community edition in linux and configuring firewall properly.

I registered port 7474 and 7687.

I can access https://10.10.10.1:7474/browser. However the next login process was waiting and connection failure.

What firewall rule should be added in this case ? 7474 and 7687 are open in firewall.

I don't have iptable rule in the server.

$cypher-shell -a neo4j://10.10.10.1:7687

no route to host

$ping 10.10.10.1

I can receive ping response properly.

How can I fix this eror?

are you sure its a good idea to open these ports in your firewall for everyone to find your services when you dont seem to know what you are doing?

However apart from security concerns, are you using docker to host your neo4j service?

Are you on the same machine as the neo4j service? Because then you wouldnt need to touch your firewall and should be able to access it at http://localhost:7474

Using 10.10.10.1 also seems like you are trying to reach a local service. Im not sure if 10.10.10.1 is the server you want to reach though, as it is most likely your router or atleast default gateway, and not the server/pc you run neo4j on.

If you are in fact not trying to access neo4j on the same machine you should find out its actual ip address.

@joost.rehder

I found 7687 port was in issue in the server and cleaned the port and restarted the server.

Now configuration works ok.

BTW, do you suggest router solution with Neo4J ? Is there more detail configuration or architecture I can refer?

Thank you.

That is really dependent on your particular environment more than Neo4j. The docs list the common ports and default values, so you can use that as a starting point

I tried to run docker version also, the docker hold the port. After I remove the port, the server works well.

Thank you.