From: "Maksim N. Reziapkin" <Maksim.Reziapkin@avalon.ru> To: <community@altlinux.ru> Subject: [Comm] ntpd & iptables: нет конекта с внешним сервером времени... Date: Wed, 17 Nov 2004 02:09:27 +0300 Message-ID: <E1B7C89B8DCB084C809A22D7FEB90B380BA9B0@frodo.avalon.ru> (raw) Привет. сразу извинюсь за кодировочку :( вапрос у метя такой. значит решил я поднять в сетке демон ntpd, причем на машине, которая имет канал и nat`ит все подрят...... настроил я значит как пишут в различных руководствах... server 127.127.1.0 server ntp0.zenon.net restrict всякие (на loop, своя сеть) когда даю команду №ntpdate -d ntp0.zenon.net все пучком, клиент пошел на сервер, сервер ответил, вычислили разницу показали. тут надо сказать, что клиент идет с порта upd >1024. ок, можно в лоб получить точную настройку времени... разово... не наш метод, т.к. тут сидит все-таки билинг... идем дальше - пущаем #ntpd -q -dd и видим что запросы посылаются... но ответом нету...... т.к. запросы идут с клиентской стороны с порта 123...... я так понимаю, что запросы уходят (вижу tcpdump`ом) но не приходят, т.е. какбы демону ntpd жолжны дать послушать внешний интрфейс, который конечно за натом... или не нужно, т.к. мы все таки сидим на гейте...? добовлем правило №iptables -t nat -I POSTROUTING -s local_ip -p udp --sport ntp --dport ntp -j SNAT --to-source real_ip дык а толку.... все одна фигня... пакеты от сервера не приходят.... куда пойти, чтобы "вкурить" почему я "не слышу ответов" от сервером ЗЫ: в принципе,если не поднимать на лок.машине ntpd (127.127.1.0) та же фигня... А если поднять, то получим stratum 5-6 от локальных часов... тоже ничего, но ведь хочется получать время с внешних серверов... спасибо.
next reply other threads:[~2004-11-16 23:09 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-11-16 23:09 Maksim N. Reziapkin [this message] 2004-11-17 8:22 ` Alexander Vasiliev
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=E1B7C89B8DCB084C809A22D7FEB90B380BA9B0@frodo.avalon.ru \ --to=maksim.reziapkin@avalon.ru \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git