Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok ... I'm lost. An old friend of mine passed away a few months ago and I've taken over responsibility for keeping his Red Hat system running. He was an expert in this area, but the majority of my *nix knowledge (what little there is) comes from a thousand years ago (well, more like the early 80's). So I'm quite lost here just trying to figure out what all the pieces are (and are named).
The system is running (and yes, I have the root password) and booting up tells me that I'm running Red Hat v2.4.20-8 (on a slow Intel box). (I'm afraid to patch or upgrade it until I'm more confident in what I'm doing.)
In the past, he had everything running nicely, and it had several services running on it including a small web site. He also had some kind of advanced (self-adjusting, I think) security installed on it to keep out the hackers and SKs. I don't want to undo all this hard (and good) work and try to rebuild everything from scratch. For one thing, I don't have time to re-learn this entire (new-to-me) world. Even though I'm an experienced programmer and knowledgable about many other things, there's just too much knowledge to try to absorb all at once.
The specific problem that I'm having at the moment is that the web site is inaccessible, and I need to get it up and running again fairly quickly. I can get at it from inside the home network just fine, but from outside the firewall I'm getting no response at all (it just times out). From these symptoms, and the fact that it used to be running fine, it sounds to me like Apache is working properly but that some security device has automatically turned off access from the outside world. However, I can't find where it might be getting blocked in order to repair it.
I think it's important to the problem that the connection is (currently) running on a dynamic IP address, and because of that all requests are being routed through NO-IP.com. I've checked NO-IP and everything seems to be fine there (correct addresses & such). However, that means (as I understand it) that NO-IP redirects all requests in real time, so that any incoming packets probably appear to originate from NO-IP's servers. If so, then that might easily explain why a security system might have auto-blocked such an address (if hacking attempts had all been labelled with it) and then why such a blockage would then affect all other users in the world.
There is a Linksys hardware firewall in front of the box, but it also seems to be correctly configured.
I've wandered around the system a bit (quite clumsily) and made a few non-discoveries:
* iptables has no rules
* ip6tables says it can't find the 'filter' table
* ipchains complains about being incompatible and refuses to run
So, my guess is that my next step is to figure out what is blocking external requests. (From there I can then research enough to figure out how to change it.) So, unless someone has a better idea or something else to try, here's the big question:
What can I do to figure out what security system is (auto-)blocking incoming packets?
One thing I have found, sometimes No-Ip will get the IP wrong. So you may want to login to no-ip and check that the IP listed there and the one you see in your router statistics page match.
If that fails try the following commands
killall no-ip
killall apache
apache
no-ip
This will have the effect of stopping No-IP and apache and starting them again, amazingly it actually works quite well.
Originally posted by shane25119
One thing I have found, sometimes No-Ip will get the IP wrong. So you may want to login to no-ip and check that the IP listed there and the one you see in your router statistics page match.
I've done that, and they match exactly.
Quote:
If that fails try the following commands
killall no-ip
killall apache
apache
no-ip
This will have the effect of stopping No-IP and apache and starting them again, amazingly it actually works quite well.
I can certainly give that a try. But I've rebooted the whole system a number of times -- are you expecting this to do something that rebooting hasn't already accomplished?
It WAS NO-IP, after all. It turns out that what I thought they said they were routing to wasn't the routing address at all. So I've obviously got a failure to keep their system updated, and I can figure out how to deal with that, now that I know what to look for.
Thanks much for all your help!!!
(My next problem will be doing a trick with virtual hosting, splitting one incoming address+port into two machines based on host name. I'm hoping to deduce the right settings from the Apache docs.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.