ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexey Borovskoy <alexey_borovskoy@mail.ru>
To: community@altlinux.ru
Subject: Re: [Comm] iptables & ntp
Date: Tue, 27 Jul 2004 22:46:47 +1300
Message-ID: <200407272247.01069.alexey_borovskoy@mail.ru> (raw)
In-Reply-To: <4105E571.3000404@soc.adm.yar.ru>

[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]

* Вторник 27 Июль 2004 18:17 Дворников Михаил 
<m_dvor@soc.adm.yar.ru>

> Здравствуйте! Пытаюсь запустить ntpdate со второго сервера.
> Шлюз имеет: ppp0-реальный ip, eth0-10.15.100.1.
> На шлюзе NAT или маскарадинг не запущен. С него ntpdate
> выполняется. Работает прозрачный прокси.
>
> Второй сервер: eth0-10.15.100.61, eth1, eth2.
> Traceroute zenon.net c этого сервера доходит только до
> прокси провайдера.
> На шлюзе делаю:
> # iptables -t nat -A PREROUTING --dst $real_ip -p tcp --dport
> 123 \ -j DNAT --to-destination 10.15.100.61
> # iptables -t nat -A PREROUTING --dst $real_ip -p udp --dport
> 123 \ -j DNAT --to-destination 10.15.100.61

Он будет NATить только пакеты, предназначенные для $real_ip.
Я бы сделал так:

# iptables -t nat -A PREROUTING --o $external_if -p tcp \
--dport 123 -j DNAT --to-destination 10.15.100.61
# iptables -t nat -A PREROUTING --o $external_if -p udp \
--dport 123 \ -j DNAT --to-destination 10.15.100.61

-- 
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63  2753 E37A 9E3F 11F3 BDE1

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2004-07-27  9:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-27  5:17 Дворников Михаил
2004-07-27  5:32 ` Mike Lykov
2004-07-27  5:42   ` [Comm] AverTV 305/ 307 на ядрах 2 .6 Anthony
2004-07-27  6:03     ` [Comm] Кто прожжёный гуру по вёрстке DVD ? Anthony
2004-07-27  6:12     ` [Comm] AverTV 305/ 307 на ядрах 2 .6 Andrey Rahmatullin
2004-07-27  6:14   ` [Comm] iptables & ntp Дворников Михаил
2004-07-27  6:26     ` Mike Lykov
2004-07-27  7:49 ` Dmitry Belyayev
2004-07-27  9:46 ` Alexey Borovskoy [this message]
2004-07-28  3:42   ` Mike Lykov
2004-07-28  4:16     ` harlan
2004-07-28  4:31       ` harlan
2004-07-28  4:28     ` Alexey Borovskoy
2004-07-28  4:53       ` Дворников Михаил

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=200407272247.01069.alexey_borovskoy@mail.ru \
    --to=alexey_borovskoy@mail.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