Page 10 of 12

Re: Toon mobile access

Posted: Sat Dec 11, 2021 11:59 am
by Arnout2000
Nearly 3 weeks have passed and I cannot access Toon again.
After running the update script again and rebooting Toon, everything is fine.
Any idea what causes this?

Re: Toon mobile access

Posted: Mon Dec 20, 2021 9:54 am
by TheHogNL
Arnout2000 wrote:Nearly 3 weeks have passed and I cannot access Toon again.
After running the update script again and rebooting Toon, everything is fine.
Any idea what causes this?
Someone in your household pressing that 'lokale toegang' button on the toon?

Re: Toon mobile access

Posted: Mon Dec 20, 2021 10:19 am
by Arnout2000
No, members of my household surprisingly show no interest in pressing 'buttons' on Toon. They only watch the weather forecast and recently the P2000 notifications :lol:

Re: Toon mobile access

Posted: Sun Dec 26, 2021 11:30 am
by 4nuts
I don't see the mobile app on my toon 1 , it shows 38 app's in total on the ToonStore .
When I check github TSC the Mobile app is present.
Is there a reason that it it is not showing on the ToonStore ?

Re: Toon mobile access

Posted: Sun Dec 26, 2021 3:57 pm
by Toonz
Yes, because it is not an app but a website on your Toon itself.
You can access it via http://<ip adrress of your toon>/mobile

Re: Toon mobile access

Posted: Sun Dec 26, 2021 5:10 pm
by 4nuts
Toonz wrote:Yes, because it is not an app but a website on your Toon itself.
You can access it via http://<ip adrress of your toon>/mobile
Thanks for your reply , works great now !

Re: Toon mobile access

Posted: Wed Feb 23, 2022 1:15 pm
by witteherder
I still have a big problem with making contact with Toon2

I did put the right local ip address on my phone which is also connected with the same SSID Wifi

My phone is getting only this

"Even geduld"
Even geduld aub terwijl we proberen verbinding te maken met de Toon thermostaat.

I wanted to show a picture of the phone but the pixels are to low to upload.

I did check on the Toon 2 for the right ip address 192.168.2.15 local and port 80

Re: Toon mobile access

Posted: Sun Mar 20, 2022 7:14 pm
by Arnout2000
I keep having issues with getting access to Toon from my mobile.
It works ok for weeks or months and then alle of sudden I just cannot get access anymore.
I was away this weekend and tried to access Toon while using my VPN to my home. I can access all my other systems on my LAN, but not Toon.
Now, after returning home, I also cannot access Toon while being on my local network.
What command can I issue via Putty or what can I do to find the reason for Toon not being accessible?

Re: Toon mobile access

Posted: Sun Mar 20, 2022 10:41 pm
by oepi-loepi
Has your local ip been changed? Did you have a rest of your router and you have not fixed the ip adress in your router?

Re: Toon mobile access

Posted: Sun Mar 20, 2022 10:57 pm
by Arnout2000
Thanks for your suggestion, but via the DHCP binding option in my router I have reserved a fixed IP address for my Toon.

Re: Toon mobile access

Posted: Mon Mar 21, 2022 10:40 am
by Arnout2000
I can access Toon on its normal IP adress using Putty and I downloaded and ran the script again to refresh the firewall settings in Toon.
(sh /root/update-rooted.sh -f)
but unfortunately no effect. whatever I try, I just cannot access Toon via webbrowser anymmore. (In my case: http://192.168.2.24/mobile/#main)

Any other things I can try?

Re: Toon mobile access

Posted: Mon Mar 21, 2022 11:24 am
by oepi-loepi
Arnout2000 wrote:I can access Toon on its normal IP adress using Putty and I downloaded and ran the script again to refresh the firewall settings in Toon.
(sh /root/update-rooted.sh -f)
but unfortunately no effect. whatever I try, I just cannot access Toon via webbrowser anymore. (In my case: http://192.168.2.24/mobile/#main)

Any other things I can try?

do you get response to http://toon-ip-adres/happ_thermstat?act ... mostatInfo ?
lighttpd is running ? (/etc/init.d/lighttpd restart)
no changes made to /qmf/etc/lighttpd/lighttpd.conf ?
port 80 nog open in de iptables ?

Re: Toon mobile access

Posted: Mon Mar 21, 2022 11:30 am
by Arnout2000
oepi-loepi wrote: do you get response to http://toon-ip-adres/happ_thermstat?act ... mostatInfo ?
lighttpd is running ? (/etc/init.d/lighttpd restart)
no changes made to /qmf/etc/lighttpd/lighttpd.conf ?
port 80 nog open in de iptables ?

http://toon-ip-adres/happ_thermstat?act ... mostatInfo ?
This command times out, so nothing happens.

For the other questions:
lighttpd is running ? (/etc/init.d/lighttpd restart)
no changes made to /qmf/etc/lighttpd/lighttpd.conf ?
port 80 nog open in de iptables ?

I need some guidance please as I am not a software expert.
Which commands should I issue to find out the answers to these points?

Re: Toon mobile access

Posted: Mon Mar 21, 2022 7:21 pm
by oepi-loepi
Just checked..

At my toon if i do /HCBv2/etc/start.d/lighttpd restart it gives permission denied.. same at your toon?

You can try to restart your iptables : /etc/init.d/iptables restart

You can also check if port 80 is open: vi /etc/default/iptables.conf
there should be a line : -A HCB-INPUT -p tcp -m tcp --dport 80 --tcp-flags SYN,RST,ACK SYN -j ACCEPT



If nothing helps power down your toon and repower.

Re: Toon mobile access

Posted: Mon Mar 21, 2022 9:00 pm
by Arnout2000
oepi-loepi wrote:Just checked..

At my toon if i do /HCBv2/etc/start.d/lighttpd restart it gives permission denied.. same at your toon?
Yes, permission denied.


You can try to restart your iptables : /etc/init.d/iptables restart
Done!
Output: Flushing iptables: iptables ip6tables.
Loading iptables settings: iptables ip6tables.



Immediately after this, I can access my Toon again! Great!!



You can also check if port 80 is open: vi /etc/default/iptables.conf
Done!

Output:
##############################################################################
*nat
PREROUTING ACCEPT [0:0]
POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
##############################################################################
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:HCB-INPUT - [0:0]
-A INPUT -j HCB-INPUT
-A FORWARD -j HCB-INPUT
-A HCB-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# These are all closed for Quby/Toon:
-A HCB-INPUT -p tcp -m tcp --dport 22 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
-A HCB-INPUT -p tcp -m tcp --dport 80 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
-A HCB-INPUT -p tcp -m tcp --dport 443 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
-A HCB-INPUT -p tcp -m tcp --dport 5900 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
-A HCB-INPUT -p tcp -m tcp --dport 7080 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
-A HCB-INPUT -p tcp -m tcp --dport 10080 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
#-A HCB-INPUT -p udp -m udp --dport 137:138 -j ACCEPT
#-A HCB-INPUT -p udp -m udp --sport 67:68 --dport 67:68 -j ACCEPT
-A HCB-INPUT -i lo -j ACCEPT
-A HCB-INPUT -i tap+ -j ACCEPT
-A HCB-INPUT -i tun+ -j ACCEPT
-A HCB-INPUT -p tcp -m tcp --tcp-flags SYN,RST,ACK SYN -j DROP
-A HCB-INPUT -p udp -m udp -j DROP
COMMIT
##############################################################################



there should be a line : -A HCB-INPUT -p tcp -m tcp --dport 80 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
Confirmed!
So it seemed that restarting the IP tables did the trick. Any idea how this happened?
I also tried rebooting Toon, but that didn't help, so I guess restarting doesn't restart the IP tables.
By the way, a lot of ports are open. Is that needed?

Anyway, happy that it works again. I will memorize these suggestions, in case it happens again in the future.
Thank you very much for the help!