There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell display driver drivers email error excel explorer firefox firefox 3 game hard drive internet internet explorer itunes laptop lcd linux malware network networking nvidia outlook outlook 2003 outlook express partition printer problem ram router security slow sound trojan usb video virus vista windows windows xp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
http & ftp do not work (RH9)


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Knotical's Avatar
Junior Member with 8 posts.
 
Join Date: Oct 2003
27-Oct-2003, 01:15 AM #1
http & ftp do not work (RH9)
My RH9 linux machine does not seem to be responding to http or ftp requests anymore. SSH works fine though.

When they worked, the machine ran behind a router with a graphical interface. Now it has no router and is running in text only mode.

As far as I can tell from "ps -ax" the services are running.

The tricky part is that I am not physically at the machine anymore and so can only access it via ssh with no xWindows.

Any suggestions on what to look at? I'm new at Linux so please speak in English.
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
27-Oct-2003, 05:13 AM #2
Same thing happened to me yesterday.What'd I do?
I just reset the router and ran ifup eth0 .
HTH
lynch
Squashman's Avatar
Distinguished Member with 12,698 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
27-Oct-2003, 05:39 AM #3
You guys got any firewalls running.

As ROOT could do an: iptables -L

Just to see what your firewall may look like. I think RH9 uses iptables as it firewall.
Knotical's Avatar
Junior Member with 8 posts.
 
Join Date: Oct 2003
27-Oct-2003, 07:15 AM #4
"ifup eth0" did not make any difference.

This machine is connected directly with a real IP address - no router or firewall.

Here is the iptables listing (/sbin/iptables -L):

-------------------
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Lokkit-0-50-INPUT (2 references)
target prot opt source destination
ACCEPT udp -- 192.168.0.1 anywhere udp spt:domain dpts:1025:65535
ACCEPT tcp -- anywhere anywhere tcp dpt:http flags:SYN,RST,ACK/SYN
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp flags:SYN,RST,ACK/SYN
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh flags:SYN,RST,ACK/SYN
ACCEPT udp -- anywhere anywhere udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT udp -- anywhere anywhere udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT all -- anywhere anywhere
REJECT tcp -- anywhere anywhere tcp flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp reject-with icmp-port-unreachable

-----------------------------
attempting ftp returns:
> ftp: connect :Unknown error number

Any more ideas?
Squashman's Avatar
Distinguished Member with 12,698 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
27-Oct-2003, 07:35 AM #5
See if it is running.
/etc/init.d/./httpd status

Restart Apache
/etc/init.d/./httpd restart

Download SuperScan and scan the servers IP address to make sure those ports are open as well. Although it looks like the ports are open.

Last edited by LwdSquashman : 27-Oct-2003 07:40 AM.
Knotical's Avatar
Junior Member with 8 posts.
 
Join Date: Oct 2003
27-Oct-2003, 08:14 PM #6
According to "/etc/init.d/./httpd status" the server is running.

However, according to SuperScan, no ports are open. But I am connecting to it with ssh without any problems.

By trying to connect out from that machine, it seems to be pinging ip addresses fine, but it isn't resolving domain names.

Could that be related? How do I give it dns servers to use?

I appreciate the help.
Squashman's Avatar
Distinguished Member with 12,698 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
28-Oct-2003, 02:33 AM #7
If your server is directly connected to your Cable modem, I would assume it should be getting the DNS server addresses from your ISP's Dhcp server. Your name servers should be in /etc/resolv.conf.

Try typing setup at your shell prompt and see if you can get to the text based configuration.
Attached Thumbnails
http-ftp-do-not-work-setup.jpg  
__________________
I hate asking the same question twice!
How to ask questions the smart way!
Microsoft MVP - Windows Shell/User
Knotical's Avatar
Junior Member with 8 posts.
 
Join Date: Oct 2003
28-Oct-2003, 05:53 AM #8
SOLVED!

I made a couple modification with "setup" and rebooted the machine. That solved the name resolving issue.

During the process though, I realized that I had been using an ip address that was one digit off from the actual one. The bad address was also entered in the dynamic dns service. That means that all my ftping and httping was to the wrong machine.

What do you know

ssh worked because I had entered the correct address into my ssh client at the beginning.

Even SuperScan now returns everything I've been looking for. Someone else's machine was getting a lot of poking for a while there

Thanks for the help. Your input helped me to solve this and other smaller issues.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 08:28 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.