Cannot connect to internet (Wireless nor Wired) after Hard Reset
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!
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.
There is less than 12 hours left to vote in the 2015 LinuxQuestions.org Members Choice Awards. Click here to go to the polls. Vote now and make sure your voice is heard!
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
a) what is the make and model number of your router, known as knuteson?
b) when you were connected to your xbox please describe the connections and settings that you had between xbox-ubuntuPC, and ubuntuPC-router and whether they were wired or wireless in each case,
c) have you tried resetting your router with either a soft boot (turn off/disconnect power) for a few seconds, or a hard boot (which restores factory settings and which requires that you know and/or remember your ISP username+password and the settings that were working,
d) have you and/or can you connect by wire to your router, if so does it work and /or connect you to the internet?
NB you don't have to be root or use sudo to run the ping command
1. Make and Model #: Westell VersaLink 327W.
NB: I also can't connect at my own house. Knuteson router is my cousins'. However, we do happen to have the same router make and model.
2. My setup consisted of my XBox wired via ethernet cable to my laptop, then my laptop wirelessly connecting to the internet. I used this script to setup my ubuntu settings to allow forwarding. I grabbed the commands off of a tutorial. The script should show how I'm assigning IPs and so forth. I can't exactly remember what the values were in my XBox settings, but they would be similar to what's shown below.
And this is a thread I made on Ubuntu forums. I was still having trouble after going through the tutorial. As you will see if you happen to read it, some IP was incorrect in my /etc/resolv.conf file. After changing it, it worked like a charm. http://ubuntuforums.org/showthread.p...ring+Laptop+as
The UbuntuForums thread also shows what my XBox network settings were.
@leopard - in post #10 his output of ifconfig -a showed a positive RX and TX bytes for wlan0, so the wireless is working - I do agree that the ping result in post #14 does show 100% package loss, so my immediate thought is that the router's IP address isn't 192.168.1.1, notwithstanding the fact that ifconfig -a shows an allocation by router dhcp of 192.168.1.40 for wlan0 Though I have never come across the'ping: sendmsg: Operation not permitted' message before, I guess I shall have to do some googling to improve my knowledge
Admittedly I have not read the entirety of every post in this thread, but wanted to say that "ping: sendmsg: Operation not permitted" tends to appear when there is a firewall in place that's blocking ICMP traffic. Sure there are probably other reasons this might happen too, but, these are the circumstances when I am familiar with seeing this message on my machine.
Right, we are getting closer since you are now associated (incidentally, you can drop the 'commit' command on the end of the "# iwconfig wlan0 ap 00:12:0E:85:F8:F8" command, since your card doesn't appear to like it - read the 'man iwconfig' page to learn what it does).
Following GrapefruiTgirl's post and my googling, I would suggest that you edit your iptables file --- put '#' in front of each and every line and save the file (this is known in the trade as 'commenting out' the 'script' contained in a file, and it has the added advantage that you can remove the #'s later if you want to connect your xbox again. Once you have done this you should be able to 'ping 192.168.1.1' --- you don't need to be root to ping, also you should be able to connect to http://192.168.1.1 in your browser --- it should come up with a log-in page for your cousin's router. No need to proceed further, if your wifi connection is working, you should now have internet access, so try http://www.google.com and proceed immediately to http://linuxquestions.org and report back here immediately.
Once you are back connected to the net, we can work on making you connection permanent each time you boot into ubuntu.
After having commented out the lines in the iptables firewall script, you will want to either RESTART the iptables firewall service, or do the following:
shell# cat iptables | iptables-restore -c
so that the new rules (which are actually NO rules) will be in play. Note, I assume your iptables script is called "iptables", but if it has a different name, replace the filename "iptables" in my above command.
Sorry for the late responding. I don't have internet at my house period, so I've been forced to rely on my cousins', my grandma's, my dad's. Phew. So, I'm going to boot Ubuntu and report back in a few!
Well...I failed to realize this in my earlier excitement, but where on earth is Carmen Sandiego. Err, I mean iptables? I'm currently googling this, but if anyone knows the sweet and short answer, I'd be much obliged.
Thanks in advance
Edit 2: Well I'm dead tired. I found this thread somewhere that said there isn't really a default iptables config file, but then I'm not really sure what you're asking me to open and edit. Here's that thread I was talking about: http://www.linuxquestions.org/questi...g-file-584024/
Anyways, I'm off to sleep. G'night and thanks again.
Since you, apparently - according to your post #18, used a script to set up your iptables settings for your xbox -> eth0 and wlan0 -> router I would suggest that you ensure that this script is not running. While I am only guessing, the script in question is probably in your /etc/init.d/ directory - but I may be wrong and you will have to rely on your memory, as in those tiny grey cells between your ears, and remove it to somewhere you can find it again; so that it is available if and when you want to reconnect your xbox. You will then have to reboot your laptop, so that we can be sure that these iptables (firewall) are not blocking your wireless connection to your 'knuteson' router.
You should then be able to: ping 192.168.1.1
You may have to run the commands suggested in my post #19 (dropping the 'commit' command that your box doesn't seem to like and/or need.
From the output of lsmod in your post #3 you have a number of iptables modules loading and whilst I don't know nuffink about iptables other than that which I have read in 'man iptables' I suspect that ipt_LOG might have something to do with the creation of a log file in /var/log/ perhaps you can look here and see when it was last created and/or modified which should indicate if iptables are running each time you boot. If so you will have to find a way of stopping it from blocking your internet access.