LinuxQuestions.org
Help answer threads with 0 replies.
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, 06:29 AM   #1
Volcano
Member
 
Registered: Sep 2005
Posts: 184

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, 07:09 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,575

Rep: Reputation: 938Reputation: 938Reputation: 938Reputation: 938Reputation: 938Reputation: 938Reputation: 938Reputation: 938
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, 07:38 AM   #3
Volcano
Member
 
Registered: Sep 2005
Posts: 184

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:	12
Size:	4.8 KB
ID:	26477  

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

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, 07:47 AM   #5
Volcano
Member
 
Registered: Sep 2005
Posts: 184

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:	14
Size:	38.7 KB
ID:	26478  

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

Rep: Reputation: 420Reputation: 420Reputation: 420Reputation: 420Reputation: 420
Start by checking the OS network config, what is the distribution?
 
Old 12-05-2017, 01:32 PM   #7
!!!
Member
 
Registered: Jan 2017
Posts: 618

Rep: Reputation: 235Reputation: 235Reputation: 235
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 01:48 PM.
 
Old 12-06-2017, 12:08 AM   #8
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 3,276

Rep: Reputation: 587Reputation: 587Reputation: 587Reputation: 587Reputation: 587Reputation: 587
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, 03:05 AM   #9
Volcano
Member
 
Registered: Sep 2005
Posts: 184

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 03:06 AM.
 
Old 12-06-2017, 09:14 AM   #10
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 3,276

Rep: Reputation: 587Reputation: 587Reputation: 587Reputation: 587Reputation: 587Reputation: 587
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, 01:22 PM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 6,997
Blog Entries: 4

Rep: Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683
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, 04:15 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,430

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
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, 02:14 AM   #13
Volcano
Member
 
Registered: Sep 2005
Posts: 184

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 02:30 AM.
 
Old 12-07-2017, 02:32 AM   #14
Volcano
Member
 
Registered: Sep 2005
Posts: 184

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, 04:35 AM   #15
!!!
Member
 
Registered: Jan 2017
Posts: 618

Rep: Reputation: 235Reputation: 235Reputation: 235
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 04:47 AM.
 
  


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
Samba Blocked by Firewall PROBLEMCHYLD Slackware 37 05-21-2017 06:44 PM
is it blocked by the firewall if any? abd_bela Linux - Security 2 05-03-2017 09:36 AM
NFSv4 Being Blocked By Firewall dman777 Linux - Security 2 10-30-2011 12:58 AM
NFS blocked by the firewall Tom Douglas Linux - Software 2 06-29-2007 06:49 AM
Ping Blocked Across Firewall mehargags Linux - Networking 2 01-11-2004 03:15 PM

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

All times are GMT -5. The time now is 07:38 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration