linuxdeploy icon indicating copy to clipboard operation
linuxdeploy copied to clipboard

Frequent network issues with Linux Deploy 1.5.2

Open gerroon opened this issue 9 years ago • 8 comments

Hi

I used the previous versions for a long time I do not remeber having loosing net connection after wifi state changes but with 1.5.2 it looks like the network services cant connect to outside of the internal network after the connection state changes. I can ping my router but nothing like yahoo.com/. For example "w3m yahoo.com" times out. It should because the android apps can access the sites at the same time without any issues.

This definetely creeped in after 1.5.1. It was very solid before.

gerroon avatar Sep 04 '15 04:09 gerroon

Try change DNS to 8.8.8.8.

meefik avatar Sep 04 '15 10:09 meefik

@meefik

Do you mean 8.8.8.8 in /etc/resolve.conf or soemwhere else?

2 issues

  • I prefer not to use Google dns or some other static dns server.
  • This has been working fine for a long time in my house network, outside, cafes, libraries etc. Has there been change in the code regarding this issue?

I am using CM kitkat

gerroon avatar Sep 04 '15 15:09 gerroon

I very much suggest using another DNS server. I don't know why you wouldn't want consistand dns results (or what you call static), because it solves the problems that you are having. I have comcast, and their DNS servers are flakey as hell, and sometimes won't resolve at all, but I can always ping IP's. I've switched to 8.8.8.8 on all of my systems, and have never had DNS downtime. That was my problem when I had install issues. You can just have the chroot use it if you prefer.

kdb424 avatar Sep 05 '15 13:09 kdb424

@kdb424

It is a matter of privacy issue, Google is already all over us. I do not need them to know every url I have intent to look at.

My device is rooted and I have no google apps on it, so I already try to limit Googles involment in my life. I block all google ips anyway(as much as possible).

gerroon avatar Sep 05 '15 16:09 gerroon

http://public-dns.tk Entire list of free DNS servers. I understand not wanting to be tracked. If it's a massive issue, then set up a server that encrypts dns requests. In the end, if you don't do this, you will be tracked by someone. Google, your ISP, ect. Having a "static DNS server" as you say will just allow you to choose. If you don't, it'll be your ISP tracking you, which is potentially worse, because they not only see DNS requests, but all data coming through also, which is even worse for security. If it's that big of a concern, please use dnscrypt as linked mixed with a VPN.

kdb424 avatar Sep 06 '15 00:09 kdb424

Same issue here only root user can use the network.

localhost:~$ ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
ping: sendto: Operation not permitted
localhost:~$ su
localhost:/home/android# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: seq=0 ttl=64 time=3.155 ms

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 3.155/3.155/3.155 ms
localhost:/home/android# id
uid=0(root) gid=0(root) groups=0(root),0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
localhost:/home/android# exit
localhost:~$ id
uid=60000(android) gid=60000(android) groups=1003(aid_graphics),1015(aid_sdcard_rw),3003(aid_inet),60000(android)
localhost:~$ 

ghost avatar Apr 02 '20 18:04 ghost

同样的问题这里只有 root 用户可以使用网络。

localhost:~$ ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
ping: sendto: Operation not permitted
localhost:~$ su
localhost:/home/android# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: seq=0 ttl=64 time=3.155 ms

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 3.155/3.155/3.155 ms
localhost:/home/android# id
uid=0(root) gid=0(root) groups=0(root),0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
localhost:/home/android# exit
localhost:~$ id
uid=60000(android) gid=60000(android) groups=1003(aid_graphics),1015(aid_sdcard_rw),3003(aid_inet),60000(android)
localhost:~$ 

run sudo usermod -a -G aid_inet <user_name>

lushangkan avatar May 22 '23 11:05 lushangkan

doesn't work

devimauz avatar Jul 21 '23 23:07 devimauz