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 runningCODE
lsmod | grep ip_tables
List the current set of rules .CODE
Here's a sample of output.CODE
Chain 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)CODE
iptables -I INPUT 1 -p tcp --dport 8529 -j ACCEPT
Verify the rule was added.CODE
iptables -L INPUT
- Look for the following line: CODE
ACCEPT tcp -- anywhere anywhere tcp dpt:8529
Save the IPTABLESCentOS
iptables-save > /etc/sysconfig/iptables
ip6tables-save > /etc/sysconfig/ip6tablesDebian or Ubuntu
iptables-save > /etc/iptables/rules.v4
ip6tables-save > /etc/iptables/rules.v6