01-30-2013, 10:07 AM | #31 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
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 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. Last edited by knc1; 01-30-2013 at 10:58 AM. |
04-08-2013, 12:05 PM | #32 |
Connoisseur
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. |
04-08-2013, 12:24 PM | #33 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
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. |
04-08-2013, 12:25 PM | #34 | |
Connoisseur
Posts: 56
Karma: 171512
Join Date: Feb 2012
Location: Jena
Device: k3gb (3g)
|
Quote:
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 ) |
|
04-08-2013, 12:30 PM | #35 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
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. |
04-08-2013, 02:34 PM | #36 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
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). |
|
04-08-2013, 02:44 PM | #37 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
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
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
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 |
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 |