Networking Forums

Networking Forums > Computer Networking > Linux Networking > The connection was refused when trying to connect to ...

Reply
Thread Tools Display Modes

The connection was refused when trying to connect to ...

 
 
Dan
Guest
Posts: n/a

 
      09-07-2003, 01:35 PM
Wow. Really having a hard time getting my apache web server
communicatiing with the outside world. I have a new install of Linux
8.

My webserver works fine when used locally but get connection refused
other wise.

When setting up my server initially I set up with medium firewall,
thinking I could modify the settings later.

I have tried modifying through security settings, using lokkit and
trying to modify the iptables script manually.

Is it possible that it isn't the firewall settings at all and some
other setting?

I am fairly new to Linux and would appreciate any suggestions. Thanks
in advance.

-Dan
 
Reply With Quote
 
 
 
 
Dan
Guest
Posts: n/a

 
      09-07-2003, 07:44 PM
(E-Mail Removed) (Dan) wrote in message news:<(E-Mail Removed). com>...
> Wow. Really having a hard time getting my apache web server
> communicatiing with the outside world. I have a new install of Linux
> 8.
>
> My webserver works fine when used locally but get connection refused
> other wise.
>
> When setting up my server initially I set up with medium firewall,
> thinking I could modify the settings later.
>
> I have tried modifying through security settings, using lokkit and
> trying to modify the iptables script manually.
>
> Is it possible that it isn't the firewall settings at all and some
> other setting?
>
> I am fairly new to Linux and would appreciate any suggestions. Thanks
> in advance.
>
> -Dan



A little more info on this one...

Aggrivated I reinstalled Linux, this time no firewall. I still got
the same message when trying to connect.

This install of the webserver is for my home use. I connect through
Bellsouth as my ISP and I am forwarding my domain to my IP.

I have no other computers connected (no network) and connecting
through a network card to my DSL modem.

Does anyone have an idea? Thanks.
 
Reply With Quote
 
Monzai
Guest
Posts: n/a

 
      09-07-2003, 08:05 PM
Dear Dan,
what if your DSL-Router has a build-in filter function?
Maybe you have to configure this before you can have
access through the internet to that server. http-port is
port 80....whet do you get when you make a
telnet yourserver.com 80 from outside? Do you get at least
a response like this?
Connected to www.monzai.com.
Escape character ....
Is there any response from outside? Do you get a ping-response?
Cheers,
Monzai

Yes you may want to have a look at http://www.monzai.com/
Beware! Webmasters and admins only!


Dan wrote:
> (E-Mail Removed) (Dan) wrote in message news:<(E-Mail Removed). com>...
>
>>Wow. Really having a hard time getting my apache web server
>>communicatiing with the outside world. I have a new install of Linux
>>8.
>>
>>My webserver works fine when used locally but get connection refused
>>other wise.
>>
>>When setting up my server initially I set up with medium firewall,
>>thinking I could modify the settings later.
>>
>>I have tried modifying through security settings, using lokkit and
>>trying to modify the iptables script manually.
>>
>>Is it possible that it isn't the firewall settings at all and some
>>other setting?
>>
>>I am fairly new to Linux and would appreciate any suggestions. Thanks
>>in advance.
>>
>>-Dan

>
>
>
> A little more info on this one...
>
> Aggrivated I reinstalled Linux, this time no firewall. I still got
> the same message when trying to connect.
>
> This install of the webserver is for my home use. I connect through
> Bellsouth as my ISP and I am forwarding my domain to my IP.
>
> I have no other computers connected (no network) and connecting
> through a network card to my DSL modem.
>
> Does anyone have an idea? Thanks.


 
Reply With Quote
 
Dan
Guest
Posts: n/a

 
      09-11-2003, 01:37 PM
Monzai <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Dear Dan,
> what if your DSL-Router has a build-in filter function?
> Maybe you have to configure this before you can have
> access through the internet to that server. http-port is
> port 80....whet do you get when you make a
> telnet yourserver.com 80 from outside? Do you get at least
> a response like this?
> Connected to www.monzai.com.
> Escape character ....
> Is there any response from outside? Do you get a ping-response?
> Cheers,
> Monzai
>
> Yes you may want to have a look at http://www.monzai.com/
> Beware! Webmasters and admins only!
>
>
> Dan wrote:
> > (E-Mail Removed) (Dan) wrote in message news:<(E-Mail Removed). com>...
> >
> >>Wow. Really having a hard time getting my apache web server
> >>communicatiing with the outside world. I have a new install of Linux
> >>8.
> >>
> >>My webserver works fine when used locally but get connection refused
> >>other wise.
> >>
> >>When setting up my server initially I set up with medium firewall,
> >>thinking I could modify the settings later.
> >>
> >>I have tried modifying through security settings, using lokkit and
> >>trying to modify the iptables script manually.
> >>
> >>Is it possible that it isn't the firewall settings at all and some
> >>other setting?
> >>
> >>I am fairly new to Linux and would appreciate any suggestions. Thanks
> >>in advance.
> >>
> >>-Dan

> >
> >
> >
> > A little more info on this one...
> >
> > Aggrivated I reinstalled Linux, this time no firewall. I still got
> > the same message when trying to connect.
> >
> > This install of the webserver is for my home use. I connect through
> > Bellsouth as my ISP and I am forwarding my domain to my IP.
> >
> > I have no other computers connected (no network) and connecting
> > through a network card to my DSL modem.
> >
> > Does anyone have an idea? Thanks.


>
> As it turns out I was able to make a change to my httpd.conf file that
> made all the difference. I did have port 80 set to listen, however I
> did not have port 80 itself specified as a port in the file. The
> change I made is shown below, just added the line port 80. After this
> I was able to set my firewall to High security and I am serving pages
> just fine now. Thanks for all of your help!
>
> -Dan
>
>
> # Change this to Listen on specific IP addresses as shown below to
> # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
> #
> #Listen 12.34.56.78:80
> port 80
> Listen 80
>
> #
> # Load config files from the config directory "/etc/httpd/conf.d".
> #
> Include conf.d/*.conf



Doh!,,,, talked too soon. I hate it when I do that. Ok, as it turned
out, this only worked temporarily until I had to reboot the machine.
Then the
httpd.conf file would not load properly ( I guess it did not like port
80 ) and I was back to getting the standard connection refused error.

Funny enough though, after I removed "port 80" from the script I was
accepting connections again.

I am not sure why this is working now as I have not really made any
changes other than changing the file, saving, changing the file back
and saving again. Very strange.

Anyway, I have my fingers crossed as I keep expecting to get
connection refused! Keeping my fingers crossed...

-Dan
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
telnet: connect to address 127.0.0.1: Connection refused phhs80@gmail.com Linux Networking 7 11-19-2006 10:55 PM
Connection Refused Periodically Neil Wireless Internet 0 12-05-2005 06:41 AM
ypserv refused connect problems passwd.adjunct map linuxteam@gmail.com Linux Networking 0 03-07-2005 07:29 AM
TCP connection refused Bonj Linux Networking 8 02-26-2005 10:47 AM
Connection to itself refused Alec Linux Networking 5 07-11-2004 10:34 PM



1 2 3 4 5 6 7 8 9 10 11