ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: rt <rt@aspirinka.net>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] iptables (правила)
Date: Tue, 17 Oct 2006 12:55:41 +0400
Message-ID: <45349A8D.7070005@aspirinka.net> (raw)
In-Reply-To: <4534991C.6090405@soc.adm.yar.ru>

Дворников М.В. wrote:
> Есть специфическая бухгалтерская программа (клиент),
> работающая через Inet с сервером.
> Помимо SNAT пришлось сделать DNAT для udp, так как сервер
> постоянно проверяет наличие клиента по udp-протоколу
> и при отсутствии клиента в течении минуты сервер разрывает соединение.
> Все работало с одним клиентом. После добавления второго
> клиента, на втором клиенте можно работать только одну минуту.
> Похоже не работает DNAT на два компьютера.
> Что делать?
>
> $IPTABLES -t nat -A PREROUTING -s $INET_SERVER -d $INET_IP
> -i $INET_IFACE -p udp --dport число -j DNAT
> --to-destination $LAN_CLIENT1_IP
>
> $IPTABLES -t nat -A PREROUTING -s $INET_SERVER -d $INET_IP
> -i $INET_IFACE -p udp --dport число -j DNAT
> --to-destination $LAN_CLIENT2_IP
>   
Второй клиент надо вешать на другой порт.


  reply	other threads:[~2006-10-17  8:55 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-17  8:49 "Дворников М.В."
2006-10-17  8:55 ` rt [this message]
2006-10-17  9:01   ` [Sysadmins] iptables ( правила ) Шенцев Алексей Владимирович
2006-10-17  9:30     ` rt
2006-10-17  9:36       ` Шенцев Алексей Владимирович
2006-10-17 10:10         ` Ildar Mulyukov
2006-10-17  8:59 ` Шенцев Алексей Владимирович
2006-10-17  9:23   ` Dmitriy L. Kruglikov
2006-10-17  9:28     ` Шенцев Алексей Владимирович
2006-10-17  9:39       ` Dmitriy L. Kruglikov
2006-10-17  9:49         ` Шенцев Алексей Владимирович
2006-10-17  9:58           ` Dmitriy L. Kruglikov
2006-10-17 10:01             ` Шенцев Алексей Владимирович
2006-10-17 10:11               ` Dmitriy L. Kruglikov
2006-10-17 10:18                 ` Шенцев Алексей Владимирович
2006-10-17 10:04             ` Dmitriy L. Kruglikov
2006-10-17 10:06               ` Шенцев Алексей Владимирович
2006-10-17 10:27                 ` "Дворников М.В."
2006-10-17 10:36                   ` Dmitriy L. Kruglikov
2006-10-17 10:36                   ` Шенцев Алексей Владимирович
2006-10-17  9:34 ` [Sysadmins] iptables (правила) Dmitriy L. Kruglikov
2006-10-17  9:42   ` [Sysadmins] iptables ( правила ) Шенцев Алексей Владимирович
2006-10-17  9:51   ` Serge Polkovnikov
2006-10-17  9:52     ` Шенцев Алексей Владимирович
2006-10-17 10:09       ` Serge Polkovnikov

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=45349A8D.7070005@aspirinka.net \
    --to=rt@aspirinka.net \
    --cc=sysadmins@lists.altlinux.org \
    /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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git