LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 12-05-2017, 05:29 AM   #1
Volcano
Member
 
Registered: Sep 2005
Posts: 225

Rep: Reputation: 15
Is it blocked by firewall ?


when I type this command in ubuntu 14
$ping archive.ubuntu.com

I get this ....
ping archive.ubuntu.com (91.189.88.152) 56(84) bytes of data.
and then it stucks there forever

what do we conclude from this ?

Can we say that its connected to internet ( since IP is resolved ) but firewall is blocking the ping ?

if not what can we conclude with this response ?
 
Old 12-05-2017, 06:09 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by Volcano View Post
when I type this command in ubuntu 14
$ping archive.ubuntu.com

I get this ....
ping archive.ubuntu.com (91.189.88.152) 56(84) bytes of data.
and then it stucks there forever

what do we conclude from this ?
That you can't ping that IP address.

Quote:
Originally Posted by Volcano View Post
Can we say that its connected to internet ( since IP is resolved ) but firewall is blocking the ping ?
There could be an entry in /etc/hosts, or your system could be using an internal resolver on your local network, so the fact that it's "resolving" doesn't mean that the system has internet connectivity.

Quote:
Originally Posted by Volcano View Post
if not what can we conclude with this response ?
We can conclude that you've not provided enough information to aid troubleshooting.
 
Old 12-05-2017, 06:38 AM   #3
Volcano
Member
 
Registered: Sep 2005
Posts: 225

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by TenTenths View Post
That you can't ping that IP address.

There could be an entry in /etc/hosts,
There is no entry with respect to this.

/etc/hosts attached
Attached Thumbnails
Click image for larger version

Name:	adminuser.PNG
Views:	20
Size:	4.8 KB
ID:	26477  

Last edited by Volcano; 12-05-2017 at 06:39 AM.
 
Old 12-05-2017, 06:41 AM   #4
Volcano
Member
 
Registered: Sep 2005
Posts: 225

Original Poster
Rep: Reputation: 15
Quote:
your system could be using an internal resolver on your local network
How to check this ?
 
Old 12-05-2017, 06:47 AM   #5
Volcano
Member
 
Registered: Sep 2005
Posts: 225

Original Poster
Rep: Reputation: 15
Summary:

I'm running a VMPlayer with ubuntu 14 server VM. ( Bridge Network ) under Host windows 10

Host windows 10 has internet connectivity.


However when I do $sudo apt-get update in ubuntu VM it does not update

It shows following messages in the console (attached)

my concern is I'm not able to understand whether the issue is with internet connectivity or firewall blocking
Attached Thumbnails
Click image for larger version

Name:	network-not-reachable.PNG
Views:	24
Size:	38.7 KB
ID:	26478  

Last edited by Volcano; 12-05-2017 at 06:49 AM.
 
Old 12-05-2017, 12:15 PM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Start by checking the OS network config, what is the distribution?
 
Old 12-05-2017, 12:32 PM   #7
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Try traceroute. Confirm you can ping 8.8.8.8 ok (or not).

My troubleshooting concept is to collect more 'data points'
(I/detectives call it clues/evidence), rather than stop at
"fw may be guilty, [simply] because ping found dead".

I'd try these web-research search keywords:
ping traceroute firewall troubleshooting tutorial

Last edited by !!!; 12-05-2017 at 12:48 PM.
 
Old 12-05-2017, 11:08 PM   #8
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Make sure the VM network is configured to bridged or nat. Try this command
Code:
$ ip addr
and check if the network adapter has an ip address.
 
Old 12-06-2017, 02:05 AM   #9
Volcano
Member
 
Registered: Sep 2005
Posts: 225

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by AwesomeMachine View Post
Make sure the VM network is configured to bridged or nat
.

Bridge

Quote:
and check if the network adapter has an ip address.
Yes. It has IP address.


What we can conclude from this ?

Last edited by Volcano; 12-06-2017 at 02:06 AM.
 
Old 12-06-2017, 08:14 AM   #10
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Try to ping the router or wap the host machine is connected to. What is the IP address BTW? You can also try
Code:
$ /sbin/iptables -L | grep ping
to check if ping is blocked in the firewall. The host might also be blocking the guest.
 
Old 12-06-2017, 12:22 PM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
try some other pings, both names and numerical IPs.
show us what they did.

fwiw, you have one entry in /etc/hosts that looks a little weird to me, and has the word ubuntu in it.
but i am not an expert.
 
Old 12-06-2017, 03:15 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Ubuntu installs dnsmasq as a DNS cache by default which is why you see the 127.0.1.1 in the hosts file. I would assume that the hostname is ubuntu. This could be the reason for it to resolve the IP address but hang on the output.

Did networking work at one time? If so do you remember if you made any changes or maybe an update caused your problems?
 
Old 12-07-2017, 01:14 AM   #13
Volcano
Member
 
Registered: Sep 2005
Posts: 225

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by AwesomeMachine View Post
You can also try
Code:
$ /sbin/iptables -L | grep ping
to check if ping is blocked in the firewall. The host might also be blocking the guest.
It gives

iptables v1.4.21: invalid rule number 'ping'
try iptables -h or iptables --help for more information

Quote:
What is the IP address BTW
$ifconfig

shows inet addr = 10.10.232.166

Last edited by Volcano; 12-07-2017 at 01:30 AM.
 
Old 12-07-2017, 01:32 AM   #14
Volcano
Member
 
Registered: Sep 2005
Posts: 225

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by michaelk View Post
Ubuntu installs dnsmasq as a DNS cache by default which is why you see the 127.0.1.1 in the hosts file. I would assume that the hostname is ubuntu. This could be the reason for it to resolve the IP address but hang on the output.

Did networking work at one time? If so do you remember if you made any changes or maybe an update caused your problems?
Its just freshly installed from ubuntu 14 AMD 64 bit ISO. No changes done
 
Old 12-07-2017, 03:35 AM   #15
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
traceroute 8.8.8.8

>"iptables v1.4.21: invalid rule number 'ping'"
I think you forgot the pipe, in the: ... | grep ping

Also, if you want to take the time,
it would be interesting to see whether same problem occurs
if using VirtualBox.org

@Other LQ'ers: fyi: the AttachedThumbnail in #5 shows ipv6 addresses
(which I don't think I've seen before, like this) but Idk ipv6 ...

Last edited by !!!; 12-07-2017 at 03:47 AM.
 
  


Reply



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
[SOLVED] Samba Blocked by Firewall PROBLEMCHYLD Slackware 42 10-17-2018 03:59 PM
is it blocked by the firewall if any? abd_bela Linux - Security 2 05-03-2017 08:36 AM
NFSv4 Being Blocked By Firewall dman777 Linux - Security 2 10-29-2011 11:58 PM
NFS blocked by the firewall Tom Douglas Linux - Software 2 06-29-2007 05:49 AM
Ping Blocked Across Firewall mehargags Linux - Networking 2 01-11-2004 02:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:46 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