Hello,
TLDR below!
So I bought a Lenovo Smart Clock, and I did the experiment as described here.
Everything is working as expected, except one little big detail.
I managed to install custom apps.
As described in the video, as this is an hack, I want to block the internet access on this device.
I have managed to this by blocking it in my router.
But as it is well known, when android devices cannot reach internet (when they can’t reach http://connectivitycheck.gstatic.com ), they present some weird behaviour.
In this device’s case, it displays the “no internet connection” despite being connected to my wifi and it also creates an open, unencrypted hotspot.
Both anoying and unsdesirable behaviour.
You can see this well described in the same video, from 38:06.
Cameron also presents a solution: keep it blocked off the internet AND use HAProxy to redirect this ping/keepalive test.
I have an homelab PC that I can use for this.
Through my research, and as I already had Proxmox and Pi-Hole installed, I started by redirecting the DNS in my Pi-Hole (it is my local DNS Server) to a simple HTTP server, to try to answer the 204.
But I got some weird behavior, captive portal like, whenever every device tried to connect to wifi.
And it didn’t solved my problem.
I installed a CentOS VM in Proxmox, so I installed HAProxy and created the configuration file as you can see in the video, at 44:36.
You can clearly see the text file.
I copied and pasted and it still doesn’t work.
in /etc/haproxy/haproxy.cfg this is what I inserted:
global
daemon
maxconn 1024defaults
log global
mode tcp
timeout connect 5s
timeout client 10s
timeout server 10sfrontend nonssl
bind *:80
option tcplog
mode tcp
default_backend nonsslbackend nonssl
mode tcp
balance roundrobin
server connectivitycheck connectivitycheck.gstatic.com:80 checkfrontend ssl
bind *:443
option tcplog
mode tcp
default_backend sslbackend ssl
mode tcp
balance roundrobin
option ssl-hello-chk
server connectivitycheck connectivitycheck.gstatic.com:443 check
I am sorry, it lost the indentation but I don’t know how to put it.
To sum it up:
-I have some intermediate network knowledge.
-I am completely conformatable of installing VMs, LXCs, docker containers, installing software, etc, you name it. As a resource point of view, I would prefer the solution in LXC or docker, and the VM being the latest.
-I am a completely newbiew in HAProxy and the concept of proxies in general, but I am willing to read, learn and test things out. I acknowledge there are some basic concepts of HAProxy I don’t know, but I don’t know where to start.
-I want the device to have LAN access, NO internet access and to be fooled into thinking it has internet access.
What I would really need was some kind of guide or tutorial so I can follow, test and troubleshoot.
And in the way, learn by doing things.
TLDR:
How can I pass the http://connectivitycheck.gstatic.com to a device in my LAN without internet access, so it is fooled into thinkking it has internet access?
Thank you very much everyone for your help in advance.
Can please SOMEONE HELP ME?