icmptunnel icon indicating copy to clipboard operation
icmptunnel copied to clipboard

Ignore simple ping

Open unixfox opened this issue 9 years ago • 5 comments

If a machine ping me during the program is launched, icmptunnel crashed with this error:

root@debian:~/icmptunnel# ./icmptunnel -s 10.0.1.1 [DEBUG] Allocatating tunnel [DEBUG] Allocatating tunnel2[DEBUG] Created tunnel tun0 [DEBUG] Starting tunnel - Dest: 10.0.1.1, Server: 1 [DEBUG] Opening ICMP socket [DEBUG] Binding ICMP socket 0+1 records in 0+1 records out 2 bytes (2 B) copied, 9.6663e-05 s, 20.7 kB/s 0+1 records in 0+1 records out 2 bytes (2 B) copied, 7.4032e-05 s, 27.0 kB/s [DEBUG] Script ran successfully [DEBUG] Received ICMP packet [DEBUG] Read ICMP packet with src: 194.90.37.75, dest: 94.23.11.59, payload_size: 129, payload: E [DEBUG] Writing to tunnel [DEBUG] Src address being copied: 194.90.37.75 [DEBUG] Received ICMP packet [DEBUG] Read ICMP packet with src: 188.235.15.178, dest: 94.23.11.59, payload_size: 129, payload: Ep [DEBUG] Writing to tunnel [DEBUG] Src address being copied: 188.235.15.178 [DEBUG] Received ICMP packet [DEBUG] Read ICMP packet with src: 92.222.185.1, dest: 94.23.11.59, payload_size: 4, payload: ^ ; [DEBUG] Writing to tunnel Unable to write to tunnel : Invalid argument

unixfox avatar Nov 13 '15 16:11 unixfox

I was thinking of somehow making my ICMP packets unique. So that I could filter out my own packets.

DhavalKapil avatar Nov 13 '15 17:11 DhavalKapil

making my ICMP packets unique

What about starting the data wrapped in the ICMP packet with some magic bytes?

Say, b'ICMPTUN'?

giuscri avatar Dec 30 '15 10:12 giuscri

Yeah that's what I will have to do in the end. I'll work further on this after a month. Need to take care of a lot of things which will require proper designing.

DhavalKapil avatar Dec 30 '15 11:12 DhavalKapil

@DhavalKapil please dont add unique feature, in that case it will also be identified by those firewall maker. i think just fix the wrong data problem might be okay

yunfan avatar Apr 02 '19 10:04 yunfan

I have the same issue, any updates?

fkerem avatar Mar 14 '21 17:03 fkerem