how to create an access-list to allow ntp

hi I have an asa5505 connected to my cisco2950 and currently my master dc/ad/dhcp/dns has internet access.

qns1.  I wish to know the correct way of allowing access to an external ntp  ?

I am not sure of how to create an access-list or if an access-group should be used, in-conjunction with my current config.
mikey250Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
0
Natty GregIn Theory (IT)Commented:
Use the config below to set the time and date, microsoft provides good ntp server google it, and use the non authenticated config to connect to it. ( no microsoft will not provide you with auth but there servers are reliable)
(remember this will be the weakest point in your secure network)


Configure Clock Settings:

To configure the clock settings of the ASA appliance, use the clock set command as shown below:

ciscoasa# clock set hh:mm:ss [day month | month day] year

Example:

ciscoasa# clock set 18:30:00 Apr 10 2009

To verify the correct clock on the appliance, use the show clock command.

Configure Time Zone and Daylight Saving Time:

To configure the time zone and the summer daylight saving time use the commands below:

ciscoasa# config t
ciscoasa(config)# clock timezone [zone name] [offset hours from UTC]
ciscoasa(config)# clock summer-time [zone name] recurring [week weekday month hh:mm week weekday month hh:mm] [offset]

Example:

ciscoasa(config)# clock timezone MST -7
ciscoasa(config)# clock summer-time MST recurring 1 Sunday April 2:00 last Sunday October 2:00

Configure Network Time Protocol (NTP):

If there is an NTP server in the network that provides accurate clock settings, then you can configure the firewall to synchronize its time with the NTP server. Both an authenticated and non-authenticated NTP is supported:

Non-Authenticated NTP:

ciscoasa(config)# ntp server [ip address of NTP] source [interface name]

Example:

ciscoasa(config)# ntp server 10.1.23.45 source inside

Authenticated NTP:

ciscoasa(config)# ntp authenticate
ciscoasa(config)# ntp authentication-key [key ID] md5 [ntp key]
ciscoasa(config)# ntp trusted-key [key ID]
ciscoasa(config)# ntp server [ip address of NTP] key [key ID] source [intf name]

Example:

ciscoasa(config)# ntp authenticate
ciscoasa(config)# ntp authentication-key 32 md5 secretkey1234
ciscoasa(config)# ntp trusted-key 32
ciscoasa(config)# ntp server 10.1.2.3 key 32 source inside
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mikey250Author Commented:
hi nattygreg, thanks for your input but yes I have pretty much that config already put to one side.

what I wanted to do was ensure ntp configured on my asa5505 was configured in an 'access-group 1st and then an 'access-list' created and then pointed to an outside ntp free device so I wanted to know how to do this first and the wait for a response so I know it is working before ensure my master dc can sync to an external ntp also.

I am currently trying to put together an access-group & access-list that allows this but not sure if I have it correct yet.  currently I have created an 'allow_icmp' for inbound via a youtube video.
0
Choose an Exciting Career in Cybersecurity

Help prevent cyber-threats and provide solutions to safeguard our global digital economy. Earn your MS in Cybersecurity. WGU’s MSCSIA degree program was designed in collaboration with national intelligence organizations and IT industry leaders.

mikey250Author Commented:
I was thinking something like below that allows me to ping my public ntp server as below and then do: sh ntp status - for example... my network is disconnected at the moment

config t
ntp server 93.93.131.217 source outside

object network outside_subnet
object network inside_subnet
  subnet 192.168.0.0 255.255.255.0
object-group icmp-type allow-icmp
 icmp-object echo-reply
 icmp-object time-exceeded
 icmp-object unreachable
 icmp-object traceroute

access-list INBOUND extended permit icmp any any object-group ALLOW-ICMP
access-list outbound extended permit udp any any eq ntp
0
mikey250Author Commented:
& the below to allow my single master dc to keep ntp clock timing with the below:

access-list outbound extended permit udp host 192.168.1.1 any eq 123 or ntp (not sure)
access-group outbound in interface inside
0
lrmooreCommented:
If you already have an outbound access list that only allows certain hosts out on certain ports, then yes you need the outbound acl
Access-list outbound permit udp host 192.168.1.1 any eq 123

If you do not currently have an outbound acl applied, then don't do this. You will block everything else.

You dont need the inbound ace because if the packet is allowed out, the response is automatically allowed back in.
0
mikey250Author Commented:
hi I have since set asa5505 back to factory default settings.

I have now only added:

access-list outbound extended permit udp any any eq ntp

ntp server 93.93.131.217 source outside
0
mikey250Author Commented:
I can ping 8.8.8.8 successful

I cannot yet ping 93.93.131.217 - but I realise it may take a long time to allow

I am not sure if my acl above is all that is needed  ?
0
Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
Could it be that the IP you are trying to ping does not accept ping request?
0
mikey250Author Commented:
hi mohammed, yes I realise if I cannot ping the ip address: 93.93.131.217 then it may not be accepting ping requests.

I have also read the below url regarding also microsofts free timer server:

http://www.techrepublic.com/article/synchronize-a-cisco-routers-clock-with-network-time-protocol-ntp/

via my standalone win 7 desktop which is plugged directly into my virgin media box I carried out the below:

ping time-nw.nist.gov - failed ping
ping 131.107.1.10 - failed ping
ping 131.107.1.100 - failed ping
0
mikey250Author Commented:
I have been looking at links like this but nothing seems to ping and not even sure if I need to register.

http://support.ntp.org/bin/view/Servers/StratumOneTimeServers
0
mikey250Author Commented:
good advice appreciated.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Cisco

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.