Networking Forums

Networking Forums > Computer Networking > Linux Networking > Connection to itself refused

Reply
Thread Tools Display Modes

Connection to itself refused

 
 
Alec
Guest
Posts: n/a

 
      07-10-2004, 05:31 AM
Hi,

I am using Red Hat 8.0 and have a problem with connecting from my
server to itself using its public IP address. When I use the internal
IP to connect from the server to itself everything works fine.
Surprisingly, I can connect to my server from outside the network by
using its public IP.

Could anyone help we resolve or at least debug this problem? I don't
know where to start.

Thanks.
 
Reply With Quote
 
 
 
 
Gerard Wassink
Guest
Posts: n/a

 
      07-10-2004, 08:38 AM
On 9 Jul 2004 22:31:28 -0700, Alec scribbled:

> Hi,
>
> I am using Red Hat 8.0 and have a problem with connecting from my
> server to itself using its public IP address. When I use the internal
> IP to connect from the server to itself everything works fine.
> Surprisingly, I can connect to my server from outside the network by
> using its public IP.
>
> Could anyone help we resolve or at least debug this problem? I don't
> know where to start.
>
> Thanks.


Most firewalls would protect you against intruders that are trying to enter
your realm whilst using your own public IP address.

So check your firewall for this.

--
GerardLinux ay tee filternet dee oo tee ann el

|
\ /
.---.
'-. | | .-'
___| |___
-= [ ] =-
`---. .---'
__||__ | | __||__
'-..-' | | '-..-'
|| | | ||
||_.-| |-,_||
.-"` `"`'` `"-.
.' '.

Jesus is alive, I spoke with Him this morning!
 
Reply With Quote
 
Matt
Guest
Posts: n/a

 
      07-10-2004, 09:45 AM
Alec wrote:

> Hi,
>
> I am using Red Hat 8.0 and have a problem with connecting from my
> server to itself using its public IP address. When I use the internal
> IP to connect from the server to itself everything works fine.
> Surprisingly, I can connect to my server from outside the network by
> using its public IP.
>
> Could anyone help we resolve or at least debug this problem? I don't
> know where to start.


Probably when your server tries to connect to external.ip.address that is
routed out through your gateway and doesn't come back.

You can either run a private DNS server, or add the domain name entries to
/etc/hosts

--
Matt


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
 
Reply With Quote
 
Alec
Guest
Posts: n/a

 
      07-11-2004, 06:12 PM
I have the following settings in my /etc/hosts:
local_ip www.mydomain.com mydomain
public_ip www.mydomain.com mydomain
127.0.0.1 localhost localhost

Where local_ip is the local ip address and public_ip is the public ip
address.

I have two domain names and two machines that are mapped to each
domain name accordingly. On one machine this configuration works and I
am able to connect to itself, but on the other machine this doesn't
work. Both of the machines are behind routers, but they are from two
different companies.

Can anyone help troubleshoot this problem?

Thanks.
 
Reply With Quote
 
Jerry Smiley
Guest
Posts: n/a

 
      07-11-2004, 07:00 PM
Alec wrote:

> I have the following settings in my /etc/hosts:
> local_ip www.mydomain.com mydomain
> public_ip www.mydomain.com mydomain
> 127.0.0.1 localhost localhost
>
> Where local_ip is the local ip address and public_ip is the public ip
> address.
>
> I have two domain names and two machines that are mapped to each
> domain name accordingly. On one machine this configuration works and I
> am able to connect to itself, but on the other machine this doesn't
> work. Both of the machines are behind routers, but they are from two
> different companies.
>
> Can anyone help troubleshoot this problem?
>
> Thanks.

Can you provide the output from 'ifconfig' and 'netstat'

Thanks
 
Reply With Quote
 
Alec
Guest
Posts: n/a

 
      07-11-2004, 10:34 PM
I attached ifconfig and netstat output below.

# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0D:87:A6:663
inet addr:192.168.1.101 Bcast:192.168.1.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6989 errors:0 dropped:0 overruns:0 frame:0
TX packets:5913 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:685797 (669.7 Kb) TX bytes:1093471 (1.0 Mb)
Interrupt:10 Base address:0xd800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:378 errors:0 dropped:0 overruns:0 frame:0
TX packets:378 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:36783 (35.9 Kb) TX bytes:36783 (35.9 Kb)


-----------------------------------------------------------------------


# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State
tcp 0 0 localhostostgres localhost:32774
ESTABLISHED
tcp 0 268 192.168.1.101:ssh 168-103-176-62.slk:1528
ESTABLISHED
tcp 0 0 192.168.1.101:ssh 168-103-176-62.sl:32851
ESTABLISHED
tcp 0 0 localhost:32774 localhostostgres
ESTABLISHED
udp 0 0 localhost:32769 localhost:32769
ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 12 [ ] DGRAM 1043 /dev/log
unix 3 [ ] STREAM CONNECTED 133780
unix 3 [ ] STREAM CONNECTED 133779
unix 3 [ ] STREAM CONNECTED 133433
unix 3 [ ] STREAM CONNECTED 133432
unix 3 [ ] STREAM CONNECTED 11192
/tmp/orbit-root/linc-fed-0-1a3bd26ace48e
unix 3 [ ] STREAM CONNECTED 11191
unix 3 [ ] STREAM CONNECTED 11188
/tmp/orbit-root/linc-fca-0-188d2c310ced
unix 3 [ ] STREAM CONNECTED 11187
unix 3 [ ] STREAM CONNECTED 11184
/tmp/.ICE-unix/3981
unix 3 [ ] STREAM CONNECTED 11183
unix 3 [ ] STREAM CONNECTED 11158
/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 11157
unix 3 [ ] STREAM CONNECTED 11125
/tmp/.famlJhbzd
unix 3 [ ] STREAM CONNECTED 11124
unix 3 [ ] STREAM CONNECTED 11110
/tmp/orbit-root/linc-fe6-0-47fdb69bd6682
unix 3 [ ] STREAM CONNECTED 11109
unix 3 [ ] STREAM CONNECTED 11108
/tmp/orbit-root/linc-fd5-0-59942e4df2443
unix 3 [ ] STREAM CONNECTED 11107
unix 3 [ ] STREAM CONNECTED 11101
/tmp/.ICE-unix/3981
unix 3 [ ] STREAM CONNECTED 11099
unix 3 [ ] STREAM CONNECTED 11096
/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 11095
unix 3 [ ] STREAM CONNECTED 11092
/tmp/orbit-root/linc-fe6-0-47fdb69bd6682
unix 3 [ ] STREAM CONNECTED 11091
unix 3 [ ] STREAM CONNECTED 11088
/tmp/orbit-root/linc-fca-0-188d2c310ced
unix 3 [ ] STREAM CONNECTED 11087
unix 3 [ ] STREAM CONNECTED 11085
/tmp/.ICE-unix/3981
unix 3 [ ] STREAM CONNECTED 11084
unix 3 [ ] STREAM CONNECTED 11078
/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 11077
unix 3 [ ] STREAM CONNECTED 11041
/tmp/.fam69OHb3
unix 3 [ ] STREAM CONNECTED 11040
unix 3 [ ] STREAM CONNECTED 11030
/tmp/orbit-root/linc-fe4-0-6be39bdee3dbc
unix 3 [ ] STREAM CONNECTED 11029
unix 3 [ ] STREAM CONNECTED 11028
/tmp/orbit-root/linc-fd5-0-59942e4df2443
unix 3 [ ] STREAM CONNECTED 11027
unix 3 [ ] STREAM CONNECTED 11025
/tmp/orbit-root/linc-fe4-0-6be39bdee3dbc
unix 3 [ ] STREAM CONNECTED 11024
unix 3 [ ] STREAM CONNECTED 11021
/tmp/orbit-root/linc-fca-0-188d2c310ced
unix 3 [ ] STREAM CONNECTED 11020
unix 3 [ ] STREAM CONNECTED 11018
/tmp/.ICE-unix/3981
unix 3 [ ] STREAM CONNECTED 11017
unix 3 [ ] STREAM CONNECTED 11011
/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 11010
unix 3 [ ] STREAM CONNECTED 11006
/tmp/orbit-root/linc-fe8-0-6be39bdeb51fa
unix 3 [ ] STREAM CONNECTED 11005
unix 3 [ ] STREAM CONNECTED 11002
/tmp/orbit-root/linc-fca-0-188d2c310ced
unix 3 [ ] STREAM CONNECTED 11001
unix 3 [ ] STREAM CONNECTED 10999
/tmp/.ICE-unix/3981
unix 3 [ ] STREAM CONNECTED 10998
unix 3 [ ] STREAM CONNECTED 10992
/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 10991
unix 3 [ ] STREAM CONNECTED 10982
/tmp/orbit-root/linc-fd9-0-5099ede640e2b
unix 3 [ ] STREAM CONNECTED 10980
unix 3 [ ] STREAM CONNECTED 10976
/tmp/orbit-root/linc-fd9-0-5099ede640e2b
unix 3 [ ] STREAM CONNECTED 10975
unix 3 [ ] STREAM CONNECTED 10974
/tmp/orbit-root/linc-fd5-0-59942e4df2443
unix 3 [ ] STREAM CONNECTED 10973
unix 3 [ ] STREAM CONNECTED 10913
/tmp/.esd/socket
unix 3 [ ] STREAM CONNECTED 10912
unix 3 [ ] STREAM CONNECTED 10898
/tmp/.famR7kWK4
unix 3 [ ] STREAM CONNECTED 10897
unix 3 [ ] STREAM CONNECTED 10979
/tmp/.ICE-unix/3981
unix 3 [ ] STREAM CONNECTED 10885
unix 3 [ ] STREAM CONNECTED 10883
/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 10882
unix 3 [ ] STREAM CONNECTED 10881
/tmp/orbit-root/linc-fd7-0-400f12ca47765
unix 3 [ ] STREAM CONNECTED 10880
unix 3 [ ] STREAM CONNECTED 10877
/tmp/orbit-root/linc-fca-0-188d2c310ced
unix 3 [ ] STREAM CONNECTED 10876
unix 3 [ ] STREAM CONNECTED 10873
/tmp/orbit-root/linc-fd9-0-5099ede640e2b
unix 3 [ ] STREAM CONNECTED 10872
unix 3 [ ] STREAM CONNECTED 10869
/tmp/orbit-root/linc-fca-0-188d2c310ced
unix 3 [ ] STREAM CONNECTED 10868
unix 3 [ ] STREAM CONNECTED 10862
/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 10861
unix 3 [ ] STREAM CONNECTED 10846
/tmp/orbit-root/linc-f8d-0-6de457912290
unix 3 [ ] STREAM CONNECTED 10843
unix 3 [ ] STREAM CONNECTED 10842
/tmp/orbit-root/linc-fd5-0-59942e4df2443
unix 3 [ ] STREAM CONNECTED 10841
unix 3 [ ] STREAM CONNECTED 10825
/tmp/.esd/socket
unix 3 [ ] STREAM CONNECTED 10821
unix 2 [ ] STREAM 10815
unix 3 [ ] STREAM CONNECTED 10807
/tmp/orbit-root/linc-f8d-0-6de457912290
unix 3 [ ] STREAM CONNECTED 10806
unix 3 [ ] STREAM CONNECTED 10805
/tmp/orbit-root/linc-fca-0-188d2c310ced
unix 3 [ ] STREAM CONNECTED 10802
unix 2 [ ] DGRAM 10794
unix 3 [ ] STREAM CONNECTED 10778
/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 10777
unix 3 [ ] STREAM CONNECTED 2685
/tmp/.font-unix/fs7100
unix 3 [ ] STREAM CONNECTED 2684
unix 4 [ ] STREAM CONNECTED 2687
/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 2677
unix 2 [ ] DGRAM 1801
unix 2 [ ] DGRAM 1719
unix 2 [ ] DGRAM 1689
unix 2 [ ] DGRAM 1669
unix 2 [ ] DGRAM 1579
unix 2 [ ] DGRAM 1551
unix 2 [ ] DGRAM 1273
unix 2 [ ] DGRAM 1105
unix 2 [ ] DGRAM 1053
 
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
Network connection refused Deanna Wireless Networks 2 01-04-2007 01:30 AM
TCP connection refused Bonj Linux Networking 8 02-26-2005 10:47 AM
Connection Refused with Apache 2.0 maddman Linux Networking 3 02-03-2004 06:43 AM
ftp connection refused on Itanium RH 2.1 kenneth kahn Linux Networking 1 09-25-2003 08:37 PM
The connection was refused when trying to connect to ... Dan Linux Networking 3 09-11-2003 01:37 PM



1 2 3 4 5 6 7 8 9 10 11