Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-30-2013, 10:07 AM   #31
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,560
Karma: 5840130
Join Date: Feb 2012
Device: Too many.
Blocking with source base routing controls

Here is one that I don't think I published before.

This uses "Source Based" routing rather than modify iptable rules.

In this example, all of the local wireless devices are assigned an IP address from within the 169.254.0.225/27 address block.
Change that entry as required to match your assignment practices.

Code:
# Put a full block on Chatty Kathy's attempts to call home:
/bin/ip rule add from 169.254.0.225/27 to 207.171.160.0/19 prohibit
/bin/ip rule add from 169.254.0.225/27 to 107.20.0.0/14 prohibit
/bin/ip rule add from 169.254.0.225/27 to 184.72.0.0/15 prohibit
/bin/ip rule add from 169.254.0.225/27 to 204.246.160.0/19 prohibit
/bin/ip rule add from 169.254.0.225/27 to 205.251.192.0/18 prohibit
/bin/ip rule add from 169.254.0.225/27 to 72.21.192.0/19 prohibit
/bin/ip rule add from 169.254.0.225/27 to 50.16.0.0/14 prohibit
/bin/ip rule add from 169.254.0.225/27 to 23.0.0.0/12 prohibit
The above is an old example, refer to my 'Exploring the Kpw' thread for the currently known address ranges to block.

The above routing rules are added to my gateway machine, I have not tried adding them to a Kindle - so am not sure if Source Based routing is supported by the Amazon Kindle kernel build.
Attached Thumbnails
Click image for larger version

Name:	ciny-jail-tux.png
Views:	31
Size:	35.4 KB
ID:	100325  

Last edited by knc1; 01-30-2013 at 10:58 AM.
knc1 is offline   Reply With Quote
Old 04-08-2013, 12:05 PM   #32
fonzie4msg
Connoisseur
fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.
 
Posts: 56
Karma: 171512
Join Date: Feb 2012
Location: Jena
Device: k3gb (3g)
done, thx

Last edited by fonzie4msg; 04-08-2013 at 12:28 PM.
fonzie4msg is offline   Reply With Quote
Old 04-08-2013, 12:24 PM   #33
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
You don't state that this is via ssh or via telnet.

If it's telnet then that will be the problem.
twobob is offline   Reply With Quote
Old 04-08-2013, 12:25 PM   #34
fonzie4msg
Connoisseur
fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.fonzie4msg can program the VCR without an owner's manual.
 
Posts: 56
Karma: 171512
Join Date: Feb 2012
Location: Jena
Device: k3gb (3g)
Quote:
Originally Posted by twobob View Post
You don't state that this is via ssh or via telnet.

If it's telnet then that will be the problem.
ssh

sorry

(
fonzie@fonzie-desktop:~$ sudo ip link set up dev usb0
fonzie@fonzie-desktop:~$ sudo ip address add 192.168.15.201 peer 192.168.15.244 dev usb0
fonzie@fonzie-desktop:~$ ssh -l root 192.168.15.244
)
fonzie4msg is offline   Reply With Quote
Old 04-08-2013, 12:30 PM   #35
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
It's a SYSTEM lib...

/lib/libe2p.so.2

so... type

echo $LD_LIBRARY_PATH

if /lib is in that list then it is something in the way you are giving the instruction... or something even weirder

Last edited by twobob; 04-08-2013 at 12:34 PM.
twobob is offline   Reply With Quote
Old 04-08-2013, 02:34 PM   #36
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,560
Karma: 5840130
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by twobob View Post
It's a SYSTEM lib...

/lib/libe2p.so.2

so... type

echo $LD_LIBRARY_PATH

if /lib is in that list then it is something in the way you are giving the instruction... or something even weirder
hmm...
well, almost

/lib should be in the default path of the dynamic loader already, as should /usr/lib;
plus the paths listed in: /etc/ld.so.conf
plus the paths in the concatenated contents of the files of /etc/ld.so.conf.d (if used by the Kindle libc implementation).

Whatever the situation happens to be on your device ;
Using the ldd command (a script) on the executable will list the libraries and the paths to them after giving consideration to all of the libc configuration stuff (including LD_LIBRARY_PATH - which in a normal run-time is empty, but which may not be when using the KUAL.system extensions).
knc1 is offline   Reply With Quote
Old 04-08-2013, 02:44 PM   #37
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
I fixed it for him. He's happy now
twobob is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindlet Guide: How to write Kindlets KukMan Kindle Developer's Corner 67 07-08-2013 07:23 AM
Kindlets crashing ger1972 Kindle Developer's Corner 8 06-28-2012 11:26 PM
K4 Developing kindlets on the K4 NT ger1972 Kindle Developer's Corner 10 06-15-2012 11:45 AM
List of Kindlets available inameiname Kindle Developer's Corner 27 04-14-2012 07:16 AM
Adding page breaks in Calibre breaks ePubcheck validation bookraft Conversion 16 03-01-2011 01:23 PM


All times are GMT -4. The time now is 05:51 AM.


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