При ошибке доступа к сетвым сервисам на линуксе имеет смысл проверить не блокирует ли порты фаервол. Имеет смысл остановить его и проверить работусервиса.
Проверяем статус Firewall или iptables в системе Centos
[root@centos-redhat ~]# /etc/init.d/iptables status Table: filter Chain INPUT (policy ACCEPT) num target prot opt source destination 1 ACCEPT all — 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 2 ACCEPT icmp — 0.0.0.0/0 0.0.0.0/0 3 ACCEPT all — 0.0.0.0/0 0.0.0.0/0 4 ACCEPT tcp — 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22 5 REJECT all — 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibitedChain FORWARD (policy ACCEPT) num target prot opt source destination 1 REJECT all — 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibitedChain OUTPUT (policy ACCEPT) num target prot opt source destination[root@centos-redhat ~]#
Останавливаем службу Firewall или Iptables
[root@centos-redhat ~]# /etc/init.d/iptables stop iptables: Flushing firewall rules: [ OK ] iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Unloading modules: [ OK ] [root@centos-redhat ~]# [root@centos-redhat ~]# /etc/init.d/iptables status iptables: Firewall is not running. [root@centos-redhat ~]#
Выключаем на постоянно firewall или iptables
[root@centos-redhat ~]# chkconfig iptables off [root@centos-redhat ~]#