LEDE v17.01.2 on ZyXEL P-2812HNU-F1

Post Reply
admin
Site Admin
Posts: 478
Joined: 06 Feb 2007, 13:36

LEDE v17.01.2 on ZyXEL P-2812HNU-F1

Post by admin »

MAC addressing vlan - lan

First thing to do is make swconfig is set, so we have eth0.1 and eth0.2, according the next picture (web-gui):
Image
eth0.1 = LAN
eth0.2 = WAN

Default, the vlan mac addressing is not ok. Although 'br-lan' has the right 'lan' mac of the box!
There is 1 mac address (00:11:22:33:44:55) for eth0, eth0.1 and eth0.2:

Code: Select all

~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
    link/ether 00:11:22:33:44:55 brd ff:ff:ff:ff:ff:ff
4: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether cc:d5:4e:a0:97:f8 brd ff:ff:ff:ff:ff:ff
5: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
    link/ether 00:11:22:33:44:55 brd ff:ff:ff:ff:ff:ff
6: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
    link/ether 00:11:22:33:44:55 brd ff:ff:ff:ff:ff:ff
This wil interfere when using more than 1 box :) Errors according same addresses in syslog etc.

Although the web-gui shows the right mac address on the 'lan' interface (br-lan), according command 'ip link' eth0.1 is still 00:11:22:33:44:55 !!
To overcome this use the following, just after interface 'lan' definition within /etc/config/network:

Code: Select all

config device 'lan_dev'
        option name 'eth0.1'
        option macaddr 'xx:11:22:33:yy:zz'
(change xx:11:22:33:yy:zz to mac address on the box)

This will set the right mac address for 'lan'.

MAC addressing vlan - wan

If 'wan' is used static, adjust in web-gui wan6 (default) and set the static address.
wan6 and wan are by firewall both used as 'wan' interface, this will work normally.
Just after interface 'wan' definition within /etc/config/network you can add (almost-again):

Code: Select all

config device 'wan_dev'
        option name 'eth0.2'
        option macaddr 'xx:11:22:44:yy:zz'
(change xx:11:22:44:yy:zz to mac address +02hex on the box!! So ending on '2' or 'a'.

Don't use the same mac address for 'lan' and 'wan', as this will go back to the 'old' situation.

If 'wan' is set to DHCP within web-gui (wan6), you can use option Override MAC address in Advanced Settings.
This will set wan interface correctly, also on cli command 'ip link'. Check this!

Why add 2? Well, the P-2812HNU-F1 has 8 reserved addresses in the following -HEX- order:

Mac address overview (HEX!)
Default mac address of LAN on P-2812HNU-F1 ends always on '0' or '8'!

Code: Select all

mac        = lan (on the box itself)
mac +01hex = ptm0
mac +02hex = wan
mac +03hex = nas0
mac +04hex = wlan0  (adjust RT3062.eeprom file!)
mac +05hex = wlan1
mac +06hex = wlan2
mac +07hex = wlan3
If -for whatever reason- the web-gui shows a LAN connection as WAN on the main 'Status Overview', there was/is a mixup with network and firewall settings.
I ones had this after switching lan & wan according firewall, after which i tried to set it back, with no luck!
Only way to change this back, is to load an older saved config :P

MAC addressing vlan - wlan

Next the right mac address for wlan.
I already mentioned how to adjust somewhere else ... not found, here again :)

Adjust -HEX- the RT3062.eeprom file, which should be in folder /lib/firmware.
Take the first 11 characters of the mac address of the box, followed by a '4' or a c' (mac +04hex) and adjust RT3062.eeprom:
Image

Save RT3062.eeprom back to /lib/firmware folder and reboot the box.
Now all mac addresses should be fine.

After any change on LAN or WAN interface, check on putty session command 'ip link' if all mac addresses stay correct!

DG.

Next ...
- Rename this test box LEDE5 (config, system, wlan?)
- Make a 'default' LEDE5 Config file (TOR disabled?)
- Make a Config file with TOR
- test update tor_0.3.1.8-1
- build with LEDE v17.01.4 ?
- build with snapshot?
admin
Site Admin
Posts: 478
Joined: 06 Feb 2007, 13:36

Re: LEDE v17.01.2 on ZyXEL P-2812HNU-F1

Post by admin »

LEDE5

On 1 box, i call it LEDE5, i see the most weird things especially on serial console...
Sometimes the box does boot normally (looks like it), mostly after power on.
But most of the soft-reboots (web or cli) the box wont restart due to un-compression errors, kernel panics or UBI errors.

UBI-error:

Code: Select all

[    9.705572] usbcore: registered new interface driver ums-jumpshot
[    9.712619] usbcore: registered new interface driver ums-karma
[    9.720105] usbcore: registered new interface driver ums-sddr09
[    9.727346] usbcore: registered new interface driver ums-sddr55
[    9.734707] usbcore: registered new interface driver ums-usbat
[    9.758821] xt_time: kernel timezone is -0000
[   10.032013] UBIFS error (ubi0:0 pid 489): ubifs_decompress: cannot decompress 2166 bytes, compressor zlib, error -22
[   10.041172] UBIFS error (ubi0:0 pid 489): read_block: bad data node (block 3, inode 1530)
[   10.049299] 	magic          0x6101831
[   10.052950] 	crc            0xa5ca92e
[   10.056606] 	node_type      1 (data node)
[   10.060610] 	group_type     0 (no node group)
[   10.064960] 	sqnum          10075
[   10.068266] 	len            2214
[   10.071494] 	key            (1530, data, 3)
[   10.075667] 	size           4096
[   10.078885] 	compr_typ      2
[   10.081817] 	data size      2166
[   10.085037] 	data:
[   10.087086] 	00000000: 95 55 5f 68 5b d7 19 ff e9 dc 7b 25 45 55 93 6b fb da 11 9d 48 ee 75 8e 65 ad 33 9b ea 99 92 6d
[   10.097788] 	00000020: da 50 2c 27 2b 2c b0 2c 49 59 60 1b 75 15 77 eb 60 8c 76 1b 7b 0a 9b 48 f2 e0 31 21 a9 89 09 66
....
[   10.772265] 	00000800: 43 ac 79 2f eb 7b ae fd 3e 5e 6e 5f c7 4c fb 1a a6 db 57 f1 c3 f6 65 1c 64 4f f6 09 e7 d7 8e 11
[   10.782967] 	00000820: df ac 5d b0 ce 5c 4a 58 58 90 3d e7 db c9 08 ee db 2d 64 7a b8 69 4a ee f1 2c bb fe 7d e8 43 de
[   10.793672] 	00000840: 9c 7d cb d4 10 e5 4f 2a 0e cc bb 9e 31 e7 45 73 fe ba 79 5b b5 e1 fc 9b bd e7 94 75 87 b3 62 25
[   10.804377] 	00000860: 23 8f 18 79 97 91 73 46 2e 1b 79 d4 c8 53 46 ce 1b 79 b7 c8 ff 03
[   10.812478] UBIFS error (ubi0:0 pid 489): do_readpage: cannot read page 3 of inode 1530, error -22
[   10.821793] kmodloader: failed to read full module /lib/modules/4.4.71/rt2800lib.ko
[   10.830302] UBIFS error (ubi0:0 pid 489): ubifs_decompress: cannot decompress 2166 bytes, compressor zlib, error -22
[   10.839634] UBIFS error (ubi0:0 pid 489): read_block: bad data node (block 3, inode 1530)
[   10.847797] 	magic          0x6101831
[   10.851450] 	crc            0xa5ca92e
[   10.855106] 	node_type      1 (data node)
[   10.859111] 	group_type     0 (no node group)
[   10.863461] 	sqnum          10075
[   10.866767] 	len            2214
[   10.869994] 	key            (1530, data, 3)
[   10.874167] 	size           4096
[   10.877362] 	compr_typ      2
[   10.880346] 	data size      2166
[   10.883570] 	data:
[   10.885556] 	00000000: 95 55 5f 68 5b d7 19 ff e9 dc 7b 25 45 55 93 6b fb da 11 9d 48 ee 75 8e 65 ad 33 9b ea 99 92 6d
[   10.896290] 	00000020: da 50 2c 27 2b 2c b0 2c 49 59 60 1b 75 15 77 eb 60 8c 76 1b 7b 0a 9b 48 f2 e0 31 21 a9 89 09 66
.....
[   11.581472] 	00000820: df ac 5d b0 ce 5c 4a 58 58 90 3d e7 db c9 08 ee db 2d 64 7a b8 69 4a ee f1 2c bb fe 7d e8 43 de
[   11.592178] 	00000840: 9c 7d cb d4 10 e5 4f 2a 0e cc bb 9e 31 e7 45 73 fe ba 79 5b b5 e1 fc 9b bd e7 94 75 87 b3 62 25
[   11.602882] 	00000860: 23 8f 18 79 97 91 73 46 2e 1b 79 d4 c8 53 46 ce 1b 79 b7 c8 ff 03
[   11.610978] UBIFS error (ubi0:0 pid 489): do_readpage: cannot read page 3 of inode 1530, error -22
[   11.620153] kmodloader: failed to read full module /lib/modules/4.4.71/rt2800lib.ko
[   11.627960] kmodloader: 3 modules could not be probed
[   11.632884] kmodloader: - rt2800lib - 0
[   11.636658] kmodloader: dependency not loaded rt2800lib
[   11.641939] kmodloader: - rt2800mmio - 1
[   11.645737] kmodloader: dependency not loaded rt2800lib
[   11.651022] kmodloader: dependency not loaded rt2800mmio
[   11.656336] kmodloader: - rt2800pci - 2
[   12.035824] random: jshn: uninitialized urandom read (4 bytes read, 48 bits of entropy available)
[   19.822333] device eth0 entered promiscuous mode
[   19.839830] device eth0.1 entered promiscuous mode
[   19.859873] br-lan: port 1(eth0.1) entered forwarding state
[   19.864113] br-lan: port 1(eth0.1) entered forwarding state
[   21.865904] br-lan: port 1(eth0.1) entered forwarding state
[   32.469894] random: nonblocking pool is initialized
[   37.322220] 
[   37.322220] do_page_fault(): sending SIGSEGV to tor for invalid write access to 00752004
[   37.328913] epc = 77a7ef48 in libc.so[77a56000+92000]
[   37.333957] ra  = 77a7ef34 in libc.so[77a56000+92000]
[   37.338994] 
[   37.826394] eth0: port 0 got link
When booted ok, we get -after several minutes- messages like this on serial console:

Code: Select all

[  325.304133] BUG: Bad rss-counter state mm:87f3e600 idx:0 val:3
[  325.907688] BUG: Bad page state in process dsl_control  pfn:05d8c
[  325.912408] page:810c5900 count:0 mapcount:1 mapping:  (null) index:0x4b
[  325.919070] flags: 0x40008(uptodate|swapbacked)
[  325.923553] page dumped because: nonzero mapcount
[  325.928287] Modules linked in: rt2800pci rt2800mmio rt2800lib iptable_nat rt2x00pci rt2x00mmio rt2x00lib pppoe nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda pppox ppp_async nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack ltq_deu_vr9 iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt compat drv_dsl_cpe_api ledtrig_usbport drv_mei_cpe ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables pppoatm ppp_generic slhc vfat fat br2684 atm nls_utf8 nls_iso8859_1 nls_cp437 eeprom_93cx6 drv_ifxos usb_storage dwc2 ehci_platform ehci_hcd sd_mod scsi_mod gpio_button_hotplug ext4 jbd2 mbcache cryptomgr aead crypto_null crc32c_generic
[  326.020702] CPU: 0 PID: 1956 Comm: dsl_control Not tainted 4.4.71 #0
[  326.027075] Stack : 806368a2 00000001 00000000 00000000 8701f9dc 804e2d43 804578f0 000007a4
          80633ae0 00000000 804e23b0 80658338 00000000 80058c08 00000003 804e0000
          804608d4 00000000 8045ed0c 87e11c6c 00000000 80056b3c 804e23b0 80658338
          00000000 804de000 00000000 00000000 00000000 00000000 00000000 00000000
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          ...
[  326.062554] Call Trace:
[  326.065011] [<80017a5c>] show_stack+0x50/0x84
[  326.069404] [<8008bd24>] bad_page+0xfc/0x134
[  326.073657] [<8008be54>] free_pages_prepare+0xf8/0x278
[  326.078793] [<8008c64c>] free_hot_cold_page+0x38/0x1b0
[  326.083926] [<8008c7fc>] free_hot_cold_page_list+0x38/0x6c
[  326.089419] [<80094e18>] release_pages+0x378/0x3c8
[  326.094200] [<80094f74>] pagevec_lru_move_fn+0x10c/0x140
[  326.099510] [<800965a4>] lru_add_drain_cpu+0x2c/0xa8
[  326.104469] [<8009677c>] lru_add_drain+0x10/0x1c
[  326.109081] [<800b4118>] exit_mmap+0x78/0x150
[  326.113438] [<8002b5ac>] mmput+0x7c/0x158
[  326.117441] [<8002f220>] do_exit+0x380/0x934
[  326.121703] [<80030680>] do_group_exit+0x7c/0xb4
[  326.126316] [<800306cc>] __wake_up_parent+0x0/0x18
[  326.131089]
[  326.132535] Disabling lock debugging due to kernel taint
[  326.141512] BUG: Bad page map in process dsl_control  pte:05d8c7af pmd:8700f000
[  326.147465] page:810c5900 count:0 mapcount:-1 mapping:  (null) index:0x4b
[  326.154194] flags: 0x4001c(referenced|uptodate|dirty|swapbacked)
[  326.160162] page dumped because: bad pte
[  326.164122] addr:7fc0d000 vm_flags:00100173 anon_vma:87669d98 mapping:  (null) index:7fffd
[  326.172386] file:  (null) fault:  (null) mmap:  (null) readpage:  (null)
[  326.179097] CPU: 0 PID: 1956 Comm: dsl_control Tainted: G    B           4.4.71 #0
[  326.186655] Stack : 806368a2 00000001 00000000 00000000 8701f9dc 804e2d43 804578f0 000007a4
          80633ae0 87e0d7fc 810c5900 05d8c7af 00000000 80058c08 00000006 00000001
          00000000 00000000 8045ed0c 87e11cf4 806368a2 80056b3c 806368a2 00000001
          804e1e50 804de000 00000000 00000000 00000000 00000000 00000000 00000000
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          ...
[  326.222134] Call Trace:
[  326.224590] [<80017a5c>] show_stack+0x50/0x84
[  326.228989] [<800aa138>] print_bad_pte+0x1f0/0x228
[  326.233761] [<800abef8>] unmap_single_vma+0x374/0x634
[  326.238821] [<800ad144>] unmap_vmas+0x34/0x78
[  326.243174] [<800b4150>] exit_mmap+0xb0/0x150
[  326.247519] [<8002b5ac>] mmput+0x7c/0x158
[  326.251521] [<8002f220>] do_exit+0x380/0x934
[  326.255782] [<80030680>] do_group_exit+0x7c/0xb4
[  326.260394] [<800306cc>] __wake_up_parent+0x0/0x18
[  326.265166]
[  326.269333] BUG: Bad rss-counter state mm:87f3ea80 idx:0 val:-1
[  326.273889] BUG: Bad rss-counter state mm:87f3ea80 idx:1 val:1
[  334.351250]
do_page_fault(): sending SIGSEGV to luci for invalid read access from 2f6c7567
[  334.358137] epc = 77894bd5 in liblua.so.5.1.5[7788c000+2c000]
[  334.363864] ra  = 77894c8f in liblua.so.5.1.5[7788c000+2c000]
[  334.369551]
After some of these messages the system spontaneously reboots.
Within 30 minutes, you know the box had rebooted @ least ones, or can't, it will keep rebooting itself.

First we see DSL-control generating these errors. As i don't have / use DSL, we removed / stopped / disabled all DSL functionality.
But other messages keep popping up, before 10 minutes of 'steady' usage.
Even after re-flashing all files.

Next -only left- thing is to use command: nand scrub.chip
To really clear the whole NAND, we have to re-flash everything again.

DG.
admin
Site Admin
Posts: 478
Joined: 06 Feb 2007, 13:36

Re: LEDE v17.01.2 on ZyXEL P-2812HNU-F1

Post by admin »

LEDE6

So we took another F1 box, LEDE6, with CPU version 1.2 and again,
we see something strange, the wifi is not what we expect:

Code: Select all

[    0.284938] pci_bus 0000:00: root bus resource [mem 0x18000000-0x19ffffff]
[    0.291843] pci_bus 0000:00: root bus resource [io  0x1ae00000-0x1affffff]
[    0.298790] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.305645] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.313691] pci 0000:00:0e.0: [1814:3592] type 00 class 0x028000
[    0.313745] pci 0000:00:0e.0: reg 0x10: [mem 0xffff0000-0xffffffff]
[    0.313843] pci 0000:00:0e.0: PME# supported from D0
[    0.314164] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.314209] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]
[    0.321871] clocksource: Switched to clocksource MIPS
One F1 device (of 6 now) with physically a RT3062 chip on it, but linux/LEDE sees it as a RT3592 (1814:3592)?

Image
There is no definition within openwrt/LEDE configuration tool, i think i´ve to add it myself to config :(

Reading some info about the RT3592, it should be automatically seen by rt2860 software, but it still requires the RT3062.eeprom file, according the logs :

Code: Select all

[   10.140030] PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
[   10.144491] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'RT3062.eeprom'.
[   10.155217] rt2800pci 0000:00:0e.0: Direct firmware load for RT3062.eeprom failed with error -2
[   10.162749] rt2800pci 0000:00:0e.0: Falling back to user helper
[   10.284664] firmware RT3062.eeprom: firmware_loading_store: map pages failed
[   10.290543] ieee80211 phy0: rt2x00lib_request_eeprom_file: Error - Failed to request EEPROM.
[   10.298853] rt2800pci: probe of 0000:00:0e.0 failed with error -11
[   10.318180] kmodloader: done loading kernel modules from /etc/modules.d/*
This sounds & looks weird to me :)
There were already 2 types of F1 boxes, one with 1.1 CPU and one with 1.2 CPU,
now we face also different wlan configurations within (by me) the CPU1.2 versions.

Code: Select all

P-2812HNU-F1
------------

CPU	CPU1.1							CPU1.2
		   |								   |
		   |					    ------------------
		   |					    |				    |		
wlan	RT3062.eeprom	RT3062.eeprom		rt3592.??
At this moment were not able to get this wlan working.
If RT3062.eeprom file is available, the box will halt on loading the file.
(seen on serial logs)

Added iwinfo & wireless-tools to investigate further.

DG.
admin
Site Admin
Posts: 478
Joined: 06 Feb 2007, 13:36

Re: LEDE v17.01.2 on ZyXEL P-2812HNU-F1

Post by admin »

As seen in the logs above:

Code: Select all

[    0.313691] pci 0000:00:0e.0: [1814:3592] type 00 class 0x028000
This is strange, especially because anywhere else within this LEDE F1 box, like in ´/sys/firmare/...´ folder,
the device is seen as a 1814:3062 device ...

Code: Select all

./sys/firmware/devicetree/base/fpi@10000000/pci@E105400/wifi@1814,3062
./sys/firmware/devicetree/base/fpi@10000000/pci@E105400/wifi@1814,3062/reg
./sys/firmware/devicetree/base/fpi@10000000/pci@E105400/wifi@1814,3062/name
./sys/firmware/devicetree/base/fpi@10000000/pci@E105400/wifi@1814,3062/ralink,eeprom
./sys/firmware/devicetree/base/fpi@10000000/pci@E105400/wifi@1814,3062/compatible
Command lspci however does show 1814:3592 again?

Code: Select all

root@LEDE6:/# lspci -nnv
00:0e.0 Network controller [0280]: Ralink corp. RT3592 Wireless 802.11abgn 2T/2R
 PCIe [1814:3592]
        Subsystem: Ralink corp. RT3592 Wireless 802.11abgn 2T/2R PCIe [1814:3592]
        Flags: 66MHz, slow devsel, IRQ 30
        Memory at 18000000 (32-bit, non-prefetchable) [size=65537]
        Memory at <unassigned> (32-bit, non-prefetchable) [size=2]
        Memory at <unassigned> (32-bit, non-prefetchable) [size=2]
        Memory at <unassigned> (32-bit, non-prefetchable) [size=2]
        Memory at <unassigned> (32-bit, non-prefetchable) [size=2]
        Memory at <unassigned> (32-bit, non-prefetchable) [size=2]
        Expansion ROM at <unassigned> [disabled] [size=2]
        Capabilities: [40] Power Management version 3
lspci: Unable to load libkmod resources: error -12
And we see @ the end an error: Unable to load libkmod resources: error -12

After a -soft- reboot, with ´RT3062.eeprom´ file available the box will stall into a halt, not finding the lantiq hardware anymore?

Code: Select all

...
[    9.782644] xt_time: kernel timezone is -0000
[   10.090745] PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
[   10.095209] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'RT3062.eeprom'.

ROM VER: 1.1.4
CFG 06
NAND
NAND Read OK

U-Boot SPL 2013.10-openwrt5 (Nov 18 2014 - 19:54:01)
SPL: initializing NAND flash
SPL: checking U-Boot image
SPL: loading U-Boot to RAM
SPL: decompressing U-Boot with LZO
SPL: jumping to U-Boot


U-Boot 2013.10-openwrt5 (Nov 18 2014 - 19:54:01) P-2812HNU-Fx

Board: ZyXEL P-2812HNU-Fx
SoC:   Lantiq VRX288 v1.2
CPU:   500 MHz
IO:    250 MHz
BUS:   250 MHz
BOOT:  NAND
DRAM:  128 MiB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   Phy not found
PHY reset timed out
Phy not found
PHY reset timed out
ltq-eth
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x60000, size 0x200000
NAND read from offset 60000 failed -74
 0 bytes read: ERROR
Wrong Image Format for bootm command
ERROR: can't get kernel image!
P-2812HNU-Fx #
A minute after loading the RT3062.eeprom file, the box will spontaneously reboot, and then missing all network items?

There´s also a log (same box!) where the wlan is not detected @ all:

Code: Select all

[    0.280941] PCI host bridge to bus 0000:00
[    0.284937] pci_bus 0000:00: root bus resource [mem 0x18000000-0x19ffffff]
[    0.291843] pci_bus 0000:00: root bus resource [io  0x1ae00000-0x1affffff]
[    0.298790] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.305645] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.314207] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]
[    0.321862] clocksource: Switched to clocksource MIPS
[    0.328431] NET: Registered protocol family 2
Only the BAR 0: is shown, which is in all logs.
Not yet found to solve this problem.

DG.
admin
Site Admin
Posts: 478
Joined: 06 Feb 2007, 13:36

Re: LEDE v17.01.2 on ZyXEL P-2812HNU-F1

Post by admin »

Most strange, with command lspci (one day later) i see the following:

Code: Select all

# lspci -vv
00:0e.0 Network controller: Ralink corp. RT3592 Wireless 802.11abgn 2T/2R PCIe
        Subsystem: Ralink corp. Device 3062
        Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort-<MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 30
        Region 0: Memory at 18000000 (32-bit, non-prefetchable) [size=65537]
        Region 1: Memory at <unassigned> (32-bit, non-prefetchable) [size=2]
        Region 2: Memory at <unassigned> (32-bit, non-prefetchable) [size=2]
        Region 3: Memory at <unassigned> (32-bit, non-prefetchable) [size=2]
        Region 4: Memory at <unassigned> (32-bit, non-prefetchable) [size=2]
        Region 5: Memory at <unassigned> (32-bit, non-prefetchable) [size=2]
        Expansion ROM at <unassigned> [disabled] [size=2]
        Capabilities: [40] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
lspci: Unable to load libkmod resources: error -12
Now we see 3062 as Subsystem.
We tried ´rmmod rt2800pci´ copied the original RT3062.eeprom file to /lib/firmware/ folder.
Next run ´modprobe rt2800pci´ and voila, wlan working! (wlan3, but anyway, it works).
Still have to try with real power cycle.

Also weird in this situation is that my TTL-serial logs are different from kernel log within Luci:
Serial log:

Code: Select all

[    0.280934] PCI host bridge to bus 0000:00
[    0.284929] pci_bus 0000:00: root bus resource [mem 0x18000000-0x19ffffff]
[    0.291835] pci_bus 0000:00: root bus resource [io  0x1ae00000-0x1affffff]
[    0.298781] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.305636] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.314174] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]
[    0.321837] clocksource: Switched to clocksource MIPS
[    0.328403] NET: Registered protocol family 2
Kernel log, Luci:

Code: Select all

[    0.280934] PCI host bridge to bus 0000:00
[    0.284929] pci_bus 0000:00: root bus resource [mem 0x18000000-0x19ffffff]
[    0.291835] pci_bus 0000:00: root bus resource [io  0x1ae00000-0x1affffff]
[    0.298781] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.305636] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.313681] pci 0000:00:0e.0: [1814:3062] type 00 class 0x028000
[    0.313736] pci 0000:00:0e.0: reg 0x10: [mem 0xffff0000-0xffffffff]
[    0.314129] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.314174] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]
[    0.321837] clocksource: Switched to clocksource MIPS
[    0.328403] NET: Registered protocol family 2
Why? I don´t know. (Could be due to 1msec delay within serial-TeraTerm?)

Only afterwards the 3592 is never seen again. So maybe the device needs a 'first- good-boot' to stay in that position.
Or maybe my earlier RT3062.eeprom file had an error (is replaced).

Now LEDE6 is in test without any error. Running TOR on all LAN ( & wlan) connections.

Updated Tor to 0.3.1.8-1 (https://gitweb.torproject.org/tor.git/p ... or-0.3.1.8),
which also needs openssl 1.0.2m (https://www.openssl.org/source/).
Box has a default-config & a Tor-config.

DG.
admin
Site Admin
Posts: 478
Joined: 06 Feb 2007, 13:36

Re: LEDE v17.01.2 on ZyXEL P-2812HNU-F1

Post by admin »

Tha last issue, TTL-serial vs. Kernel log is explained in tha system-log :)

Code: Select all

Wed Nov 29 20:59:13 2017 kern.info kernel: [    0.280639] PCI host bridge to bus 0000:00
Wed Nov 29 20:59:13 2017 kern.info kernel: [    0.284633] pci_bus 0000:00: root bus resource [mem 0x18000000-0x19ffffff]
Wed Nov 29 20:59:13 2017 kern.info kernel: [    0.291539] pci_bus 0000:00: root bus resource [io  0x1ae00000-0x1affffff]
Wed Nov 29 20:59:13 2017 kern.info kernel: [    0.298483] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
Wed Nov 29 20:59:13 2017 kern.info kernel: [    0.305337] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
Wed Nov 29 20:59:13 2017 kern.debug kernel: [    0.313387] pci 0000:00:0e.0: [1814:3062] type 00 class 0x028000
Wed Nov 29 20:59:13 2017 kern.debug kernel: [    0.313440] pci 0000:00:0e.0: reg 0x10: [mem 0xffff0000-0xffffffff]
Wed Nov 29 20:59:13 2017 kern.debug kernel: [    0.313833] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
Wed Nov 29 20:59:13 2017 kern.info kernel: [    0.313876] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]
Wed Nov 29 20:59:13 2017 kern.info kernel: [    0.321542] clocksource: Switched to clocksource MIPS
Wed Nov 29 20:59:13 2017 kern.info kernel: [    0.328138] NET: Registered protocol family 2
Kernel.debug messages are NOT shown in TTL-serial log ;)

DG.
admin
Site Admin
Posts: 478
Joined: 06 Feb 2007, 13:36

Re: LEDE v17.01.2 on ZyXEL P-2812HNU-F1

Post by admin »

v17.0.4

Good log (TTL-serial after WEB-reboot):

Code: Select all

[ 8183.721876] br-lan: port 2(wlan0) entered disabled state
[ 8183.725886] br-lan: port 1(eth0.1) entered disabled state
[ 8183.766191] device eth0.1 left promiscuous mode
[ 8183.769437] br-lan: port 1(eth0.1) entered disabled state
[ 8183.805792] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[ 8183.829925] device wlan0 left promiscuous mode
[ 8183.833037] br-lan: port 2(wlan0) entered disabled state
[ 8184.375037] device eth0 left promiscuous mode
[ 8184.485607] eth0: port 5 lost link
[ 8185.161678] eth0: port 0 lost link
[ 8185.390591] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops

ROM VER: 1.1.4
CFG 06
NAND
NAND Read OK

U-Boot SPL 2013.10-openwrt5 (Nov 18 2014 - 19:54:01)
SPL: initializing NAND flash
SPL: checking U-Boot image
SPL: loading U-Boot to RAM
SPL: decompressing U-Boot with LZO
SPL: jumping to U-Boot


U-Boot 2013.10-openwrt5 (Nov 18 2014 - 19:54:01) P-2812HNU-Fx

Board: ZyXEL P-2812HNU-Fx
SoC:   Lantiq VRX288 v1.2
CPU:   500 MHz
IO:    250 MHz
BUS:   250 MHz
BOOT:  NAND
DRAM:  128 MiB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   ltq-eth
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x60000, size 0x200000
 2097152 bytes read: OK
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   MIPS LEDE Linux-4.4.92
   Created:      2017-10-17  17:46:20 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1679364 Bytes = 1.6 MiB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[    0.000000] Linux version 4.4.92 (openwrt@LD861) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3560-79f57e422d) ) #0 Tue Oct 17 17:46:20 2017
[    0.000000] SoC: xRX200 rev 1.2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019556 (MIPS 34Kc)
[    0.000000] MIPS: machine is P2812HNUF1 - ZyXEL P-2812HNU-F1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyLTQ0,115200
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00008000
[    0.000000] Readback ErrCtl register=00008000
[    0.000000] Memory: 123276K/131072K available (3805K kernel code, 158K rwdata, 1160K rodata, 1196K init, 212K bss, 7796K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] Setting up vectored interrupts
[    0.000000] CPU Clock: 500MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041786 ns
[    0.000010] sched_clock: 32 bits at 250MHz, resolution 4ns, wraps every 8589934590ns
[    0.007856] Calibrating delay loop... 332.54 BogoMIPS (lpj=665088)
[    0.042316] pid_max: default: 32768 minimum: 301
[    0.047159] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053722] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.067296] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.076945] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.083239] pinctrl core: initialized pinctrl subsystem
[    0.089122] NET: Registered protocol family 16
[    0.098325] pinctrl-xway 1e100b10.pinmux: Init done
[    0.103850] dma-xway 1e104100.dma: Init done - hw rev: 7, ports: 7, channels: 28
[    0.213965] dcdc-xrx200 1f106a00.dcdc: Core Voltage : 1016 mV
[    0.228961] PCI host bridge [[    9.155383] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.167204] IFXOS, Version 1.5.19 (c) Copyright 2009, Lantiq Deutschland GmbH
[    9.187451] NET: Registered protocol family 8
[    9.190421] NET: Registered protocol family 20
[    9.206909] PPP generic driver version 2.4.2
[    9.220298] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    9.283653] Lantiq (VRX) DSL CPE MEI driver, version 1.5.17.6, (c) 2007-2015 Lantiq Beteiligungs-GmbH & Co. KG

Lantiq CPE API Driver version: DSL CPE API V4.17.18.6
[    9.342415]
[    9.342415] Predefined debug level: 3
[    9.358703] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[    9.365324] Backport generated by backports.git backports-20160324-13-g24da7d3c
[    9.378187] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.390849] Infineon Technologies DEU driver version 2.0.0
[    9.396891] IFX DEU DES initialized (multiblock).
[    9.401154] IFX DEU AES initialized (multiblock).
[    9.405290] IFX DEU ARC4 initialized (multiblock).
[    9.409920] IFX DEU SHA1 initialized.
[    9.413455] IFX DEU MD5 initialized.
[    9.417153] IFX DEU SHA1_HMAC initialized.
[    9.421183] IFX DEU MD5_HMAC initialized.
[    9.444103] nf_conntrack version 0.5.0 (1944 buckets, 7776 max)
[    9.471023] NET: Registered protocol family 24
[    9.478607] usbcore: registered new interface driver ums-alauda
[    9.485847] usbcore: registered new interface driver ums-cypress
[    9.492878] usbcore: registered new interface driver ums-datafab
[    9.499766] usbcore: registered new interface driver ums-freecom
[    9.506897] usbcore: registered new interface driver ums-isd200
[    9.513950] usbcore: registered new interface driver ums-jumpshot
[    9.520942] usbcore: registered new interface driver ums-karma
[    9.528297] usbcore: registered new interface driver ums-sddr09
[    9.535434] usbcore: registered new interface driver ums-sddr55
[    9.542715] usbcore: registered new interface driver ums-usbat
[    9.550424] usbcore: registered new interface driver usblp
[    9.574074] xt_time: kernel timezone is -0000
[    9.877982] PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
[    9.882444] ieee80211 phy0: rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'RT3062.eeprom'.
[    9.894043] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3572, rev 0223 detected
[    9.900426] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0008 detected
[    9.921855] kmodloader: done loading kernel modules from /etc/modules.d/*
[   10.523615] random: jshn: uninitialized urandom read (4 bytes read, 45 bits of entropy available)
[   18.457624] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   18.483546] device eth0 entered promiscuous mode
[   18.499561] device eth0.1 entered promiscuous mode
[   18.522400] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   18.603720] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   19.133824] eth0: port 0 got link
[   19.136628] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   19.189945] br-lan: port 1(eth0.1) entered forwarding state
[   19.194198] br-lan: port 1(eth0.1) entered forwarding state
[   19.199980] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[   19.353679] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   19.394337] eth0: port 5 got link
[   20.920314] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2860.bin'
[   20.938967] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.40
[   21.044618] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   21.068456] device wlan0 entered promiscuous mode
[   21.197627] br-lan: port 1(eth0.1) entered forwarding state
[   23.208697] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   23.213883] br-lan: port 2(wlan0) entered forwarding state
[   23.219209] br-lan: port 2(wlan0) entered forwarding state
[   25.221562] br-lan: port 2(wlan0) entered forwarding state
[   26.897645] random: nonblocking pool is initialized
DG.
admin
Site Admin
Posts: 478
Joined: 06 Feb 2007, 13:36

Wtf DNS?

Post by admin »

Wtf DNS? Solved.

Why does my openWrt router first allow access to a local server, but after 1 minute the domain name cannot be resolved??

This error (possible DNS-rebind attack detected: dgcomsys.noip.me) only occur locally behind 2 openWrt routers, and only doing this the last week.
Earlier (Uptime about 295d 2h 44m 13s, my 1st Lede router) never had this issue!
Image

Nothing has been changed, so what is causing this weird behaviour?
Why, after several good connections the request is forwarded and will fail??? (forwarded dgcomsys.noip.me to x.x.x.x)

This is a full log:

Code: Select all

Wed Apr 25 13:13:34 2018 daemon.info dnsmasq[29207]: 34 127.0.0.1/59015 query[A] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:13:34 2018 daemon.info dnsmasq[29207]: 34 127.0.0.1/59015 cached dgcomsys.noip.me is 77.251.207.74
Wed Apr 25 13:13:34 2018 daemon.info dnsmasq[29207]: 35 127.0.0.1/59015 query[AAAA] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:13:34 2018 daemon.info dnsmasq[29207]: 35 127.0.0.1/59015 cached dgcomsys.noip.me is NODATA-IPv6
Wed Apr 25 13:13:38 2018 daemon.info hostapd: wlan0-1: STA 78:3a:84:d4:d7:22 WPA: group key handshake completed (RSN)
Wed Apr 25 13:13:50 2018 daemon.info dnsmasq[29207]: 36 127.0.0.1/45360 query[A] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:13:50 2018 daemon.info dnsmasq[29207]: 36 127.0.0.1/45360 cached dgcomsys.noip.me is 77.251.207.74
Wed Apr 25 13:13:50 2018 daemon.info dnsmasq[29207]: 37 127.0.0.1/45360 query[AAAA] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:13:50 2018 daemon.info dnsmasq[29207]: 37 127.0.0.1/45360 cached dgcomsys.noip.me is NODATA-IPv6
Wed Apr 25 13:13:50 2018 daemon.info dnsmasq[29207]: 38 127.0.0.1/53204 query[A] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:13:50 2018 daemon.info dnsmasq[29207]: 38 127.0.0.1/53204 cached dgcomsys.noip.me is 77.251.207.74
Wed Apr 25 13:13:50 2018 daemon.info dnsmasq[29207]: 39 127.0.0.1/53204 query[AAAA] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:13:50 2018 daemon.info dnsmasq[29207]: 39 127.0.0.1/53204 cached dgcomsys.noip.me is NODATA-IPv6
Wed Apr 25 13:13:53 2018 daemon.info dnsmasq[29207]: 40 127.0.0.1/44499 query[A] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:13:53 2018 daemon.info dnsmasq[29207]: 40 127.0.0.1/44499 cached dgcomsys.noip.me is 77.251.207.74
Wed Apr 25 13:13:53 2018 daemon.info dnsmasq[29207]: 41 127.0.0.1/44499 query[AAAA] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:13:53 2018 daemon.info dnsmasq[29207]: 41 127.0.0.1/44499 cached dgcomsys.noip.me is NODATA-IPv6
Wed Apr 25 13:13:53 2018 daemon.info dnsmasq[29207]: 42 127.0.0.1/49509 query[A] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:13:53 2018 daemon.info dnsmasq[29207]: 42 127.0.0.1/49509 cached dgcomsys.noip.me is 77.251.207.74
Wed Apr 25 13:13:53 2018 daemon.info dnsmasq[29207]: 43 127.0.0.1/49509 query[AAAA] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:13:53 2018 daemon.info dnsmasq[29207]: 43 127.0.0.1/49509 cached dgcomsys.noip.me is NODATA-IPv6
Wed Apr 25 13:13:55 2018 daemon.info dnsmasq[29207]: 44 127.0.0.1/35613 query[A] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:13:55 2018 daemon.info dnsmasq[29207]: 44 127.0.0.1/35613 forwarded dgcomsys.noip.me to 8.8.8.8
Wed Apr 25 13:13:55 2018 daemon.info dnsmasq[29207]: 44 127.0.0.1/35613 forwarded dgcomsys.noip.me to 208.67.220.220
Wed Apr 25 13:13:55 2018 daemon.info dnsmasq[29207]: 44 127.0.0.1/35613 forwarded dgcomsys.noip.me to 192.168.117.1
Wed Apr 25 13:13:55 2018 daemon.warn dnsmasq[29207]: possible DNS-rebind attack detected: dgcomsys.noip.me
Wed Apr 25 13:13:55 2018 daemon.info dnsmasq[29207]: 45 127.0.0.1/35613 query[AAAA] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:13:55 2018 daemon.info dnsmasq[29207]: 45 127.0.0.1/35613 cached dgcomsys.noip.me is NODATA-IPv6
Wed Apr 25 13:13:55 2018 daemon.info dnsmasq[29207]: 46 127.0.0.1/34836 query[PTR] 1.1.168.192.in-addr.arpa from 127.0.0.1
Wed Apr 25 13:13:55 2018 daemon.info dnsmasq[29207]: 46 127.0.0.1/34836 /tmp/hosts/dhcp.cfg02411c 192.168.1.1 is OpenWrt-DG03.lan3
Wed Apr 25 13:13:57 2018 daemon.info dnsmasq[29207]: 47 127.0.0.1/43186 query[A] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:13:57 2018 daemon.info dnsmasq[29207]: 47 127.0.0.1/43186 forwarded dgcomsys.noip.me to 192.168.117.1
Wed Apr 25 13:13:57 2018 daemon.warn dnsmasq[29207]: possible DNS-rebind attack detected: dgcomsys.noip.me
Wed Apr 25 13:13:57 2018 daemon.info dnsmasq[29207]: 48 127.0.0.1/43186 query[AAAA] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:13:57 2018 daemon.info dnsmasq[29207]: 48 127.0.0.1/43186 cached dgcomsys.noip.me is NODATA-IPv6
Wed Apr 25 13:13:57 2018 daemon.info dnsmasq[29207]: 49 127.0.0.1/55870 query[PTR] 1.1.168.192.in-addr.arpa from 127.0.0.1
Wed Apr 25 13:13:57 2018 daemon.info dnsmasq[29207]: 49 127.0.0.1/55870 /tmp/hosts/dhcp.cfg02411c 192.168.1.1 is OpenWrt-DG03.lan3
Wed Apr 25 13:14:02 2018 daemon.info dnsmasq[29207]: 50 127.0.0.1/50168 query[A] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:14:02 2018 daemon.info dnsmasq[29207]: 50 127.0.0.1/50168 forwarded dgcomsys.noip.me to 192.168.117.1
Wed Apr 25 13:14:02 2018 daemon.info dnsmasq[29207]: 51 127.0.0.1/50168 query[AAAA] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:14:02 2018 daemon.info dnsmasq[29207]: 51 127.0.0.1/50168 cached dgcomsys.noip.me is NODATA-IPv6
Wed Apr 25 13:14:03 2018 daemon.warn dnsmasq[29207]: possible DNS-rebind attack detected: dgcomsys.noip.me
First a good DNS:
Wed Apr 25 13:13:53 2018 daemon.info dnsmasq[29207]: 42 127.0.0.1/49509 query[A] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:13:53 2018 daemon.info dnsmasq[29207]: 42 127.0.0.1/49509 cached dgcomsys.noip.me is 77.251.207.74
Wed Apr 25 13:13:53 2018 daemon.info dnsmasq[29207]: 43 127.0.0.1/49509 query[AAAA] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:13:53 2018 daemon.info dnsmasq[29207]: 43 127.0.0.1/49509 cached dgcomsys.noip.me is NODATA-IPv6
Next request is forwarded and fails:
Wed Apr 25 13:13:55 2018 daemon.info dnsmasq[29207]: 44 127.0.0.1/35613 query[A] dgcomsys.noip.me from 127.0.0.1
Wed Apr 25 13:13:55 2018 daemon.info dnsmasq[29207]: 44 127.0.0.1/35613 forwarded dgcomsys.noip.me to 8.8.8.8
Wed Apr 25 13:13:55 2018 daemon.info dnsmasq[29207]: 44 127.0.0.1/35613 forwarded dgcomsys.noip.me to 208.67.220.220
Wed Apr 25 13:13:55 2018 daemon.info dnsmasq[29207]: 44 127.0.0.1/35613 forwarded dgcomsys.noip.me to 192.168.117.1
Wed Apr 25 13:13:55 2018 daemon.warn dnsmasq[29207]: possible DNS-rebind attack detected: dgcomsys.noip.me
Privoxy logs the following (Zoneminder behind same ip address):
2018-04-25 13:22:49.227 77a07d3c Info: Can not resolve dgcomsys.noip.me: Name does not resolve
2018-04-25 13:22:49.266 77a07d3c Crunch: DNS failure: http://dgcomsys.noip.me:92/zm/index.php ... atch&mid=4
Now my local server is only accessible from outside my local domain, how weird can it be?

SOLVED !
After about 300 days, dnsmasq needs a restart (just from web-gui) ;)
Image

Now the error seems to be solved.
Also the ping request -on name- on the first router returns the external ip instead of local.
Another reason to rebuild the (older) openWrt router with new firmware !

DG.
Post Reply