View Single Post
Old 03-03-2026, 06:32 AM   #245
topongo
Junior Member
topongo began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2022
Device: Kobo Libra Colour
ok, managed to solve this issue, i'm experiencing another one: i cannot locally port-forward with ssh:
Code:
ssh -L 12345:127.0.0.1:12345 user@somehost -N
it fails with the following error:
Code:
bind [::1]:12345: Address not available
channel_setup_fwd_listener_tcpip: cannot listen to port: 12345
Could not request local forwarding.
and before you ask, yes, i already tried to disabled ipv6 resolving and tried directly binding to 127.0.0.1:
Code:
ssh -4 -L 127.0.0.1:12345:127.0.0.1:12345 user@somehost -N
but... same error:
Code:
bind [127.0.0.1]:12345: Address not available
channel_setup_fwd_listener_tcpip: cannot listen to port: 12345
the long explanation is the following: since i was considering self-hosting my koreader sync server, but i really don't like the idea of exposing it to the whole internet i was looking into some tunneling solutions.
i already use a globally available wireguard network, but the kernel on the kobo is too old and it seemded very complicated to make wireguard work on such simple device.
first thing it came to mind is an http proxy, but i don't really like the security implications...
so the other day i thought about using ssh reverse tunneling: i already expose an ssh server, so i should only create very strinct rules on the ssh server to make my kobo connect, but with no shell and with the ability to only forward a very specific address/port pair.
i tried to compile openssh myself but failed, found a generic arm-linux-gnueabihf portable openssh binary, but i had the first problem i was talking about: i cannot locally forward using the ssh client.
i thought trying the binaries compiled by NiLuJe, thinking they could contain some kind of patch about this, but the exact same problem arised.
maybe i could open a new thread about this, but since it's also a problem about ssh inside this bundle i'll keep it here.
it seems a bit strage, cause i can bind port 12345 using busybox's `nc` command, so it seem a binary problem and not a kernel one...

thank you very much for your time
topongo is offline   Reply With Quote