LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-08-2003, 10:23 AM   #1
goldfish
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo / Debian
Posts: 58

Rep: Reputation: 15
Refusing Connections


Okay, this is for my RedHat 9 box, newly installed, with updated kernel and everything.. accessing the net via eth0 over a router.

Basically, my problem is the following : I want the box to respond to pings, accept port 80 connections and VNC connections and rlogin etc., and even though its "unchecked" in the fancy kde redhat type control panel it is still "refusing connctions" especially to itself!

What can i do?
 
Old 10-08-2003, 10:33 AM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,744

Rep: Reputation: 70
Check to see if a firewall is running (iptables). If so turn it off and check to see if you can connect. Also check to see if VNC and rlogin services are started. If not start them. VNC and rlogin are unsecure apps, so be careful with them. You could forward X using ssh if you want to use a gui remotly.
 
Old 10-08-2003, 11:08 AM   #3
goldfish
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo / Debian
Posts: 58

Original Poster
Rep: Reputation: 15
hmm, forward X? Would i need to be running linux at the remote location too?

hmm, iptables didnt work... says command not found.... im worried now!

Thanks for the speedy reply
 
Old 10-08-2003, 11:15 AM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,744

Rep: Reputation: 70
I think that you can forward X to a windows machine if connecting to the Linux machine using putty.

Also I misunderstood, you need to set the router to foward all those requests to that machine. Also, install nmap and do a port scan on you machine and see if those apps are running. You can do this using nmap localhost command.
 
Old 10-08-2003, 11:24 AM   #5
goldfish
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo / Debian
Posts: 58

Original Poster
Rep: Reputation: 15
okay, so VNC seems to be running... but the HTTP server doesnt.

How can i get apache running? Scratch that, i figgered that out

Now i need to work out how to make it all available to remote hosts... its also not responding to pings from external sites, though pinging itself it works fine. I've matched the subnet with the rest of the network, and the default gateway, is all the same

Does it have anything to do with setting eth0 as a "trusted NIC"?

Last edited by goldfish; 10-08-2003 at 11:45 AM.
 
Old 10-08-2003, 11:59 AM   #6
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,744

Rep: Reputation: 70
By remote, do you mean from the internet or from your local network?
 
Old 10-08-2003, 12:03 PM   #7
goldfish
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo / Debian
Posts: 58

Original Poster
Rep: Reputation: 15
local network will do for now. once i can access it from inside i know where to go from there

hmmmm....
 
Old 10-08-2003, 12:35 PM   #8
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,744

Rep: Reputation: 70
Are you trying to ping by host name or ip number?
 
Old 10-08-2003, 12:42 PM   #9
goldfish
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo / Debian
Posts: 58

Original Poster
Rep: Reputation: 15
IP addy, tried hostname too and no joy.

as far as nmap is concerned, all the right services are running, and iptables isnt running, but i cant get to it from the LAN.

Last edited by goldfish; 10-08-2003 at 01:07 PM.
 
Old 10-08-2003, 04:00 PM   #10
goldfish
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo / Debian
Posts: 58

Original Poster
Rep: Reputation: 15
anyone got any ideas?

i cant get a ping reply from the thing, i cant access VNC, http, or anything from another computer.
 
Old 10-08-2003, 06:47 PM   #11
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,744

Rep: Reputation: 70
Can you ping from that machine to another?
 
Old 10-09-2003, 02:17 AM   #12
goldfish
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo / Debian
Posts: 58

Original Poster
Rep: Reputation: 15
i can ping other computers from the RedHat box, but not vice versa
 
Old 10-09-2003, 07:28 AM   #13
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,744

Rep: Reputation: 70
I am almost sure that you have a firewall running. Log is as root and type iptables -L. If you get a long list of things go flying by, then you have a firewall running.
 
Old 10-09-2003, 12:44 PM   #14
goldfish
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo / Debian
Posts: 58

Original Poster
Rep: Reputation: 15
Oh this gets even better... iptables is DEFINATLEY disabled, well at least thats what the services thingamajigger says, and now on startup, httpd fails to start... grrr

Ill try your suggestion
 
Old 10-09-2003, 12:54 PM   #15
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,744

Rep: Reputation: 70
Maybe see if ipchains is running. iptables replace is a few releases ago, but maybe RH installed it instead of iptables.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Server Refusing Connections zoso Linux - Networking 2 12-27-2004 11:41 AM
Refusing smtp and telnet connections johnsfrj Linux - Networking 18 10-21-2004 11:35 AM
keep refusing connections tpark Linux - Networking 1 03-04-2004 02:24 AM
Telnet yet again. (refusing connections) hornokplease Linux - Networking 2 07-21-2003 03:30 AM
Sendmail refusing connections RH7.2 Fafafoey Linux - Newbie 3 11-13-2001 11:37 AM


All times are GMT -5. The time now is 12:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration