ish-app / ish

Linux shell for iOS
https://ish.app
Other
16.79k stars 881 forks source link

traceroute and friends broken again #1810

Open whorfin opened 2 years ago

whorfin commented 2 years ago

While #206 calls out fixes to traceroute , I find that on the latest 1.2.4 (370) build from Testflight, things are still broken. mtr also fails IMG_1761

eutampieri commented 2 years ago

Me too

fegow commented 1 year ago

Same here.

vit9696 commented 1 year ago

@tbodt, @saagarjha, I can confirm the issue with the latest 1.3 (482) from the App Store. Is it known? Output:

# traceroute 1.1.1.1
traceroute to 1.1.1.1 (1.1.1.1), 30 hops max, 46 byte packets
 1traceroute: sendto: Socket is connected
wackybanbit commented 1 year ago

Same issue.

saagarjha commented 1 year ago

We’ve been tracking some networking bugs. This might be related to them?

kennymc-c commented 1 year ago

I can also confirm this issue with 1.3.2 (494)

scientificworld commented 1 year ago

Also met this.

StreetDebugger commented 11 months ago

Same here.

phaabe commented 9 months ago

localhost:~# traceroute www.google.com traceroute: setsockopt(IPV6_CHECKSUM): Invalid argument

this is my error

KusakabeShi commented 8 months ago

ios 17.2.1 with ish 1.3.2 installed from apple store, same issue

dlstyley commented 5 months ago

Same problem on iOS 17.3.1 and iSH 1.3.2

localhost:~# traceroute -v google.com
traceroute to google.com (142.251.116.139), 30 hops max, 46 byte packets
 1traceroute: sendto: Socket is connected
4np commented 5 months ago

Same here for a fresh iSH install (Alpine Linux 3.14.3 / BusyBox 1.33.1):

~ $ traceroute -v 1.1.1.1
traceroute to 1.1.1.1 (1.1.1.1), 30 hops max, 46 byte packets
 1traceroute: sendto: Socket is connected
~ $ traceroute --help
BusyBox v1.33.1 () multi-call binary.
...
~ $ cat /etc/os-release 
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.14.3
PRETTY_NAME="Alpine Linux v3.14"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
~ $ uname -a
Linux localhost 4.20.69-ish SUPER AWESOME May 20 2023 23:41:32 i686 Linux
~ $

An existing install that runs the latest app updates does work (Alpine Linux 3.12.0 / BusyBox 1.31.1):

localhost:~# traceroute -v 1.1.1.1
traceroute to 1.1.1.1 (1.1.1.1), 30 hops max, 38 byte packets
 1  *^C
localhost:~# traceroute --help
BusyBox v1.31.1 () multi-call binary.
...
localhost:~# cat /etc/os-release 
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.12.0
PRETTY_NAME="Alpine Linux v3.12"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
localhost:~# uname -a
Linux localhost 4.20.69-ish SUPER AWESOME May 20 2023 23:41:32 i686 Linux
localhost:~# 

I use traceroute to determine the default gateway in order to determine if I need to set up a tunnel or not. Other ways of determining the default gateway on a 'normal' linux installation (e.g. netstat -rn, ip route | grep default, etcetera) do not work. Using traceroute always did work, but now that appears to be broken as well.

traceroute -m 1 -q 1 -w 1 1.1.1.1|head -n 2|tail -n 1|awk '{print $2}'
AstroEngineeer commented 1 month ago

+1