{"id":2080,"date":"2013-10-05T20:29:46","date_gmt":"2013-10-05T18:29:46","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=2080"},"modified":"2021-11-22T17:16:00","modified_gmt":"2021-11-22T16:16:00","slug":"wie-kann-die-systemzeit-in-openwrt-per-ntp-eingestellt-werden","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=2080","title":{"rendered":"Wie kann die Systemzeit in OpenWrt per NTP eingestellt werden?"},"content":{"rendered":"<p>Die Systemzeit ist schon wichtig, da sonst die Logs nicht den richtigen Zeitstempel bekommen und der OpenVpn Server braucht auch die richtige Zeit.<\/p>\n<p>Der NTP port f\u00fcr UDP ist 123.<\/p>\n<p><code>opkg update<br \/>\nopkg install ntpd ntpdate ntpclient ntp-utils<br \/>\n\/etc\/init.d\/sysntpd disable<br \/>\n\/etc\/init.d\/ntpd enable<br \/>\n\/etc\/init.d\/ntpd start<br \/>\nnetstat -l | grep ntp<br \/>\nntpdate pool.ntp.org<\/code><\/p>\n<p>Zeitzone setzen in <strong>\/etc\/config\/system<\/strong><\/p>\n<p>config system<br \/>\n        option hostname &#8218;OpenWrt&#8216;<br \/>\n        option timezone &#8218;CET-1CEST,M3.5.0,M10.5.0\/3&#8216;<br \/>\n        option zonename &#8218;Europe\/Berlin&#8216;<\/p>\n<p>Oder einfach \u00fcber Luci, im Men\u00fc System-System:<\/p>\n<figure id=\"attachment_2081\" aria-describedby=\"caption-attachment-2081\" style=\"width: 640px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2013\/10\/Bildschirmfoto-2013-10-05-um-20.25.04.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2013\/10\/Bildschirmfoto-2013-10-05-um-20.25.04-1024x297.png\" alt=\"OpenWrt Luci Gui - Einstellen der Systemzeit\" width=\"640\" height=\"185\" class=\"size-large wp-image-2081\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2013\/10\/Bildschirmfoto-2013-10-05-um-20.25.04-1024x297.png 1024w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2013\/10\/Bildschirmfoto-2013-10-05-um-20.25.04-300x87.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2013\/10\/Bildschirmfoto-2013-10-05-um-20.25.04.png 1287w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><figcaption id=\"caption-attachment-2081\" class=\"wp-caption-text\">OpenWrt Luci Gui &#8211; Einstellen der Systemzeit<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Die Systemzeit ist schon wichtig, da sonst die Logs nicht den richtigen Zeitstempel bekommen und der OpenVpn Server braucht auch die richtige Zeit. Der NTP port f\u00fcr UDP ist 123. opkg update opkg install ntpd ntpdate ntpclient ntp-utils \/etc\/init.d\/sysntpd disable \/etc\/init.d\/ntpd enable \/etc\/init.d\/ntpd start netstat -l | grep ntp ntpdate pool.ntp.org Zeitzone setzen in \/etc\/config\/system &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/blog.wenzlaff.de\/?p=2080\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eWie kann die Systemzeit in OpenWrt per NTP eingestellt werden?\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[808,695],"tags":[120,1005,679,1008,1007,1003,1006,678,1004,386],"class_list":["post-2080","post","type-post","status-publish","format-standard","hentry","category-linux-2","category-tp-wr703n","tag-datum","tag-datum-einstellen","tag-luci","tag-luci-datum","tag-luci-zeit","tag-ntp","tag-ntpdate","tag-openwrt","tag-uhrzeit","tag-zeit"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/2080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2080"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/2080\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2080"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2080"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}