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 07-13-2025, 09:40 PM   #1
bnuuy
Junior Member
bnuuy began at the beginning.
 
bnuuy's Avatar
 
Posts: 8
Karma: 10
Join Date: Jun 2025
Device: KT6
How to limit kindle to local network

KT6 on 5.17.1.0.4 JB

I only use koreader and do all my file transfers via koreader's ssh server.

Would doing something like this be a bad idea?

Code:
iptables -P OUTPUT DROP
iptables -A OUTPUT -d 192.168.0.0/24 -j ACCEPT
Or is there already a solution that i'm not aware of?
bnuuy is offline   Reply With Quote
Old Yesterday, 01:59 PM   #2
smbgaiden
Junior Member
smbgaiden began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2025
Device: none
Quote:
Originally Posted by bnuuy View Post
KT6 on 5.17.1.0.4 JB

I only use koreader and do all my file transfers via koreader's ssh server.

Would doing something like this be a bad idea?

Code:
iptables -P OUTPUT DROP
iptables -A OUTPUT -d 192.168.0.0/24 -j ACCEPT
Or is there already a solution that i'm not aware of?

it was a bad idea on mine as it slowed everything down due to some needed inter process communications that occur over sockets.

before going into what i did, oblig prewarning: make sure you have ktrerm on the device so you can undo changes if you lock out ssh. also backup your iptables so you can undo if and when needed.

i did this edit in /etc/sysconfig/iptables
BACKUP FIRST

in aforementioned file, find the line that matches # below
insert the stuff immediately below it
tweak the local network range if needed
save
either cycle network, firewall, or reboot the device
try to connect locally and ensure it works
try to connect not locally and ensure it doesn't work
observe if the kindle ui has any showdown, if so try to figure out which service is blocked where and open those too
if you don't like it then copy your backed up clean iptables over this modified out and restart firewall, network, or reboot

Code:
# TCP handling. Allow incoming TCP TPH on WAN 
-A INPUT -i wlan0 -p udp --dport 67:68 --sport 67:68 -j ACCEPT 
-A INPUT -i wlan0 -s 192.168.0.0/16 -j ACCEPT
-A INPUT -i wlan0 -s 10.0.0.0/8 -j ACCEPT
-A INPUT -i wlan0 -j DROP
-A OUTPUT -o wlan0 -d  -j ACCEPT
-A OUTPUT -o wlan0 -d 10.0.0.0/8 -j ACCEPT
-A OUTPUT -o wlanO -j DROP
smbgaiden is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Allow non-authenticated access (only) for local network beedaddy Server 2 11-12-2024 01:52 AM
Can't connect to local network (w/o internet) clausworks Kindle Developer's Corner 1 06-01-2024 06:35 AM
ereader that can connect to local network only? doodoodood Which one should I buy? 2 08-29-2022 07:16 PM
DNS on local network Hobbygirl Server 1 10-21-2020 08:05 AM
Wi-Fi error: Kindle is unable to connect to your local network. taiyo Amazon Kindle 1 08-26-2019 12:00 PM


All times are GMT -4. The time now is 03:00 PM.


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