LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-27-2015, 05:03 PM   #1
superbbrr
LQ Newbie
 
Registered: May 2015
Posts: 3

Rep: Reputation: Disabled
How was I able to connect, but ping didn't work?


So I needed to connect to a remote server to install some debian packages. I was trying to configure network settings to allow me access outside.

But my coworker said to just connect to his own laptop and I can access the packages that way.

So I setup in my /etc/hosts file, "132.21.23.45 packages.xyz.com"

My own IP is 10.x.x.x.

I tried to ping 132.21.23.45, but it didn't work.

Yet, sudo apt-get update worked and I was able to get some packages.

How does this work? Just by putting an IP address in /etc/hosts, I can't ping it, but I can connect and grab packages? So confused.
 
Old 05-27-2015, 05:29 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
I can't say with any certainty what was going on in your situation, but there's no reason his system has to respond to a ping. Pings could be blocked on his machine, so you'd never get a response even though other services are working just fine.
 
Old 05-27-2015, 07:23 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Ping is a poor choice to use as a test anymore. It is blocked by default for many reasons.

Last edited by jefro; 05-28-2015 at 02:57 PM.
 
Old 05-27-2015, 09:37 PM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
To avoid DDOS attack ping is usually blocked. You may try traceroute instead. Or plain http download (if setup).
 
Old 05-27-2015, 09:46 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
This article might tell you more: http://www.linuxhowtos.org/Security/disable_ping.htm

A search for "block ping" will turn up many more links. Some of them are useful.
 
  


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
ping to server does not work until i ping from the other direction. weird! jstilby Linux - Networking 1 10-26-2011 07:42 AM
limewire didn't connect hraposo Debian 2 12-05-2006 04:24 PM
it didn't automaticly connect, help! space_invader64 Linux - Networking 1 03-14-2006 09:26 PM
It didn't work :( DiscoBiscuit Mandriva 8 05-29-2004 08:22 PM
UPS cable didn't work. A cool work-around jlangelier LinuxQuestions.org Member Success Stories 1 07-18-2003 05:04 PM

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

All times are GMT -5. The time now is 03:18 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
Open Source Consulting | Domain Registration