Hi all dont know if this is the correct section or not.
We host our own joomla 2.5 webserver using apache, throughout the day all my users lose connection to the internet, if i disable the webserver everyones connection becomes available again. Has anybody any ideas what might be happening?
Internet becoming unavailable for all users
-
- Joomla! Fledgling
- Posts: 4
- Joined: Fri Nov 16, 2012 3:07 pm
Internet becoming unavailable for all users
Last edited by imanickam on Mon Jul 15, 2013 9:55 am, edited 1 time in total.
Reason: Moved the topic from the forum Performance - Joomla! 2.5 to the forum The Lounge
Reason: Moved the topic from the forum Performance - Joomla! 2.5 to the forum The Lounge
-
- Joomla! Explorer
- Posts: 324
- Joined: Tue Sep 07, 2010 5:23 pm
- Location: Ireland
- Contact:
Re: Internet becoming unavailable for all users
Could you be more specific about the symptoms? When you do /etc/init.d/apache stop, your network users can access internet, and when you do /etc/init.d/apache start, they can't???
-
- Joomla! Fledgling
- Posts: 4
- Joined: Fri Nov 16, 2012 3:07 pm
Re: Internet becoming unavailable for all users
Thats correct, the moment i stop apache, the internet becomes available again instantly
-
- Joomla! Explorer
- Posts: 324
- Joined: Tue Sep 07, 2010 5:23 pm
- Location: Ireland
- Contact:
Re: Internet becoming unavailable for all users
Maybe it can be some IP conflict. You can use arp-scan to list all machines IPs and look for repeated entries:
Code: Select all
arp-scan --interface=eth0 --localnet
-
- Joomla! Intern
- Posts: 54
- Joined: Sat Nov 25, 2006 10:36 pm
Re: Internet becoming unavailable for all users
ok, I have a few ideas that might help you out.
Since it seems to revolve around apache, here is what I would like you to try:
1. Turn Apache back ON.
2. Block port 80 in your firewall.
Yes this will make your webserver unavailable but that is the intention. If your users can connect reliably like this, then Apache is not "sending out" data (which is a good thing). Now if you reopen port 80 on your firewall and the problem returns, well most likely you are being DoS'ed. You can check Apache's log files as well to see if a huge amount of repeat requests keep coming in.
If this were an IP address conflict, it would affect the entire network connection, not just port 80. Also check to see if you have mod_evasive installed for Apache as it can help to mitigate DoS attacks. An alternative would be to use conntrack and iptables to limit incoming connections per IP (if this turns out to be a DoS).
Also, you can use a tool called Etherape, which will give you a visual representation of all incoming and outgoing connections, what port or service they are using etc.
Since it seems to revolve around apache, here is what I would like you to try:
1. Turn Apache back ON.
2. Block port 80 in your firewall.
Yes this will make your webserver unavailable but that is the intention. If your users can connect reliably like this, then Apache is not "sending out" data (which is a good thing). Now if you reopen port 80 on your firewall and the problem returns, well most likely you are being DoS'ed. You can check Apache's log files as well to see if a huge amount of repeat requests keep coming in.
If this were an IP address conflict, it would affect the entire network connection, not just port 80. Also check to see if you have mod_evasive installed for Apache as it can help to mitigate DoS attacks. An alternative would be to use conntrack and iptables to limit incoming connections per IP (if this turns out to be a DoS).
Also, you can use a tool called Etherape, which will give you a visual representation of all incoming and outgoing connections, what port or service they are using etc.
-
- Joomla! Explorer
- Posts: 324
- Joined: Tue Sep 07, 2010 5:23 pm
- Location: Ireland
- Contact:
Re: Internet becoming unavailable for all users
Cool! It really makes a lot of sense! Thank you for the tip!drammar wrote:Now if you reopen port 80 on your firewall and the problem returns, well most likely you are being DoS'ed. You can check Apache's log files as well to see if a huge amount of repeat requests keep coming in.
-
- Joomla! Fledgling
- Posts: 4
- Joined: Fri Nov 16, 2012 3:07 pm
Re: Internet becoming unavailable for all users
Thats excellent advise guys, ill try blocking port 80 dont know why i didnt think of it myself. ive checked and there is no ip confilct.
so ill give that a go today when internet access becomes available.
Thanks very much
so ill give that a go today when internet access becomes available.
Thanks very much