ish-app / ish

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

Ressources reachable from VPN are not reachable from the application... #227

Open mcnahum opened 5 years ago

mcnahum commented 5 years ago

when I mount a vpn to access work or home ressources I cannot reach them from the application.( even a simple nslookup) App like net analyzer can reach them.

My end goal is to run ldapsearch queries...

tbodt commented 5 years ago

Did you try using the IP address or the domain name of the internal resource? I don't know why using an IP address wouldn't work.

mthused commented 5 years ago

Just an additional data point- this exact thing (ldapsearch over VPN) is working for me on the current TestFlight release 40 with a Cisco AnyConnect VPN connection active on my iPad Pro.

My ldapsearch query works using the hostname (without domain) for the connection.

marksergeant commented 5 years ago

I see the same issue here when connected via VPN, versus when connected directly.

When I have another app (e.g. Termius / Blink) they’re able to route traffic across the VPN.

ISH on the other hand is unable to route across the VPN.

Typically I’d look to route / net stat but they’re not working due to lack of /proc entries

This is using a F5 VPN.

tbodt commented 5 years ago

@marksergeant To confirm, you're routing across the VPN using the remote IP address or the domain name? The DNS configuration management is questionable, but any IP addresses you use are passed directly through to the socket APIs, and I don't know of any reason that wouldn't route through the VPN.

mcnahum commented 5 years ago

I doubled check and for me IP/ FQDN same issue with iSH it's not crossing the VPN.

I'm using Pulse Secure on my side.

marksergeant commented 5 years ago

Confirmed, ping / ssh / traceroute all fail to VPN ips.

They work successfully to local IPs and internet IPs.

mthused commented 5 years ago

Still working as expected for me on the latest TestFlight release with Cisco AnyConnect mobile, so it looks as if it may be VPN client or configuration dependent? I can send/receive apparently anything to or from VPN internal hosts by IP or unqualified hostname or FQDN and it all works. VPN connection is active before opening Ish.

marksergeant commented 5 years ago

Ok, some further testing.

ISH open both prior to and post instantiating the VPN connection fails. Host / dig unfortunately crash ish, so can’t try anything more there.

Ping and mtr to the DNS server IP address actually works. Ping to the gateway shown in the VPN client doesn’t work within iSH.

The only thing I can think is it’s getting caught up having two default routes in play.

Whilst trying various things in iSH I can confirm Blink / Termius work as expected when sshing.

Let me know what else I can try to assist here, my standard troubleshooting is failing me without /proc or strace!

drpump commented 5 years ago

OpenVPN works fine for ssh, scp etc, although I've only used IPv4 addresses and not tested DNS.

iuryt commented 11 months ago

My institution uses Global Protect VPN server. I can access the remote machine with Remote Desktop RD Client, but can't access through iSH app (doesn't matter whether I use the IP or the DNS). Not sure how to proceed. Anyone knows how to solve this issue?