Kitz Forum

Broadband Related => Broadband Hardware => Topic started by: chenks on May 26, 2018, 10:25:20 AM

Title: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: chenks on May 26, 2018, 10:25:20 AM
i have a set in bridge mode (connected to my edgerouter X)
i've noticed that even when timeservers have been set, the zyxel system time is wrong and it won't seem to sync time from any of the timeservers that are set.

any ideas how to get this to work?
firmware is V1.00(AAJZ.14)C0

(https://image.ibb.co/n2jd88/Capture.jpg)
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: Weaver on May 26, 2018, 11:11:28 AM
I have exactly the same (_apparent_) problem. My modem does not have the ability to access the internet, that's why.
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: chenks on May 26, 2018, 11:18:08 AM
in which case, can the time be manually set so that the device at least has the correct date/time?
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: Weaver on May 26, 2018, 11:39:07 AM
I don't know how to do it on mine, I am still very inexperienced with the device. Can't see it in the GUI, but that could just be my stupidity. I should check the CLI.
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: roseway on May 26, 2018, 11:43:17 AM
Why do you need to have the time set in the modem when it's in bridge mode? It doesn't use the time for anything.
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: Weaver on May 26, 2018, 11:50:44 AM
I don't know enough about these devices yet, so I'm guessing: event logs, SNMP, I think it can email logs out.
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: chenks on May 26, 2018, 11:51:33 AM
i don't "need" to have the time set, but i would "like" to have the time set.
afterall, if the time is being displayed in the GUI of the device then it might as well be correct (and i have the device accessible on my LAN).
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: johnson on May 26, 2018, 11:55:28 AM
Why do you need to have the time set in the modem when it's in bridge mode? It doesn't use the time for anything.

Seconded. It doesnt perform any logging in bridge mode which is the only reason I could think of for wanting time stamps. Edit: Or at least I have never gotten mine to when playing with the log settings.

Also performing the necessary wangling to get it to be able to talk to ntp servers makes it a part of your network and a possible attack surface, given its ancient 2.6.x linux kernel I know I'd rather have mine segregated.
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: johnson on May 26, 2018, 12:04:54 PM
Found this thread I was thinking of when I read the question:

https://forum.kitz.co.uk/index.php/topic,19966.0.html
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: chenks on May 26, 2018, 12:08:34 PM
Seconded. It doesnt perform any logging in bridge mode which is the only reason I could think of for wanting time stamps. Edit: Or at least I have never gotten mine to when playing with the log settings.

Also performing the necessary wangling to get it to be able to talk to ntp servers makes it a part of your network and a possible attack surface, given its ancient 2.6.x linux kernel I know I'd rather have mine segregated.

it's already part of my network.
LAN1 to PPPoE port, LAN4 to normal network.
modem has an 192.168.1x IP on my LAN so i can access it as normal.
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: Weaver on May 26, 2018, 12:13:21 PM
@Chenks I have the problem that the modem has no default gateway set up on that second (LAN-facing) ethernet port. That’s one of the reasons why mine doesn't talk to the internet: it doesn't know how to.
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: johnson on May 26, 2018, 12:14:55 PM
it's already part of my network.
LAN1 to PPPoE port, LAN4 to normal network.
modem has an 192.168.1x IP on my LAN so i can access it as normal.

Ah ok, sorry I assumed you were using the SNAT 1 cable trick where the modem cant see any other interfaces than the different subnet one you assign to router port it connects to.

Have a look through that thread if you want to get into setting the time, it honestly looks like a lot of work for such a cosmetic thing though.
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: chenks on May 26, 2018, 12:17:20 PM
@Chenks I have the problem that the modem has no default gateway set up on that second (LAN-facing) ethernet port. That’s one of the reasons why mine doesn't talk to the internet: it doesn't know how to.

yeah will most likely be the issue.
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: underzone on May 26, 2018, 12:39:37 PM
telnet in as supervisor
sh #start busybox shell
date -s "2018-05-29 12:39"


done.
 ;D
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: spring on May 26, 2018, 12:45:34 PM
Maybe retrieve the time from another device. Is it possible to run a "time server" on another device and use that as the NTP server?
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: chenks on May 26, 2018, 12:57:34 PM
telnet in as supervisor
sh #start busybox shell
date -s "2018-05-29 12:39"

how do you get the supervisor login details?
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: chenks on May 26, 2018, 12:57:51 PM
Maybe retrieve the time from another device. Is it possible to run a "time server" on another device and use that as the NTP server?

i'm sure that's possible.
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: hushcoden on May 26, 2018, 01:01:42 PM
telnet in as supervisor
sh #start busybox shell
date -s "2018-05-29 12:39"


done.
 ;D
Indeed, it works, thanks  :thumbs:
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: hushcoden on May 26, 2018, 01:17:58 PM
how do you get the supervisor login details?

Have a read here: https://forum.kitz.co.uk/index.php/topic,21513.msg372337.html#msg372337
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: j0hn on May 26, 2018, 01:20:37 PM
https://forum.kitz.co.uk/index.php/topic,19966.msg358884.html#msg358884

This worked for me. I still have the correct time in my log, running in bridge mode.

Quote
Just tried this on my VMG1312-B10A and had success.

I did the following...
Resolve the NTP servers hostname.
e.g 0.uk.pool.ntp.org to 85.199.214.101
Under the time menu, select "other" for the NTP server and enter the resolved I.P from above.
Disable the firewall.
Add a static route like so:
Active: check
Name: NTP1
IPV4
Destination IP: Resolved IP from above
Subnet Mask: 255.255.255.255
Use Gateway: Enable
Gateway: Your routers I.P (192.168.1.2)
Interface: Default/Bro
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: Weaver on May 26, 2018, 02:01:43 PM
Indeed, as spring says, that would be one way out. If I had a local box up on my LAN itself acting as an NTP server then that would do the trick, as no gateway would be needed, it would be on-link.
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: hushcoden on May 26, 2018, 02:12:51 PM
https://forum.kitz.co.uk/index.php/topic,19966.msg358884.html#msg358884

This worked for me. I still have the correct time in my log, running in bridge mode.

It would be interesting to understand how to get that working with a one-cable set-up rather than the two-wire config as described here https://kitz.co.uk/routers/zyxel_VMG8324-B10A_bridge.htm
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: chenks on May 26, 2018, 04:42:24 PM
well luckily i have a windows 10 pro system on the network that has the w32time service.
i enabled it so that system can be an NTP server.
but even after telling the zyxel to use that IP it still doesn't update the date/time.

https://vicon-security.zendesk.com/hc/en-us/articles/210734963-Setting-up-a-Windows-PC-as-a-NTP-server

edit - although on further testing, it looks like the NTP server service may not be operating correctly.

Quote
C:\Users\chenk>w32tm /stripchart /computer:192.168.1.2
Tracking 192.168.1.2 [192.168.1.2:123].
The current time is 26/05/2018 17:26:33.
17:26:33, error: 0x800705B4
17:26:36, error: 0x800705B4
17:26:39, error: 0x800705B4
17:26:42, error: 0x800705B4
17:26:45, error: 0x800705B4
17:26:48, error: 0x800705B4
17:26:51, error: 0x800705B4
17:26:54, error: 0x800705B4
17:26:57, error: 0x800705B4
17:27:00, error: 0x800705B4
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: Weaver on May 26, 2018, 06:22:49 PM
If memory serves that is more like an NTP client, it's a server for processes in the local machine only, no? I don't remember w32time re-publishing time services on the LAN. Sincere apologies if I'm wrong though, someone can look it up I’m sure.
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: chenks on May 26, 2018, 06:34:40 PM
the URL i posted suggests otherwise?
you have to physically enable this to make it an NTP server.
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: Weaver on May 26, 2018, 06:43:56 PM
Don't listen to me, I'm incredibly rusty, haven't touched a Windows NT family box in years. :-)
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: chenks on May 26, 2018, 06:51:36 PM
it's Windows 10... don't think there's much NT stuff left now.
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: spring on May 26, 2018, 08:18:42 PM
Then it's both the client and server, or at least the client.

Found this among many others: https://support.microsoft.com/en-us/help/3201265/windows-time-service-settings-are-not-preserved-during-an-in-place-upg

I'll try search more.


Edit: try this https://scriptkidding.blogspot.co.il/2017/03/time-server-cannot-be-queried-error.html

Edit2: Never mind, try turning off the firewall and NAT (broadband: untick "NAT Enable" and nat: alg -> "NAT ALG" to disabled) on your b10a and set the time server to pool.ntp.org on your Windows, and say results

Edit3: Never mind any of the above, I thought the log was from the router, https://support.microsoft.com/en-us/help/816042/how-to-configure-an-authoritative-time-server-in-windows-server
try downloading both of their automatic solutions, but before that i'd also
Quote
net stop w32time

w32tm.exe /unregister

w32tm.exe /register

net start w32time
i dont really know what im doing but it doesn't cost right xD
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: chenks on May 27, 2018, 07:38:46 AM
Ok let me clarify as there seems to be a little confusion.
I enable the time server service on Windows 10.
Checked it's running and it is.

Tried to poll it from another system on the network and the result I got as what posted in the previous post.
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: spring on May 27, 2018, 02:40:55 PM
Ok let me clarify as there seems to be a little confusion.
I enable the time server service on Windows 10.
Checked it's running and it is.

Tried to poll it from another system on the network and the result I got as what posted in the previous post.
What does it cost to try what I said?
Honestly, this reply shows just how important this "issue" is. I'm not going to enter this thread anymore.

PS. That's the Time service, both client and server, for using it as server it has to be set up with commands.

i enabled it so that system can be an NTP server.
This error simply means there's no server because you didn't set up one.


Also just 1 of them is what you should download, in "Configuring the Windows Time service to use an external time source" section. That's the only thing you should do before trying to sync time on the ZyXEL again.

Proof enabling the service isn't enough: https://www.interfacett.com/blogs/creating-standalone-ntp-server-windows/

Documentation of Windows time service: https://docs.microsoft.com/en-us/windows-server/networking/windows-time-service/windows-time-service-tools-and-settings
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: chenks on May 27, 2018, 07:44:48 PM
What does it cost to try what I said?
Honestly, this reply shows just how important this "issue" is. I'm not going to enter this thread anymore.

you seem to be reading way too much into the post, and as such you've grossly mis-read the intent.
i thought it would be valuable clarify what had been done as your previous post had mutilple edits that had redacted the previous edit and so.
it was in danger of losing focus and causing confusion.

the "issue" is of no real importance, it's simply something that would be "good" to fix.
i'm not going to beg you to continue to contribute, the "issue" is not that important to me or anyone else.
i've spent the day out in the sun, i hope you did the same. this "issue" is not something that anyone should spend their time on.
Title: Re: Zyxel VMG1312-B10A - time settings when in bridge mode
Post by: chenks on June 06, 2018, 11:53:30 AM
https://forum.kitz.co.uk/index.php/topic,19966.msg358884.html#msg358884

This worked for me. I still have the correct time in my log, running in bridge mode.

thanks, just tried this and it worked a treat.