Adjusting Linux Firewall Settings
In CentOS and other Linux distros, there may be firewall settings which prevent you from accessing ArangoDB. These can be configured through the “iptables” command.
- To use iptables, you have to run as root (su).
Verify iptables is running
CODElsmod | grep ip_tables
List the current set of rules .
CODEiptables -L
Here's a sample of output.
CODEChain INPUT (policy ACCEPT) target prot opt source destination ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT icmp -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh REJECT all -- anywhere anywhere reject-with icmp-host-prohibited Chain FORWARD (policy ACCEPT) target prot opt source destination REJECT all -- anywhere anywhere reject-with icmp-host-prohibited Chain OUTPUT (policy ACCEPT) target prot opt source destination
It might be necessary to add a rule to allow access to ArangoDB on port 8529.
Insert a rule in the INPUT chain, allowing Arango's default listening port (port 8529)CODEiptables -I INPUT 1 -p tcp --dport 8529 -j ACCEPT
Verify the rule was added.
CODEiptables -L INPUT
- Look for the following line: CODE
ACCEPT tcp -- anywhere anywhere tcp dpt:8529
Save the IPTABLES
Also see https://www.thomas-krenn.com/en/wiki/Saving_Iptables_Firewall_Rules_Permanently