The connection was reset

 
Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support The connection was reset
# 8  
Old 06-25-2010
Yes, definitely put SElinux back in enforcing mode after that test.

If I'm reading your original post correctly:

Code:
$ wget http://localhost   <--- works
$ telnet localhost 80
GET / HTTP/1.1
Hostname: your_hostname

(works)

(go to a different host)
$ telnet name_of_first_host 80
GET / HTTP/1.1
Hostname: your_hostname

(works)

If the last telnet from a different host works, then we know that the first hosts firewall at the very least allows traffic to port 80 from _some_ hosts. Maybe not the one that you are eventually trying via firefox or MSIE from.

So, is the host that the telnet works from on the local network, but the host that you're trying Firefox from on some other network? Do the web browsers on that host go through a proxy or a filter, that telnet might bypass? Generally speaking, I would:

1) on a remote host:
ping the webserver by IP
traceroute to the webserver by IP
telnet to the webserver on port 80 by IP
see if I can resolve the name of the webserver (dig, host, nslookup)
ping, traceroute, and telnet using the name

Ping may be disabled, so failing that may not be a big deal.
Traceroute might show you that the traffic is passing through some sort of external firewall.
telnet checks to see if you can reach the webserver process.

2) assuming all these look reasonable, then I would start suspecting browser settings, proxies, and so forth. If they don't look reasonable, then I would start suspecting firewall settings, either on the webserver itself, or on an external firewall between my test host and the webserver. I would also check:

/etc/hosts.allow
/etc/hosts.deny

on the webserver.

Best of luck!
# 9  
Old 06-25-2010
hergp, that worked but I am confused coz I was able to "telnet IP 80" from another computer earlier and thought firewall was open?

What does checking the service do here?

Thanks,
Jack.

---------- Post updated at 10:54 AM ---------- Previous update was at 10:49 AM ----------

Hey Mal/hegrp!

The telnet earlier didnt return "GET/HTTP/1.1" but I was inside the session as I could hit carriage return... Maybe that was an indication but I thought when firewall is blocking then I get disconnected immediately. Can you explain a little here so that I understand completely.

$ telnet name_of_first_host 80
GET / HTTP/1.1
Hostname: your_hostname
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Can't SSH - Connection reset by Peer

Hi Guys, I can't SSH to a remote system - connection reset by peer..any ideas ? -The Source is Linux, the Remote is Windows -The remote has OpenSSH running on Port 22 - Telnet confirms port is open -User1 has a RSA2 Key (2048) key, which is capture in the 1010101-pub.key specified by the... (1 Reply)
Discussion started by: stevie_velvet
1 Replies

2. UNIX for Dummies Questions & Answers

cat: write error: Connection reset by peer

I have created a script to cat the contents of a log file and pipe it to head and tail so I can get specific lines. When I do this I sometimes randomly get the error "cat: write error: Connection reset by peer". It is completely sporatic and sometimes it doesnt happen and sometimes it does... (4 Replies)
Discussion started by: atelford
4 Replies

3. Programming

SocketException: Connection reset

Hi, I am currently working on a Server/Client application on a cluster I am running about 100 clients in parallel and one server (32 clients per node with 8 processor => 4 clients per processor) . The server is linked to all the clients via Sockets. After about 55 iteration (about 20... (1 Reply)
Discussion started by: masy1800
1 Replies

4. IP Networking

SocketException : Connection Reset

Hi, I am currently working on a Server/Client application on a cluster I am running about 100 clients in parallel and one server (32 clients per node with 8 processor => 4 clients per processor) . The server is linked to all the clients via Sockets. After about 55 iteration (about 20... (0 Replies)
Discussion started by: masy1800
0 Replies

5. UNIX for Dummies Questions & Answers

command to reset connection

Hi everyone, Here's question I posted on ubuntu's forum with no success :( command to reset connection - Ubuntu Forums I apologize in advance if i'm not supposed to post a link to another forum's thread but well, rather than copy/pasting... I'm hoping to find some answers here :) ... (3 Replies)
Discussion started by: anthalamus
3 Replies

6. UNIX for Advanced & Expert Users

Connection reset by peer..closing connection

Hello I'm facing the above problem while doing a performance run. I've a script which I'm launching from my windows desktop using mozilla. The script will invoke backend action on a Solaris host which in turn feeds the records to a driver located on a linux box(Cent OS). What's happening is... (1 Reply)
Discussion started by: subramanyab
1 Replies

7. IP Networking

connection reset by peer on freebsd

hi all. am running postgresql in a vm on debian server. i have some client programs connecting to the db. when i check the logs of postgresql i see "connection reset by peer" can someone help me with this issue... thanks. (1 Reply)
Discussion started by: coolatt
1 Replies

8. Shell Programming and Scripting

Connection reset by peer

hi i am connecting to a remote server using sftp protocol. i am using the command like "sftp USER01@122.10.12.45" then i got the error "Couldn't read packet: Connection reset by peer" please help its very urgent (5 Replies)
Discussion started by: Satyak
5 Replies

9. Shell Programming and Scripting

ssh - connection reset by peer

I use ssh to work on the server (OS X 10.4.x) remotely from home (Debian / OS X 10.5.3). If I leave my machine idle, I get disconnected after a couple of minutes. I get the following error message: Read from remote host "server name": Connection reset by peer Connection to "server name" closed.... (2 Replies)
Discussion started by: osxhawk
2 Replies

10. IP Networking

connection reset by peer

:confused: HI, We have 2 servers ( win 2003 + sun 5.8 ) and we run a rsh from the NT to the UNIX. The program runs a shell script on the UNIX and waits for the answer in the EOF. How ever, after period of appx 2 min there is a reply "Recv failed:Connection reset by peer". while the... (5 Replies)
Discussion started by: eyalush
5 Replies
Login or Register to Ask a Question