Successful wireless connection but no internet access
After upgrading my laptop to Slackware 14.0 64-bit, I have successfully used networkmanager to establish a connection to my wireless network.
The problem is that I can't access any internet sites - whether from a web browser or a email client. When I use the "ping" command I get a "sendmsg: permission denied" response - even as root. There is no problem when I use Slacko-puppy which is also installed on the laptop. |
Is that the exact error message you are getting? I ask because I know a firewall rule blocking ICMP requests will result in the following:
Code:
ping: sendmsg: Operation not permitted If you really are getting "permission denied" it may not be a firewall rule, but you may want to look at something else you may be running on your system that could have a similar effect. |
You are correct. It is "Operation not permitted".
Since ping fails on both ethernet or wireless, that is definitely a firewall rule (another problem for another day). When connected via ethernet, I have no problem accessing the internet. On wireless, I can't. The only other unusual thing is that when I click on the networkmanager icon in the task bar, it shows a small (locked) padlock near the wireless symbol opposite the wireless name. |
Do you know for sure if you have any firewall rules in place? I'd hate to have you chasing down non-existent problems. By default Slackware has no netfilter configuration, allowing all connections. If you are unsure, as root run the following from the command line:
Code:
iptables -L -n As for the lock icon show by NetworkManager, the GTK+ applet (used by XFCE, for example) shows a lock for secured connections. That is normal. |
Although I don't see any clues here, this is the output from "iptables -L -n":
Code:
Chain INPUT (policy DROP) |
Is your wireless connection static or via dhcp?
Can you post the output of: # route -n cheers, |
Are you loading both rc.networkmanager and rc.wicd in /etc/rc.d/ ?
If so, delete or rename rc.wicd and try again. Just a thought. |
Quote:
For the time being it may be easier to flush your rule set and set the policies of INPUT, OUTPUT, and FORWARD to ACCEPT (in other words, return netfilter to its default state of allowing all traffic). If you can then access remote hosts when using your wireless interface you know the problem lies somewhere in your firewall script. |
NOW I am making some progress. When I temporarily disabled the firewall, internet access was enabled.
I originally generated the rc.firewall in Jan 2011 from Alien Bob's easy firewall generator which is available at http://connie.slackware.com/~alien/efg/. This generator has not been updated since 05/11/2005 so other users using this generator will have the same problem. The output from iptables -L -n -v mentions "eth0" a number of times but not "wlan0". The relevant section of rc.firewall seems to be as follows: Code:
# Internet Interface |
Quote:
|
I think I solved it!
The help screen for the interface in Alien Bob's firewall generator states: Quote:
Code:
# Internet Interface |
Quote:
|
Quote:
Code:
# Start wicd or networkmanager: |
Yes, I'm well aware of that as I use to edit it manually before it was included as the default configuration.
|
I am guessing that you think I might have messed up the rc.M file (or that I had included the startup commands in rc.local without realizing that it is now in rc.M).
Otherwise, it appears that you asked a question that you already knew the answer to. |
All times are GMT -5. The time now is 10:58 PM. |