Strange Networking Issue - Solved
Posted: Thu Aug 30, 2012 9:40 am
I recently transitioned from Fedora 14 to Ubuntu 12.04 when Amahi went stable. Nothing has changed in my setup apart from this and I didn't have this issue previously.
I have DHCP and DNS turned off on my router and use my server to do this which works fine for the most part. When a laptop/tablet/phone etc... connects it gets assigned an address and I can see the lease in the Amahi dashboard. Everything works fine on all devices, I can browse the web, internal network and short names all work fine (/hda etc...).
The problem is that after a few reconnects of the same device or after a couple of days, the device will connect ok and I will be able to browse the internal network and short names work fine, but I am unable to navigate to an external website (google.co.uk etc...).
When this happens other devices which are still connected have internet access no problem at all, only devices using certain IP addresses are affected and the only remedy is to force a different IP address to be assigned on disconnect/reconnect but this has to be done using brute force as by default the same IP gets assigned to a given MAC address.
This issue is really puzzling me but is very frustrating. I will try and give as much information as possible because I appreciate just by reading this it may be hard to understand the problem.
I have disabled the firewall in ubuntu (ufw disable) and all internal web apps/applications/networking/ssh etc... work fine all the time on all devices.
The HDA with it's static IP address has internet access all the time and I have had no issues on this side.
When a client loses internet browsing ability I can still ping an external website but cannot view it in a web browser (DNS issue?). As I previously said, all internal networking still works ("hda" resolves fine).
If it still isn't clear i'll give an example. I connect my phone to my wireless network on Monday and it gets an IP of 192.168.1.101 from my server's DHCP server. I can browse the web and internal network and all seems fine. Over the course of a couple of days I disable and enable wireless on the device several times and each time it gets assigned the same IP and can browse fine. On Tuesday evening I enable wifi on my phone and it gets assigned the same IP address (192.168.1.101) but I cannot browse the internet at all. I can only access internal pages including (***.yourhda.com). The only way I can get the device back on the internet is by getting it assigned a different IP address by the DHCP server. Windows devices still claim they have internet access even though no websites load which once again points to a DNS resolving issue possibly.
This isn't just related to a certain device, most devices on my network have had the problem including laptops, tablets and phones. The only device which hasn't had an issue yet is a tablet which stays connected to wifi constantly. Devices which get turned on and off regularly have all had issues. Any ideas?
EDIT:
So it seems that changing the IP address assigned to a device doesn't always cure the problem. For instance this morning my Ubuntu laptop once again could not load any external websites, only internal but I could ping google.co.uk, amazon.co.uk etc.. So i tried setting a static IP in the amahi dashboard for my laptop, restarting the DHCP server and resetting the wifi on my laptop and still no luck even though the IP address had definitely changed to the static IP I set. So this leads me to believe it is maybe blacklisting certain MAC addresses for a period of time for some reason. On the same laptop I could plug a network cable in (different MAC address) and it gets assigned a different IP by the DHCP server and I instantly have internet access back. Still puzzling me!
I have DHCP and DNS turned off on my router and use my server to do this which works fine for the most part. When a laptop/tablet/phone etc... connects it gets assigned an address and I can see the lease in the Amahi dashboard. Everything works fine on all devices, I can browse the web, internal network and short names all work fine (/hda etc...).
The problem is that after a few reconnects of the same device or after a couple of days, the device will connect ok and I will be able to browse the internal network and short names work fine, but I am unable to navigate to an external website (google.co.uk etc...).
When this happens other devices which are still connected have internet access no problem at all, only devices using certain IP addresses are affected and the only remedy is to force a different IP address to be assigned on disconnect/reconnect but this has to be done using brute force as by default the same IP gets assigned to a given MAC address.
This issue is really puzzling me but is very frustrating. I will try and give as much information as possible because I appreciate just by reading this it may be hard to understand the problem.
I have disabled the firewall in ubuntu (ufw disable) and all internal web apps/applications/networking/ssh etc... work fine all the time on all devices.
The HDA with it's static IP address has internet access all the time and I have had no issues on this side.
When a client loses internet browsing ability I can still ping an external website but cannot view it in a web browser (DNS issue?). As I previously said, all internal networking still works ("hda" resolves fine).
If it still isn't clear i'll give an example. I connect my phone to my wireless network on Monday and it gets an IP of 192.168.1.101 from my server's DHCP server. I can browse the web and internal network and all seems fine. Over the course of a couple of days I disable and enable wireless on the device several times and each time it gets assigned the same IP and can browse fine. On Tuesday evening I enable wifi on my phone and it gets assigned the same IP address (192.168.1.101) but I cannot browse the internet at all. I can only access internal pages including (***.yourhda.com). The only way I can get the device back on the internet is by getting it assigned a different IP address by the DHCP server. Windows devices still claim they have internet access even though no websites load which once again points to a DNS resolving issue possibly.
This isn't just related to a certain device, most devices on my network have had the problem including laptops, tablets and phones. The only device which hasn't had an issue yet is a tablet which stays connected to wifi constantly. Devices which get turned on and off regularly have all had issues. Any ideas?
EDIT:
So it seems that changing the IP address assigned to a device doesn't always cure the problem. For instance this morning my Ubuntu laptop once again could not load any external websites, only internal but I could ping google.co.uk, amazon.co.uk etc.. So i tried setting a static IP in the amahi dashboard for my laptop, restarting the DHCP server and resetting the wifi on my laptop and still no luck even though the IP address had definitely changed to the static IP I set. So this leads me to believe it is maybe blacklisting certain MAC addresses for a period of time for some reason. On the same laptop I could plug a network cable in (different MAC address) and it gets assigned a different IP by the DHCP server and I instantly have internet access back. Still puzzling me!