apache - Port 80 open on server but cannot connect to it -
i have issue have been trying resolve cannot figure out going on. have various web servers , have apache installed on them. on same network 1 giving me issue.
i have servers (.44, .45 , .46)
i can ssh .44 , ping .45 , .46 no issues. when try test , see if port 80 open, .45 gives me message.
someadminuser@somelocation:/var/www$ telnet 10.0.0.45 80 trying 10.0.0.45... telnet: unable connect remote host: connection refused
here same test on .46
someadminuser@somelocation:/var/www$ telnet 10.0.0.46 80 trying 10.0.0.46... connected 10.0.0.46. escape character '^]'.
so ssh .45 see port.
someadminuser@somelocation:~$ netstat -tulpn | grep :80 (no info read "-p": geteuid()=1000 should root.) tcp 0 0 0.0.0.0:80 0.0.0.0:* listen someadminuser@somelocation:~$ sudo iptables -l chain input (policy accept) target prot opt source destination accept tcp -- anywhere anywhere tcp dpt:httpflags: accept tcp -- anywhere anywhere tcp dpt:http accept tcp -- anywhere anywhere tcp dpt:http accept tcp -- anywhere anywhere tcp dpt:http accept tcp -- anywhere anywhere tcp dpt:http
any appreciated.
****************update****************
i saved ipv4 table , got:
# generated iptables-save v1.4.12 on thu may 29 14:05:31 2014 *nat :prerouting accept [3416:231940] :input accept [1175:75880] :output accept [337:25196] :postrouting accept [337:25196] -a prerouting -p tcp -m tcp --dport 80 -j redirect --to-ports 3000 -a output -d 127.0.0.1/32 -p tcp -m tcp --dport 80 -j redirect --to-ports 3000
of course, there more part suspicious.
so server redirecting connections local port 80 local port 3000. presumably there nothing listening on port 3000 , why seeing "connection refused".
if working servers don't have configuration, need remove (or fix) iptables. if other servers do have that, need figure out have running on port 3000 , why failing server not have same.
Comments
Post a Comment