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

UFW blocks ICMPv6 type 133 router-solicitation Kubernetes cluster

In our kubernetes cluster, requests on worker nodes to and from cni0 are blocked by UFW. UFW log: [1422854.977853] [UFW BLOCK] IN=cni0 OUT=cni0 PHYSIN=vethe715bd6d PHYSOUT=vetha18e0dfb MAC=33:33:00:00:00:02:9e:f5:29:98:19:e8:86:dd…
1
vote
1 answer

ICMP in C#, SocketException - Forbidden by access permissions

I'm trying to get the ICMP code found here to work. However on this line: Socket = new System.Net.Sockets.Socket(System.Net.Sockets.AddressFamily.InterNetwork, System.Net.Sockets.SocketType.Raw, …
Hannes Landeholm
  • 1,525
  • 2
  • 17
  • 32
1
vote
1 answer

Scapy change packet length

I try change ICMP packet length on 1 byte from Scapy. But I still see 100 bytes sent in the traffic. Yes, I want send 100 bytes and see packet length 1 byte in traffic dump. What options need use? or it is impossible? >>> data = 'A'*100 >>> packet =…
Dion
  • 13
  • 2
1
vote
0 answers

Raw socket missing replies with parallel ICMP requests

"Missing" in the sense of couldn't capture or nowhere to be found. I am writing a program that sends parallel ICMP ping requests then reads and processes the replies. But I stumbled across a missing reply problem as the parallel requests increase in…
Rockybilly
  • 2,938
  • 1
  • 13
  • 38
1
vote
1 answer

How to print icmp packet (including all headers) in hex from istream in boost-asio example

I am trying to modify the ICMP boost_asio implementation to print ICMP response and request packets. In the example code I am trying to print the response/reply buffer using below code: void StartReceive() { …
1
vote
2 answers

How do I implement Traceroute using UDP?

Apparently ICMP isn't the only way to create a Traceroute. This and this answer indicates it's possible to send a UDP packet (or any other) with a low TTL and wait for the ICMP message. How would I go about implementing this in C#? …
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
1
vote
1 answer

ICMP Golang with raw socket, control message has nil value

I'm playing around with the ICMP raw socket of Golang. I'd like to read the TTL which is part the control message returned by ReadFrom(buffer). Weirdly this value is always nil, is there something I'm missing. Please find below my playground…
raphael
  • 93
  • 8
1
vote
0 answers

Scapy sending ICMP packet only sometimes returns a warning

I made a python code like nslookup but sometimes when I run it it returns the following warning: WARNING: Mac address to reach destination not found. Using broadcast. I don't know why it happens only sometimes and not all the time. from scapy.all…
1
vote
0 answers

How can I get packet loss information from python mininet pings?

Using the Python Mininet API, I'm sending a single ping. ploss = net.ping(hosts=[node1, node2]) This prints to the console the results of packets lost/received: h1 -> h2 h2 -> h1 *** Results: 0% dropped (2/2 received) However, nothing is…
DrZoidberg
  • 21
  • 3
1
vote
1 answer

SendPingAsync Timeouts on WSL

I want to send Pings at a high interval at some sites, so I've created a simple C# Console App to do so: while (true) { var start = DateTimeOffset.Now.ToUnixTimeMilliseconds(); var pingTask = Task.Run(async () => { try …
Ringil
  • 6,277
  • 2
  • 23
  • 37
1
vote
2 answers

What happens if the SEQ Number in the ARP protocol Packet is more than 65536?

According to the documentation, the length of the SEQ Number is 16 bits...65536; so, what will happen if I sent a 65536 ICMP Request (Ping)...?
ahmed deeb
  • 19
  • 5
1
vote
1 answer

How to check if UDP port is open? (python)

I am trying to write a port scanner with python and there is an issue with UDP ports. Google says that I have to send some request and either recieve TimeoutError, meaning server got the message via the port and the port is opened, or recieve ICMP…
1
vote
1 answer

GCP VM in same region not able to Ping Internal HTTPS Load Balancer IP created with GKE internal LB ingress

I have a GKE cluster deployed with version 1.20.10-gke.1600. I have created the internal ingress with GCE and I got the internal ip assigned to my internal ingress. However, I am not able to ping to this internal ingress IP from the VM in same…
1
vote
0 answers

Icmp ping with Asio on macOS: Operation not permitted

I successfully ported the Asio Pinger example https://think-async.com/Asio/asio-1.20.0/src/examples/cpp03/icmp/ping.cpp to work without Boost at all. The example works perfectly, but running the app as root on macOS. As suggested here and here, I…
JohnnyParafango
  • 316
  • 2
  • 11
1
vote
0 answers

Scapy - packet forging issues

The problems: ICMP: how to fix this warning: [ Expert Info (Warning/Sequence): No response seen to ICMP request] SNMP: how to fix these warnings: [Expert Info (Warning/Malformed): BER Error: Wrong field in SEQUENCE: expected class:UNIVERSAL(0)…
user16607424