Questions tagged [icmp]

Internet Control Message Protocol, designed for control and diagnostic messages. Used by common diagnostic tools like ping or traceroute.

583 questions
1
vote
0 answers

Wrong icmp cksum with go

Now I'm wrinting an ICMP message. When I send the icmp to 114.114.114.114, it said wrong icmp cksum. However, I send the same icmp to github, it was success. There is my code to calculate the checksum. // CheckSum calculate the CheckSum of icmp func…
YiXuan QIN
  • 11
  • 1
1
vote
0 answers

Ping to Floating IP of an OpenStack instance answers with Request timeout for icmp_seq

I am new to OpenStack and the whole cloud-world, also I don't have any experience in setting up a server via terminal. (So please write a beginner-friendly answer :D) I did the following steps: I have setup OpenStack on an VM with Ubuntu 18. I made…
1
vote
2 answers

How many simultaneous outgoing sockets a linux box can open

I was wondering how many simultaneous sockets a linux box can open for TCP, UDP and ICMP communications in IPv4 and IPv6. While there are several replies about handling incoming (mainly TCP) connections, I didn't see a clear statement about…
mszmurlo
  • 1,250
  • 1
  • 13
  • 28
1
vote
0 answers

How to import a custom AWS rule

I'm trying to import a rule that looks like this in AWS: enter image description here I tried a command like this but it fails: terraform import aws_security_group_rule.ke_ingress_icmp sg-0af205c29967e5084_ingress_icmp_-1_-1_0.0.0.0/0 …
bliq00
  • 11
  • 1
1
vote
1 answer

What do the 3 ICMP phases in Prometheus' blackbox exporter mean?

There are 3 phases of ICMP in Prometheus while we are probing data via BlackBox exporter. resolve rtt setup What is the purpose of each of these phases? Here is an example dataset: probe_icmp_duration_seconds{phase="resolve"}…
1
vote
0 answers

Received IP packet header is different from wireshark

I'm trying to recode ping command in C as educational purpose. The ICMP sending seems OK (I compared it to original ping on wireshark) but on IP packet reception I have the following problem: The 16 bits of total length in IP header are different…
Alex
  • 11
  • 2
1
vote
1 answer

ICMP packet sniffing not receiving any data (Black Hat Python Book)

I came across this code snippet from the book, Black hat Python, Chapter 3. The Network: Raw Sockets and Sniffing : import socket import os host = "x.x.x.x" # Host to listen on # Create a raw socket and bind it to the public interface if…
Roshin Raphel
  • 2,612
  • 4
  • 22
  • 40
1
vote
1 answer

How to get ICMP port unreachable packet on UDP socket on Windows

I have an application that uses sendto() with UDP to check resources on different ports. How can I get the ICMP port unreachable packet using recvfrom()? My recvfrom() is like this: SOCKADDR_STORAGE saFrom; int nFromLen = sizeof( SOCKADDR_STORAGE…
user775614
  • 237
  • 3
  • 7
1
vote
1 answer

Speedtouch st780i is blocking ICMP

I'm working on a tool in VB to make ping tests, but some speedtouch 780i routers are blocking ICMP. I try it out myself on a speedtouch router. I telnet and disable the firewall and intrusion detection, but still the ICMP is blocked. The actual…
Howard
  • 11
  • 1
1
vote
1 answer

`Socket error: Operation not permitted` with Linux socket

I am trying to write an ICMP ping program in C++ but I am getting following error with socket(): Socket error: Operation not permitted The code snippet is: sockfd = socket( AF_INET, SOCK_RAW, IPPROTO_IP ); if ( sockfd == -1 ) { cerr << '\n' <<…
bitm
  • 11
  • 3
1
vote
2 answers

Getting an invalid connection error while trying to make echo requests

I am using go for creating a command-line app that tries pings a given host/IP address. I have used the following code in the main function and made the necessary imports/variable declarations outside. package main import ( "flag" "fmt" …
Jitesh Malipeddi
  • 2,150
  • 3
  • 17
  • 37
1
vote
0 answers

icmp.ListenPacket("udp4", "127.0.0.1") return permission denied

In https://godoc.org/golang.org/x/net/icmp#ListenPacket documentation, it mentions: For non-privileged datagram-oriented ICMP endpoints, network must be "udp4" or "udp6". The endpoint allows to read, write a few limited ICMP messages such as…
1
vote
0 answers

Check if UDP port is open with ICMP in C

I am trying to check if a specific UDP port is open or not. I am trying to do this by sending UDP packets and checking the ICMP response to see if the UDP port is avaiable or not. What am I doing wrong? #include #include…
Java Diva
  • 13
  • 3
1
vote
0 answers

"react-native-lanscan" throws an exception ! undefined is not an object(evaluating 'this.RNLAN_Scan.scan')?

To perform icmp broadcast in my react-native mobile app, I use react-native-lanscan package. import { LANScan } from 'react-native-lanscan'; . . var lanscan = new LANScan(); . . pingBroadcaster = () => { console.log("Lanscan started!"); …
1
vote
1 answer

Golang ICMP Packet Sending

I am currently working on a Go based router for educational purposes. When attempting to serialize an ICMP packet that I am forwarding from a host it appears that the .SerializeTo function of the gopacket.ICMPv4 struct is stripping the ICMP payload…