Need help with NTP Servers

Status
Not open for further replies.

nwats005

Dabbler
Joined
Nov 25, 2015
Messages
11
Hello I am very inexperienced with freeNAS, I am using it in a small business environment with the 9.3 Stable build. It acts as a file server primarily for us (only 4 clients). I have noticed whenever we save files or create folders directly on the server it is the incorrect time. I did some research and figured it was probably an issue with NTP and the server not being able to access the 3 default NTP servers. I think our freeNAS box can't access the internet in order to sync with the NTP servers. I would like to know what the issue is and would like to even eventually, safely access the server outside of our network to be able to work from home or off site.

Thanks,
Nathan
 

nwats005

Dabbler
Joined
Nov 25, 2015
Messages
11
Code:
[root@freenas ~]#                                                              
[root@freenas ~]# netstat -rn                                                  
Routing tables                                                                 
                                                                               
Internet:                                                                      
Destination        Gateway            Flags    Refs      Use  Netif Expire     
default            192.168.1.1        UGS         0        0   msk0            
127.0.0.1          link#11            UH          0     5773    lo0            
192.168.1.0/24     link#4             U           0   166506   msk0            
192.168.1.10       link#4             UHS         0       11    lo0            
                                                                               
Internet6:                                                                     
Destination                       Gateway                       Flags      Netif
Expire                                                                        
::/96                             ::1                           UGRS        lo0
::1                               link#11                       UH          lo0
::ffff:0.0.0.0/96                 ::1                           UGRS        lo0
fe80::/10                         ::1                           UGRS        lo0
fe80::%lo0/64                     link#11                       U           lo0
fe80::1%lo0                       link#11                       UHS         lo0
ff01::%lo0/32                     ::1                           U           lo0
ff02::/16                         ::1                           UGRS        lo0
ff02::%lo0/32                     ::1                           U           lo0
[root@freenas ~]#                                                             
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
msk0? really?

So anyways you have a default route. Can you ping things externally?

Presumably you have some sort of NAT gateway at 192.168.1.1. Perhaps it is blocking NTP.
 

nwats005

Dabbler
Joined
Nov 25, 2015
Messages
11
Not sure what msk0 is. I cant ping anything externally. No I do not have any sort of NAT gateway on the router. Should I? I am not sure how to go about setting that up if I do.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Uh. That's a NAT device, just like 99.999% of all home routers....

Correct. That's a """"router"""" (i.e. a NAT gateway), not a router (i.e. a real router, like a Cisco 7609).

So you're saying if you type "ping 8.8.8.8" at a CLI prompt you get nothing?
 

nwats005

Dabbler
Joined
Nov 25, 2015
Messages
11
Code:
Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\Users\NathanWorkstation>ping 8.8.8.8

Pinging 8.8.8.8 with 32 bytes of data:
Reply from 8.8.8.8: bytes=32 time=19ms TTL=58
Reply from 8.8.8.8: bytes=32 time=19ms TTL=58
Reply from 8.8.8.8: bytes=32 time=20ms TTL=58
Reply from 8.8.8.8: bytes=32 time=20ms TTL=58

Ping statistics for 8.8.8.8:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 19ms, Maximum = 20ms, Average = 19ms

C:\Users\NathanWorkstation>


Pinged from my workstation
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Code:
Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\Users\NathanWorkstation>ping 8.8.8.8

Pinging 8.8.8.8 with 32 bytes of data:
Reply from 8.8.8.8: bytes=32 time=19ms TTL=58
Reply from 8.8.8.8: bytes=32 time=19ms TTL=58
Reply from 8.8.8.8: bytes=32 time=20ms TTL=58
Reply from 8.8.8.8: bytes=32 time=20ms TTL=58

Ping statistics for 8.8.8.8:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 19ms, Maximum = 20ms, Average = 19ms

C:\Users\NathanWorkstation>
Please explain to us what the benefit of pinging from your client machine is.

You need to ping FROM the freenas box
 

nwats005

Dabbler
Joined
Nov 25, 2015
Messages
11
nqwmr4.png
 

nwats005

Dabbler
Joined
Nov 25, 2015
Messages
11
I set 8.8.8.8 for nameserver 1 and 8.8.4.4 for nameserver 2. When I go to the shell and ping 8.8.8.8 freeNAS keeps pinging and won't stop. What should I check for now that I have those two nameservers established?
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
I set 8.8.8.8 for nameserver 1 and 8.8.4.4 for nameserver 2. When I go to the shell and ping 8.8.8.8 freeNAS keeps pinging and won't stop. What should I check for now that I have those two nameservers established?
Ctrl+C will stop the ping.

Ping Google.com and see if it responds.
 

nwats005

Dabbler
Joined
Nov 25, 2015
Messages
11
Code:
[root@freenas ~]# ping google.com                                              
PING google.com (63.88.73.154): 56 data bytes                                  
64 bytes from 63.88.73.154: icmp_seq=0 ttl=59 time=14.990 ms                   
64 bytes from 63.88.73.154: icmp_seq=1 ttl=59 time=13.850 ms                   
64 bytes from 63.88.73.154: icmp_seq=2 ttl=59 time=14.744 ms                   
64 bytes from 63.88.73.154: icmp_seq=3 ttl=59 time=14.637 ms                   
64 bytes from 63.88.73.154: icmp_seq=4 ttl=59 time=14.138 ms                   
64 bytes from 63.88.73.154: icmp_seq=5 ttl=59 time=13.904 ms                   
64 bytes from 63.88.73.154: icmp_seq=6 ttl=59 time=14.021 ms                   
64 bytes from 63.88.73.154: icmp_seq=7 ttl=59 time=14.710 ms                   
64 bytes from 63.88.73.154: icmp_seq=8 ttl=59 time=14.301 ms                   
64 bytes from 63.88.73.154: icmp_seq=9 ttl=59 time=14.191 ms                   
64 bytes from 63.88.73.154: icmp_seq=10 ttl=59 time=13.885 ms                  
64 bytes from 63.88.73.154: icmp_seq=11 ttl=59 time=13.877 ms                  
64 bytes from 63.88.73.154: icmp_seq=12 ttl=59 time=14.770 ms                  
64 bytes from 63.88.73.154: icmp_seq=13 ttl=59 time=14.864 ms                  
64 bytes from 63.88.73.154: icmp_seq=14 ttl=59 time=14.056 ms                  
^C                                                                             
--- google.com ping statistics ---                                             
15 packets transmitted, 15 packets received, 0.0% packet loss                  
round-trip min/avg/max/stddev = 13.850/14.329/14.990/0.397 ms                  
[root@freenas ~]#                                                              
                                    
 

nwats005

Dabbler
Joined
Nov 25, 2015
Messages
11
zoN7ds.png

FreeNAS seems to now be connecting to the NTP servers, just created a new file on the server and has the correct time.

Thanks for the help guys.

If I were to go about connecting to the server from home, would a vpn be the best solution? How would you guys go about that?
 
Status
Not open for further replies.
Top