LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-08-2013, 12:33 PM   #1
frank4360
Member
 
Registered: Nov 2007
Location: South of France
Distribution: LinuxLite, Debian 8, MacPup, Suse, Fedora
Posts: 58

Rep: Reputation: 16
xubuntu not connecting to internet after removing firewall


Hello

I have just set up a Wifi LAN using ssh to connect a xubuntu system to a LinuxLite netbook.

I use an Orange Livebox 2 as the ADSL router for internet connection.

I set up both machines and the router with static IP addresses, but I also activated the ufw firewall on both computers. ssh works fine to connect the two systems, but no internet connection (typically Firefox and Thunderbird).

So I thought that it was unnecessary to have a firewall at all and I disabled the firewall and "ufw status verbose" shows "inactive". Still no internet connection.


Is it possible that some files and settings might still be causing the problem?

Any ideas gratefully accepted
 
Old 08-08-2013, 01:35 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,321

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Have you got a default route set?

To find out, open a terminal, and run the command 'netstat -r' ( without the quotes ). You should see something like this:

Code:
netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
default         cisco           0.0.0.0         UG        0 0          0 eth0
loopback        *               255.0.0.0       U         0 0          0 lo
192.168.1.0     *               255.255.255.0   U         0 0          0 eth0
You should see the 'default' line. If it is not there, you need to set it up to point to the routers IP address.

Can you ping the router?
 
1 members found this post helpful.
Old 08-08-2013, 02:08 PM   #3
frank4360
Member
 
Registered: Nov 2007
Location: South of France
Distribution: LinuxLite, Debian 8, MacPup, Suse, Fedora
Posts: 58

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by camorri View Post
Have you got a default route set?

To find out, open a terminal, and run the command 'netstat -r' ( without the quotes ). You should see something like this:

Code:
netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
default         cisco           0.0.0.0         UG        0 0          0 eth0
loopback        *               255.0.0.0       U         0 0          0 lo
192.168.1.0     *               255.255.255.0   U         0 0          0 eth0
You should see the 'default' line. If it is not there, you need to set it up to point to the routers IP address.

Can you ping the router?
Yes,the default route is the same as your example, except the Gateway is "192.168.1.1" and the Iface is "wlan0".

Pinging the router is fine; also the router shows the connected systems, and ssh works fine between the two problem systems (provided the router is on and the Wifi is working).
 
Old 08-08-2013, 02:41 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,347

Rep: Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146
If you can ping 74.125.228.52 (google.com) and can access their website using the same IP i.e. http://74.125.228.52 then since your using static IPs the resolv.conf file may not contain any name servers.
 
1 members found this post helpful.
Old 08-08-2013, 02:58 PM   #5
frank4360
Member
 
Registered: Nov 2007
Location: South of France
Distribution: LinuxLite, Debian 8, MacPup, Suse, Fedora
Posts: 58

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by michaelk View Post
If you can ping 74.125.228.52 (google.com) and can access their website using the same IP i.e. http://74.125.228.52 then since your using static IPs the resolv.conf file may not contain any name servers.
Yes - the ping and the connect to the IP address for google both work; so you have the answer!

But what can I do to add "name servers" to the resolv.conf file? By the way, on xubuntu /etc/resolvconf/resolv.conf.d contains two files, "base" and "head".
 
Old 08-08-2013, 03:14 PM   #6
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,321

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Edit the file /etc/resolv.conf and add the nameservers IP addresses. The entries will look like this:

Quote:
cat /etc/resolv.conf
nameserver 208.67.222.222
nameserver 208.67.220.220
nameserver 8.8.8.8
nameserver 8.8.4.4
You need to change the IP addresses to the IP addresses supplied by your ISP. The first two I listed are for my ISP. The next two are google name servers. If you do not know the IP's for your ISP, then try the last two. They should work, but may not be as fast as your ISP's name servers. Let us know.
 
Old 08-08-2013, 03:25 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,347

Rep: Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146
base syntax is:
nameserver xxx.xxx.xxx.xxx

head is normally just a comment line.
 
1 members found this post helpful.
Old 08-09-2013, 03:42 AM   #8
frank4360
Member
 
Registered: Nov 2007
Location: South of France
Distribution: LinuxLite, Debian 8, MacPup, Suse, Fedora
Posts: 58

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by camorri View Post
Edit the file /etc/resolv.conf and add the nameservers IP addresses. The entries will look like this:



You need to change the IP addresses to the IP addresses supplied by your ISP. The first two I listed are for my ISP. The next two are google name servers. If you do not know the IP's for your ISP, then try the last two. They should work, but may not be as fast as your ISP's name servers. Let us know.
Thanks for all the help.

In xubuntu (and presumably all Ubuntu flavours) there is a warning not to directly update the /etc/resolv.conf file, so I did the following:-

1. Added
Code:
nameserver 8.8.8.8
nameserver 8.8.4.4
to /etc/resolvconf/resolv.conf.d/base
You need to be root to do this; in my case
Code:
sudo leafpad
to get the editor.

2.
Code:
sudo resolvconf -u
(to update the required file)

This gave me internet connectivity, and so I looked up the DNS nameserver for my ISP (Orange France) at web site "who.is/dns/orange.fr/". I then did steps 1 & 2 again to add the nameservers in the first 2 positions of the "base" file.


Thanks again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
removing system-config-firewall, and more corp769 Linux - Networking 8 01-18-2010 05:56 PM
[SOLVED] No IP address when connecting wirelessly through Xubuntu youngaa Linux - Wireless Networking 11 12-03-2009 02:26 PM
Do I absolutely NEED antivirus or a firewall for xubuntu? JrBach21 Linux - General 5 01-27-2009 04:04 AM
Xubuntu/ndiswrapper only connecting to WPA WLANs with Linksys and 3com adaptors Lordandmaker Linux - Wireless Networking 0 03-26-2007 07:23 AM
Removing some packages will remove Xubuntu choey2k5 Ubuntu 2 09-12-2006 07:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration