-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Traceroute and ping doesn't properly work #450
Comments
Thanks for the bug report. We don't support That said, I don't have a clue as to what could be the issue here. Until such a time I have access to a rooted Android which can run Termux (presumably Android 9 and below, only?), I doubt I'd be able to get to bottom of this. |
It also happens if you su to another UID |
So, |
|
Ping doesn't actually work for me. @Uldiniad, you should double check with IPs from across the globe, I tested the Russian DNS server 195.88.154.11 from Canada. |
Oh, ICMP remains untouched. I guess the dependency's (tun2socks) default behaviour is to fake reply unhandled ICMP? ICMP support is being worked upon in a new branch by another volunteer with tun2socks replaced with gvisor/netstack. Likely one or two months away from making it in the app itself: celzero/firestack#3 |
We've integrated gvisor/netstack (available since the |
@Lordcorvin1 I think you may just have helped us debug connectivity issues we see relating to IPv6... some clients (usually Meta/Facebook apps) think there's v6 Internet, even when there isn't. May be, our incorrect ICMP[v6] handling is at fault. |
@Lordcorvin1 do you know if |
@missingcharacter Not sure, is there a way to find out? The file does exist and has Google DNS set there, 8.8.8.8 and 8.8.4.4 Edit: According to the internet it does but if you know a way to check for sure let me know. I have root access. |
@Lordcorvin1 I believe I tested on my own phone without root, using Install
|
Seems so, but I get no previous entries like you do, one line result for me
Tried sudo as well, same result. |
@Lordcorvin1, maybe the libraries and other file names do not contain the word ' |
I'm seeing this part too, on an unrooted Android 13 device:
(I can split this into a separate issue if you'd prefer, since it doesn't seem to be related to the ping/ICMP issues. I didn't start one yet because I wasn't sure if it would be a duplicate, since that was mentioned above.) DetailsIf I have Rethink on, then almost any conceivable TCP connection that isn't blocked will 'succeed', even if it shouldn't. The only exception seems to be loopback addresses ( $ nc -v 192.0.2.1 80
Connection to 192.0.2.1 80 port [tcp/http] succeeded!
[nc hangs here until I Ctrl-C it] When Rethink is paused or stopped, the same command hangs without any output. I get similar results trying to connect to a valid address on a port it's not listening on. Through Rethink, it does the same thing as above. Without Rethink: $ nc -v some-server.example 12345
nc: connect to some-server.example (198.51.100.42) port 12345 (tcp) failed: Connection refused
$ This part doesn't look like an ICMP thing - it's almost like some part of the firewall (netstack?) is spoofing the SYN/ACK part of the TCP handshake for some reason. |
Yeah, SYN/ACK are spoofed (as an optimization), and if there's no route, then a RST must be sent. Or so, I think. See also: tailscale/tailscale#9480 |
We've implement a reconstructed ICMPv4 echo (over UDP) in For ICMPv6, unfortunately something is broken in the network engine we use (gVisor/netstack); it doesn't forward any v6 echo packets (like it does for v4). Unsure why. |
On rooted device, Android 8.1
When Firewall is on, every IP in termux and network mapper respond on every port.
When only DNS is active, no pinging can be done.
When RethinkDNS is turned off the ping functions as needed.
This also crashes RethinkDNS if you attempt to network scan a single IP as the log fills up so quickly the Firewall can't keep up. This is probably related to issue #343
Pic attached of the ping attempts with various settings, the correct ping is over 10ms
Traceroute fails entirely while RethinkDNS is active. Either no reply if firewall active or send failed if only DNS is active.
The text was updated successfully, but these errors were encountered: