Open timespace314 opened 3 months ago
Is it possible to just not reply at all?
Unsure, but I'll take a look.
Are fake ICMP echo reply really necessary?
Some reply is needed by the API (or at least as I remember it).
So, these fake ICMP Echo reply from network engine is breaking DHCP association as it makes all host available.
Does Rethink reply with "fake ICMP" packets - and if so, why? Would be curious to get more information.
Possibly related: ping
and nmap
with Termux are basically useless, as they report all hosts being up/online:
$ ping 192.168.1.200 # there is no running host here
PING 192.168.1.200
64 bytes from 192.168.1.200: icmp_seq=1 ttl=64 time=13.6ms
...
nmap -sn 192.168.1.0/24
Nmap scan report for 192.168.1.1
Host is up.
...
Nmap scan report for 192.168.1.200
Host is up.
...
Environment: Using Rethink v0.5.5n
in VPN lockdown mode. Disabling VPN lockdown mode will change to expected network monitoring behavior.
Does Rethink reply with "fake ICMP" packets - and if so, why?
It should not, but our ICMP (echo) handling is currently totally broken, that's why.
Disabling VPN lockdown mode will change to expected network monitoring behavior.
Strange. It in fact should not change behaviour with respect to ICMP Echo?
Strange. It in fact should not change behaviour with respect to ICMP Echo?
Ah, you're right. I probably forgot to re-enable Rethink at one test step, after having disabled VPN lockdown mode before. Hence my perception is, Rethink always disturbs output of ICMP-related commands like ping
and nmap
independent of lockdown mode choice.
It should not, but our ICMP (echo) handling is currently totally broken, that's why.
Honest statement :-), appreciated. At least we know, what is the cause now and what is to be improved.
With Block when source app is unknown -> on ICMP echo request are still replied.
I guess these are fake replies from netstack cuz I dont see any ICMP packet while running tcpdump on router. During connection establishment between two android phone using WIFI Direct (p2p), android seems to ping all host in DHCP range to check for ip availability. udp port 67-68 are using different route table I believe. So, only ICMP are captured by rethink tunnel which is fine.
Rethink logcat pcap capture.txt
So, these fake ICMP Echo reply from network engine is breaking DHCP association as it makes all host available. As, it cannot get any ip address WIFI Direct disconnects and makes it completely unusable.
dnsmasq fails with
no address available
.Is it possible to just not reply at all ? Are fake ICMP echo reply really necessary ?