Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-27-2021, 03:52 PM   #1
Kindleschokolade
Connoisseur
Kindleschokolade began at the beginning.
 
Posts: 57
Karma: 14
Join Date: Dec 2021
Device: kindle PW3
Allowing access to WIFI but only to local network, not the web

Hello,
thanks to all the great help here I was able to jailbreak and enhace the PW2 I am working with to display custom data over the network.
Now I would like to do this over WIFI, but before I connect the kindle to the local WIFI network, I would like to make sure that it cannot access the internet.

Do I need to edit the hosts file for that or is there any other way to do this? 

Thanks!
Kindleschokolade is offline   Reply With Quote
Old 12-27-2021, 08:25 PM   #2
yparitcher
Connoisseur
yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.
 
Posts: 52
Karma: 616590
Join Date: Feb 2019
Device: K4 KT4 PW4 PW5
create a file on your kindle (not in any folder) named
Code:
WIFI_NO_NET_PROBE
yparitcher is offline   Reply With Quote
Advert
Old 12-28-2021, 12:18 AM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,401
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by yparitcher View Post
create a file on your kindle (not in any folder) named
Code:
WIFI_NO_NET_PROBE
I suspect that would do the opposite of what the OP wants. It sounds as if they want to connect to a Internet connected WiFi network but block the Kindle from being able to connect to the Internet. I've done something similar by assigning the ereader a DHCP reservation and then disabling that address from accessing the Internet by setting the time that address is allowed to connect to a start time of 05:00 and an end time of 05:00. Parental controls can be fun.
DNSB is offline   Reply With Quote
Old 12-28-2021, 10:35 AM   #4
Kindleschokolade
Connoisseur
Kindleschokolade began at the beginning.
 
Posts: 57
Karma: 14
Join Date: Dec 2021
Device: kindle PW3
Thanks David.
Now I have to figure out how to do this on Raspbian
Kindleschokolade is offline   Reply With Quote
Old 12-28-2021, 02:53 PM   #5
yparitcher
Connoisseur
yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.yparitcher ought to be getting tired of karma fortunes by now.
 
Posts: 52
Karma: 616590
Join Date: Feb 2019
Device: K4 KT4 PW4 PW5
you can acomplish this with iptables on your kindle (this has to be done on each reboot)

you can see the current rules with
Code:
iptables -vnL
and you can apply rules from a file with
Code:
iptables-restore <filename
here is an example iptables-restore file that i use for only local access.

Code:
# Generated by iptables-save v1.4.15 
*raw
:PREROUTING ACCEPT [13475:13447552]
:OUTPUT ACCEPT [6181:2633532]
COMMIT
# Completed 
# Generated by iptables-save v1.4.15 
*nat
:PREROUTING ACCEPT [9:848]
:INPUT ACCEPT [1:60]
:OUTPUT ACCEPT [286:18952]
:POSTROUTING ACCEPT [286:18952]
COMMIT
# Completed 
# Generated by iptables-save v1.4.15 
*mangle
:PREROUTING ACCEPT [13475:13447552]
:INPUT ACCEPT [13467:13446764]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [6181:2633532]
:POSTROUTING ACCEPT [6181:2633532]
COMMIT
# Completed 
# Generated by iptables-save v1.4.15 
*filter
:INPUT DROP [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT DROP [0:0]
-A INPUT -s 127.0.0.1/32 -i lo -j ACCEPT
-A INPUT -i usb0 -j ACCEPT
-A OUTPUT -o usb0 -j ACCEPT
-A INPUT -p icmp -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -p icmp -j ACCEPT
-A INPUT -i wlan0 -p tcp -m tcp --dport 22 -j ACCEPT
-A OUTPUT -o wlan0 -p tcp -m tcp --sport 22 -j ACCEPT
-A OUTPUT -d 127.0.0.1/32 -o lo -j ACCEPT
-A INPUT -i wlan0 -p tcp -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i wlan0 -p udp -m state --state ESTABLISHED -j ACCEPT
-A OUTPUT -o wlan0 -d 192.168.0.1/24 -j ACCEPT
COMMIT
# Completed
The important part is the filter section.
yparitcher is offline   Reply With Quote
Advert
Old 01-11-2022, 08:20 AM   #6
Kindleschokolade
Connoisseur
Kindleschokolade began at the beginning.
 
Posts: 57
Karma: 14
Join Date: Dec 2021
Device: kindle PW3
Thanks!
Kindleschokolade is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS on local network Hobbygirl Server 1 10-21-2020 08:05 AM
unable to connect outside of local network Ice Cracker Server 1 04-02-2020 12:26 PM
[Android] New CC user - Local Network Access sllewji Calibre Companion 2 06-30-2017 08:54 AM
Glo Downloading books from your local network zelea2 Kobo Reader 2 10-19-2012 02:53 PM
Trouble accessing books on local network garsnem Calibre 5 08-06-2012 09:15 PM


All times are GMT -4. The time now is 09:14 AM.


MobileRead.com is a privately owned, operated and funded community.