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 06-15-2025, 11:54 AM   #61
thebeginning
Junior Member
thebeginning will become famous soon enoughthebeginning will become famous soon enoughthebeginning will become famous soon enoughthebeginning will become famous soon enoughthebeginning will become famous soon enoughthebeginning will become famous soon enough
 
Posts: 6
Karma: 590
Join Date: Jan 2021
Device: PW4
Quote:
Originally Posted by dhdurgee View Post
Can't say I had heard about Tailscale, but I have Strongswan installed on my Linux laptop. Can I set up a connection using that? I do see a Tailscale package in my distro repository, specifically:

Code:
Minimal library implementing parts of the Tailscale client API

This is a stripped down version of the tailscale.com/client/tailscale Go
package but with minimal dependencies and supporting older versions of Go.
Would that be sufficient for such use?

Dave
strongSwan is more like an ordinary VPN that uses IKEv2 for exchanges, Tailscale is a commercial product based on Wireguard that creates a network between devices over any NATs without necessarily using a sever with public IP. Tailscale handshakes two devices on a server, but all the later communication is direct. It's generous in the free tier and it's sufficient for a lot of tasks. The page and the subnet router guide are the entry points for you. You may also have seen ZeroTier, it's almost the same but less features, worse performance and more greed.

You can use strongSwan or even an ordinary Wireguard for this task, but it will require @Hubris to configure routing/port forwarding on their part for you to be able to access the Kindle over this network, which could be a hassle if they use Windows or have never managed routing. Tailscale just works.
thebeginning is offline   Reply With Quote
Old 06-15-2025, 08:03 PM   #62
dhdurgee
Guru
dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.dhdurgee ought to be getting tired of karma fortunes by now.
 
Posts: 910
Karma: 3000002
Join Date: Jun 2010
Device: K3W, PW4
Per your suggestion I have installed tailscale on my Linux laptop and have created a network and added my laptop to it. I used my gmail address for the SSO and the laptop device shows now as "a31524pt 100.125.233.73" and I am being prompted to add a second device.

Is this when @Hubris needs to get involved? What infomation does he need from me?

Dave
dhdurgee is online now   Reply With Quote
Old 06-16-2025, 01:41 PM   #63
thebeginning
Junior Member
thebeginning will become famous soon enoughthebeginning will become famous soon enoughthebeginning will become famous soon enoughthebeginning will become famous soon enoughthebeginning will become famous soon enoughthebeginning will become famous soon enough
 
Posts: 6
Karma: 590
Join Date: Jan 2021
Device: PW4
Quote:
Originally Posted by dhdurgee View Post
Is this when @Hubris needs to get involved? What infomation does he need from me?
Correct, @Hubris should also install Tailscale, add their device to their Tailscale account, in their console (or cmd, whatever) do:

Code:
tailscale up --advertise-routes=192.168.1.0/24
where 192.168.1.0/24 is their local subnet (to learn what local subnet is one can do "ipconfig" on Windows or "ip a" on Linux). It's in %path% on Windows usually, but if it's not it's somewhere in Program Files and can be ran from there.

Once done, the subnet will appear in Tailscale web interface under Machines > [device] > three dots on the right > Edit route settings > Approve subnet in there.

Once this is done, they create a sharing link to their device in Machines > Device > Share on the right > Copy share link

This link should be shared privately.

Once you have both your device and theirs, it's just a matter of learning which IP does their Kindle have, enabling Wi-Fi ssh on it with a known key and ssh root@192.168.1.23. While their PC is running with Tailscale on, you'll have access to the Kindle. Once the job is done, they can revoke your access the same way it was granted in the Share menu.

There could be some issue if you have your local network in the same subnet as theirs since the routes will overlap each other, in this case I'd suggest adding not the full /24 subnet but a single device (i.e. 192.168.1.23/32 instead of 192.168.1.0/24 where 192.168.1.23 is Kindle's IP address), it should fix the routing right away. If it still doesn't, on your side do:

Code:
ip route add 192.168.1.23/32 dev a31524pt
and then it should take priority for this individual address and work. This also could be done without redefining the routes, but you get the gist already.
thebeginning is offline   Reply With Quote
Old 07-08-2025, 09:18 PM   #64
Hubris
Member
Hubris began at the beginning.
 
Posts: 21
Karma: 10
Join Date: May 2025
Device: Jailbroken Kindle paperwhite 7th gen Firmware 5.16.2.1.1
Quote:
Originally Posted by thebeginning View Post
Correct, @Hubris should also install Tailscale, add their device to their Tailscale account, in their console (or cmd, whatever) do:

Code:
tailscale up --advertise-routes=192.168.1.0/24
where 192.168.1.0/24 is their local subnet (to learn what local subnet is one can do "ipconfig" on Windows or "ip a" on Linux). It's in %path% on Windows usually, but if it's not it's somewhere in Program Files and can be ran from there.

Once done, the subnet will appear in Tailscale web interface under Machines > [device] > three dots on the right > Edit route settings > Approve subnet in there.

Once this is done, they create a sharing link to their device in Machines > Device > Share on the right > Copy share link

This link should be shared privately.

Once you have both your device and theirs, it's just a matter of learning which IP does their Kindle have, enabling Wi-Fi ssh on it with a known key and ssh root@192.168.1.23. While their PC is running with Tailscale on, you'll have access to the Kindle. Once the job is done, they can revoke your access the same way it was granted in the Share menu.

There could be some issue if you have your local network in the same subnet as theirs since the routes will overlap each other, in this case I'd suggest adding not the full /24 subnet but a single device (i.e. 192.168.1.23/32 instead of 192.168.1.0/24 where 192.168.1.23 is Kindle's IP address), it should fix the routing right away. If it still doesn't, on your side do:

Code:
ip route add 192.168.1.23/32 dev a31524pt
and then it should take priority for this individual address and work. This also could be done without redefining the routes, but you get the gist already.
Sorry guys I just don't have enough time to really perfect this! There seemed to be a few people interested in this on Kindle modding discord that have a lot more experience than me so maybe they will help. Sorry! Thank you so much for everything you've done so far!
Hubris is offline   Reply With Quote
Reply

Tags
mp3, sox


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PW4 Sox Media Player KUAL extension initial release dhdurgee Kindle Developer's Corner 61 03-07-2022 11:45 AM
PW [KUAL] Yet another clock extension MrTick Kindle Developer's Corner 3 10-21-2019 03:06 PM
kual extension to open a book shoelesshunter Kindle Developer's Corner 14 08-16-2016 12:30 PM
Is there a Kual Extension/add-on for cloud eduardomb Kindle Developer's Corner 19 07-08-2016 05:43 PM
is there any KUAL extension development guide? fangzi Kindle Developer's Corner 2 01-02-2014 10:11 AM


All times are GMT -4. The time now is 05:26 PM.


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