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 03-02-2013, 02:03 PM   #46
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by twobob View Post
If I NEVER have to do that config again? it will be WAY too soon.

Will delve into your commit. Thanks mate.
If that is the case, you will really love those 2,000 line kernel configs I pushed this morning.
knc1 is offline   Reply With Quote
Old 07-31-2013, 12:00 AM   #47
iivann
Junior Member
iivann began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2013
Device: Kindle 4
I recently bought Kindle 4 NT, install some stuff from here. Now I trying to set data/time with wifi ON, but when I open Kual and load BBB filter my wifi connection not work. I try to connect but kindle never connected.
If I remove BBB filter or load default firewall I got message that my kindle is not authorized to test... and I must to install devcerts_install.bin again to enable KUAL, CR3...

What I am doing wrong?
iivann is offline   Reply With Quote
Old 07-31-2013, 04:57 AM   #48
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by iivann View Post
I recently bought Kindle 4 NT, install some stuff from here. Now I trying to set data/time with wifi ON, but when I open Kual and load BBB filter my wifi connection not work. I try to connect but kindle never connected.
If I remove BBB filter or load default firewall I got message that my kindle is not authorized to test... and I must to install devcerts_install.bin again to enable KUAL, CR3...

What I am doing wrong?
Wifi not connecting to anything -
Try adding:
WIFI_NO_NET_PROBE
filename (may be an empty file) to the root of USB storage (at the same top level as /documents, not inside of /documents).

Getting the date/time from the Amazon time servers -
With the BBB filter enabled, that is just not going to happen (unless I messed up very badly ).

Setting date/time: There is a button for that (tm) -
Install the KUAL ntpdate button, that one uses public ntp servers and/or public ntp networks. The defaults should "just work" but they can be changed by the user.

Now this ntpdate button and KUAL-V2.0 do not like each other -
There is a dangling comma in the json file.
Just remove the one comma at the end of the "Items" list.

I.E: /extensions/helper2/bin/menu.json
make it look like this (no comma after the { .... } in the menu item list):
Code:
{
    "items": [
        {
        "name": "Helper",
        "priority": 0,
        "items": [
            {"name": "Set DateTime from Server", "priority": 1, "action": "bin/ntpdate.sh"}
        ]
        }
    ]
}
I must remember to fix that in my posted button archive!
Really sorry about that, but my mind is on semi-permanent holiday, I keep forgetting to update that json file.

- - - -

Unrelated to the above -

The disappearing devcerts -
I recall seeing reports of that posted here, I do not recall the solution.

Is your Kindle registered?
If not, register it, see if that makes the problem go away.
NOTE: It is "normal" (by lab126 standards) to trash the devcerts file when you change the registration status.
You will have to replace them (once) after any change to the registration.
knc1 is offline   Reply With Quote
Old 07-31-2013, 06:11 PM   #49
iivann
Junior Member
iivann began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2013
Device: Kindle 4
Quote:
Wifi not connecting to anything -
Try adding:
WIFI_NO_NET_PROBE
filename (may be an empty file) to the root of USB storage (at the same top level as /documents, not inside of /documents).
Still nothing. Kindle can't connect to wifi, I always get message unable to acess network. This only happens when BBB fileter is ON.

KUAL now correctly display ntpdate button with this correction. Thanks!
iivann is offline   Reply With Quote
Old 07-31-2013, 06:21 PM   #50
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by iivann View Post
Still nothing. Kindle can't connect to wifi, I always get message unable to acess network. This only happens when BBB fileter is ON.

KUAL now correctly display ntpdate button with this correction. Thanks!
Are you writing about connecting to a "Free Wifi" access point?

If so, then that is normal operation.
With the BBB filter "on" the device can not connect to Amazon to get the account details (like who to bill) to send to the operator of the "Free" access point.

If you are writing about connecting to your own (private) at-home wifi - - that should work just fine with the BBB filter "on".

Thanks for your patience, I really do need to post a corrected ntpdate package.
knc1 is offline   Reply With Quote
Old 07-31-2013, 10:19 PM   #51
iivann
Junior Member
iivann began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2013
Device: Kindle 4
Quote:
Originally Posted by knc1 View Post
Are you writing about connecting to a "Free Wifi" access point?
No, it's my home network.
iivann is offline   Reply With Quote
Old 07-31-2013, 11:11 PM   #52
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by iivann View Post
No, it's my home network.
Your home network and you can connect when you unload the BBB filter but can not when the BBB filter is active, correct?

You did place that flag file in the root of USB storage, correct?

Two yes'es above wins you the chance to answer another question for me.
knc1 is offline   Reply With Quote
Old 08-01-2013, 09:13 AM   #53
iivann
Junior Member
iivann began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2013
Device: Kindle 4
Yes, WIFI_NO_NET_PROBE is in root of USB storage.
Yes. Kindle connect without problem when remove BBB filter or load factory firewall.
iivann is offline   Reply With Quote
Old 08-01-2013, 10:02 AM   #54
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by iivann View Post
Yes, WIFI_NO_NET_PROBE is in root of USB storage.
Yes. Kindle connect without problem when remove BBB filter or load factory firewall.
Great, that means I understand the setup there.
And this does sound like a for-real failure of the BBB filter.

Now we get to play with some of those: "Why did he put this button in the set?" buttons. (Some are for producing reports that help me debug your firewall behavior.)

Do in the following order:
  • Enable "Airplane Mode"
  • BBB - Load firewall/BBB filter (Ignore this BBB-Last-Action doc)
  • BBB - Generate packet report (Ignore this BBB-Last-Action doc)
  • Disable "Airplane Mode"
  • Select your local access point and let the Kindle try to connect.
  • After it fails -
  • BBB - Generate packet report (THIS is the BBB-Last-Action doc that is needed!!)


What the above sequence does is gives a packet report that has (or should have) only the counts associated with the connection attempt and failure.
(Makes the guessing much easier here.)

Unplug/plug the USB cable to get back into storage mode if not already there.

Move the /documents/BBB-Last-Action.txt file to your PC and attach to your next post.

PS: If you can't see the '.txt' on the report, then that extension is being hidden by your PC, so check to be certain that the /WIFI_NO_NET_PROBE filename does not also have a hidden '.txt' extension on it.
A "hidden from view" extension on that filename would result in the failure you describe.

- - - -

When we find the cause of this failure, I'll re-post a corrected KUAL.FireWall app.

Last edited by knc1; 08-01-2013 at 10:10 AM.
knc1 is offline   Reply With Quote
Old 08-01-2013, 10:33 AM   #55
iivann
Junior Member
iivann began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2013
Device: Kindle 4
Picture of my Kindle usb storage:


BBB-LastAction is in attachment.

Thanks for helping!
Attached Files
File Type: txt BBB-LastAction.txt (8.4 KB, 285 views)
iivann is offline   Reply With Quote
Old 08-01-2013, 11:12 AM   #56
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Somethings broke (the review)

The Kindle tried to output 28 packets:
Code:
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
   28  1805 wlan-out   all  --  *      wlan0   0.0.0.0/0            0.0.0.0/0
Which where sent to the Wifi output filter chain:
Code:
Chain wlan-out (1 references)
 pkts bytes target     prot opt in     out     source               destination
   18  1080 DROP       all  --  *      *       0.0.0.0/0            207.171.160.0/19    
   10   725 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0
Those 28 where split into two groups, the 18 to amazon dropped and the other 10 went out on the air.
(See the spoiler below.)

Coming in, off the air, there where 25 packets:
Code:
Chain INPUT (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
   25  2534 wlan-in    all  --  wlan0  *       0.0.0.0/0            0.0.0.0/0
Which where sent to the Wifi input filter chain:
Code:
Chain wlan-in (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED 
    0     0 DROP       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           
   10  1890 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0           state ESTABLISHED 
    5   360 DROP       udp  --  *      *       0.0.0.0/0            0.0.0.0/0           
   10   284 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0
Of those 25, 10 udp packets where related to the 10 udp packets that where sent and allowed in.

The 5 udp packets that where dropped, where not detected as related to the ones that where sent.

The other 10 packets (which had to be 'non-echo request' icmp) where originated by something 'on the air' because the Kindle firewall protects against all link control messages other than "echo request" (such as funky re-directs).
So the firewall did its thing and dropped them on the floor.

Grumble, grumble, grumble.
Phooey!

What "access type setting" is this Wifi connection using?
It might be an access protocal that I did not allow for.

PS: This Linux firewall can also (with a couple non-Amazon modules added) write PCAP files. I just hope it does not come to that.

Spoiler:

Code:
NetRange:       207.171.160.0 - 207.171.191.255
CIDR:           207.171.160.0/19
OriginAS:       AS16509
NetName:        AMAZON-01
NetHandle:      NET-207-171-160-0-1
Parent:         NET-207-0-0-0-0
NetType:        Direct Assignment
RegDate:        1999-09-23
Updated:        2012-03-02
Ref:            http://whois.arin.net/rest/net/NET-207-171-160-0-1

OrgName:        Amazon.com, Inc.
OrgId:          AMAZON-4
Address:        1918 8th Ave
City:           SEATTLE
StateProv:      WA
PostalCode:     98101-1244
Country:        US
RegDate:        1995-01-23
Updated:        2013-06-25
Ref:            http://whois.arin.net/rest/org/AMAZON-4

Last edited by knc1; 08-01-2013 at 11:41 AM.
knc1 is offline   Reply With Quote
Old 08-01-2013, 11:39 AM   #57
iivann
Junior Member
iivann began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2013
Device: Kindle 4
Quote:
What "access type setting" is this Wifi connection using?
What you exactly mean?
Its secured WPA-PSK, I also try to connect without protection but its same.
iivann is offline   Reply With Quote
Old 08-01-2013, 11:45 AM   #58
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by iivann View Post
What you exactly mean?
Its secured WPA-PSK, I also try to connect without protection but its same.
That is what I meant.

Hmm...
Will have to see if I own an access point that supports that.

PS: What firmware version is this Kindle running.

(I have to be able to duplicate the problem here before I stand a chance of fixing it. )
knc1 is offline   Reply With Quote
Old 08-01-2013, 11:52 AM   #59
iivann
Junior Member
iivann began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2013
Device: Kindle 4
Its last: Kindle 4.1.1 (1813030025)
iivann is offline   Reply With Quote
Old 08-01-2013, 11:57 AM   #60
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by iivann View Post
Its last: Kindle 4.1.1 (1813030025)
Great!
I have a test device running that.

Now, I need to go dig into my various access points, find my packet capture setup, waste a bunch of time feeding the person here, and dealing with "life", etc.

No idea how long this may take.

For now, I guess you just have to let Amazon track your reading habits.

PS: Thanks for the trouble report and the help in testing.

Last edited by knc1; 08-01-2013 at 12:03 PM.
knc1 is offline   Reply With Quote
Reply

Tags
firewall, kual extension


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KUAL: Kindle Unified Application Launcher (v2.7) twobob Kindle Developer's Corner 2316 03-27-2024 06:23 PM
KUAL DateTime Button knc1 Kindle Developer's Corner 65 11-17-2023 01:16 PM
A helpful list of Extensions for KUAL twobob Kindle Developer's Corner 135 01-23-2023 11:20 PM
[KUAL] Button Def. Packages (SUPERSEDED) knc1 Kindle Developer's Corner 6 09-27-2013 07:56 PM
HELP ME - with data for Big Brother Blocker (BBB) knc1 Kindle Developer's Corner 12 02-11-2013 08:58 PM


All times are GMT -4. The time now is 12:04 PM.


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