ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Наумкин Сергей" <nss@maximagroup.ru>
To: gmail <cyberskunk@gmail.com>,
	ALT Linux Community <community@altlinux.ru>
Subject: Re: [Comm]routing problems, iptables?
Date: Wed, 12 Oct 2005 19:29:46 +0400
Message-ID: <1173843028.20051012192946@maximagroup.ru> (raw)
In-Reply-To: <777642185.20051012184700@gmail.com>

Здравствуйте, CyberSkunk.

Доброго времени суток.

Есть провайдер. Инет через адсл-модем.
Есть IP адрес(IP_ADDR1).
Есть второй IP от того же провайдера(IP_ADDR2).
Хочется сделать DNAT на машину из локальной сети(LAN_IP)на машине
с IP_ADDR1 типа

iptables -t nat -A PREROUTING -d IP_ADDR2 -j DNAT --to-destinnation LAN_IP

чтобы при коннекте из инета на IP_ADDR2 пакеты порекидывались в локалку
на LAN_IP машиной с IP_ADDR1.
Не работает.
Откуда могут ноги расти? Как можно эти ноги поискать?

-- 
Best regards,
 CyberSkunk                          mailto:cyberskunk@gmail.com

_______________________________________________
Community mailing list
Community@altlinux.ru
https://lists.altlinux.ru/mailman/listinfo/community

Ну вопервых обратный трафик надо выпустит (выполнять SNAT)
во вторых форвардинг пакетов разрешить
в третьих в таблице filter указать соответствующие правила для
транзитных пакетов( цепочка FORWARD)


-- 
С уважением,
 Наумкин Сергей




  reply	other threads:[~2005-10-12 15:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-12 14:47 CyberSkunk
2005-10-12 15:29 ` Наумкин Сергей [this message]
2005-10-13 10:23   ` Re[2]: " CyberSkunk
2005-10-13 10:30     ` Re[3]: " Наумкин Сергей
2005-10-13 10:47       ` Re[4]: " CyberSkunk
2005-10-13 13:17       ` Re[5]: [Comm]routing problems, iptables? - SOLUTION? CyberSkunk
2005-10-13 11:05     ` Re[2]: [Comm]routing problems, iptables? Alexander Volkov
2005-10-13 18:55   ` [Comm][JT]routing " Metalking
2005-10-13 19:17     ` [Comm] Re: [JT]routing " Michael Shigorin

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=1173843028.20051012192946@maximagroup.ru \
    --to=nss@maximagroup.ru \
    --cc=community@altlinux.ru \
    --cc=cyberskunk@gmail.com \
    /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