LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Ping Question (https://www.linuxquestions.org/questions/linux-security-4/ping-question-4175604193/)

kudsu 04-19-2017 02:57 PM

Ping Question
 
If the Internet companies were able to ping internet users before they sent packets to a connection. If they didn't get a hit they would just drop the call. Wouldn't it greatly improve security? I know in Russia they block all udp.

sundialsvcs 04-19-2017 05:18 PM

Usually there is no need to do such a thing. Most connections use TCP/IP "sockets" which are bi-directional and persistent. Once the socket has been established, there's no further verification required before sending traffic through it.

"Russia" certainly does not "block all UDP," and even "the Great Firewall of China™" has holes in it.

None of this has anything to do with security. The only way to provide security for a TCP/IP or UDP connection is to encrypt the traffic.

"Ping" (ICMP ECHO ...) is simply a very lightweight way to see if an IP-address is occupied ... i-f the computer in question is programmed to respond to it.

ilesterg 04-20-2017 12:52 PM

Also because most internet users are behind a NAT, so the only info the "internet company" has is the socket which is on the tcp session.

kudsu 04-20-2017 03:59 PM

ok answer me this
 
Does the IP header contain the source address? In what protocal is it dropped?

ilesterg 04-22-2017 05:10 AM

Quote:

Originally Posted by kudsu (Post 5699908)
Does the IP header contain the source address? In what protocal is it dropped?

A simple "ipv4 header format" search will give that information.

kudsu 04-22-2017 09:59 AM

IP4 Header diagram
 
As we all know a ip4 header diagram contains both source and destination address. Ping only works on a valid ip address. If it is fake it doesn't go through. Ping may be trivial but it does work. A local switch could be programmed to ping all packets on arrival and drop any invalid? If this doesn't work how could it work?

ondoho 04-22-2017 12:21 PM

Quote:

Originally Posted by kudsu (Post 5700658)
As we all know

i didn't know that. please don't speak on my behalf.

kudsu 04-22-2017 12:55 PM

correction
 
Quote:

Originally Posted by ondoho (Post 5700695)
i didn't know that. please don't speak on my behalf.

Ondoho doesn't know about datagrams but some people do.

This still doesn't tell me why using ping wouldn't work.

Jjanel 04-23-2017 05:43 AM

Interesting 'study'. I'm guessing NAT is a key piece, where 'many' IP are 192.168.1.2
I was trying to come up with 'good' web-research keywords, but I hit this tangent via:
use ping to verify valid nat source IP bogus|spoof
Can anyone advise on a better web-research ...? Thanks!
p.s. packet filtering ? http://wpollock.com/AUnixSec/IptablesOverview.htm


All times are GMT -5. The time now is 02:17 AM.