Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-08-2013, 12:33 PM
|
#1
|
Member
Registered: Nov 2007
Location: South of France
Distribution: LinuxLite, Debian 8, MacPup, Suse, Fedora
Posts: 58
Rep:
|
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
|
|
|
08-08-2013, 01:35 PM
|
#2
|
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
|
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.
|
08-08-2013, 02:08 PM
|
#3
|
Member
Registered: Nov 2007
Location: South of France
Distribution: LinuxLite, Debian 8, MacPup, Suse, Fedora
Posts: 58
Original Poster
Rep:
|
Quote:
Originally Posted by camorri
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).
|
|
|
08-08-2013, 02:41 PM
|
#4
|
Moderator
Registered: Aug 2002
Posts: 26,347
|
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.
|
08-08-2013, 02:58 PM
|
#5
|
Member
Registered: Nov 2007
Location: South of France
Distribution: LinuxLite, Debian 8, MacPup, Suse, Fedora
Posts: 58
Original Poster
Rep:
|
Quote:
Originally Posted by michaelk
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".
|
|
|
08-08-2013, 03:14 PM
|
#6
|
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
|
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.
|
|
|
08-08-2013, 03:25 PM
|
#7
|
Moderator
Registered: Aug 2002
Posts: 26,347
|
base syntax is:
nameserver xxx.xxx.xxx.xxx
head is normally just a comment line.
|
|
1 members found this post helpful.
|
08-09-2013, 03:42 AM
|
#8
|
Member
Registered: Nov 2007
Location: South of France
Distribution: LinuxLite, Debian 8, MacPup, Suse, Fedora
Posts: 58
Original Poster
Rep:
|
Quote:
Originally Posted by camorri
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 to get the editor.
2. (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.
|
|
|
All times are GMT -5. The time now is 07:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|