ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Nikolay(computer-service.ru)" <admin@computer-service.ru>
To: "ALT Linux sysadmin discuss" <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] DNAT???
Date: Thu, 21 Dec 2006 11:44:36 +0300
Message-ID: <008e01c724dc$3ede9c90$0200a8c0@mics.local> (raw)
In-Reply-To: <45898ABC.3070107@rambler.ru>

> Nikolay(computer-service.ru) пишет:
> > Здравствуйте уважаемое сообщество!
> > Помогите решить проблемку. Есть 2 сети 192.168.0.* и 192.168.1.* между
ними
> > стоит ALT мастер 2.4(ядро 2.4)
> > с двумя сетевыми картами и двумя ip(192.168.0.40 и 192.168.1.40)
> > Нужно чтобы в одной сети(192.168.0.*) был виден комп другой(192.168.1.1)
> > сети по определенному порту(80),
> > но сети при этом друг друга не видели. Думаю надо использовать DNAT
> > пишу в iptables
> >  -A PREROUTING -p tcp -d 192.168.1.1 --dport 80 -j DNAT --to-destination
> > 192.168.0.40:80
> > Обращаюсь из сети 192.168.0.*  к ip 192.168.0.40 на 80 порт и шиш чего.
>
> Если машина - шлюз, то ничего такого не надоразве что запретить форвард
> всего кроме -p tcp --dport 80 -d 192.168.1.1, а также ESTABLISHED и
> RELATED. Если нет, то только
> прокси. Возможно, прозрачный. Иначе никак. AFAIK.

В том то вся и проблема что 192.168.0.40 не шлюз ни в одной ни в другой
сети.
надо из одной сети (192.168.1.0./24) выкинуть порт 80(порт не важен)
машины(192.168.1.1) в другую сеть 192.168.0.0./24

>
>
> _______________________________________________
> Sysadmins mailing list
> Sysadmins@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sysadmins
>



  reply	other threads:[~2006-12-21  8:44 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-20  8:39 Nikolay(computer-service.ru)
2006-12-20  8:50 ` Alexey Sidorov
2006-12-20  9:21   ` Nikolay(computer-service.ru)
2006-12-20 10:26     ` Alexander Volkov
2006-12-20  9:02 ` Anton Kvashin
2006-12-20  9:04   ` Nikolay(computer-service.ru)
2006-12-20  9:42     ` Alexander Volkov
2006-12-20 10:18     ` Andrii Dobrovol`s`kii
2006-12-20 19:10 ` Olvin
2006-12-21  8:44   ` Nikolay(computer-service.ru) [this message]
2006-12-22 15:44     ` Olvin
2006-12-22 15:53       ` Andrii Dobrovol`s`kii
2006-12-22 17:29     ` Michael Shigorin
2006-12-23 18:32       ` Olvin
2006-12-24 11:14         ` Alexander Volkov
2006-12-24 12:04           ` Michael Shigorin
2006-12-25  7:24         ` Nikolay(computer-service.ru)
2006-12-25 14:35           ` Olvin
2006-12-27 11:55 ` Ildar Mulyukov

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='008e01c724dc$3ede9c90$0200a8c0@mics.local' \
    --to=admin@computer-service.ru \
    --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