From: Dmitry Dolgopolov <dmdolg2002@mail.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] DNAT???
Date: Sat, 23 Dec 2006 18:58:57 +0300
Message-ID: <E1Gy9Gz-000ECw-00.dmdolg2002-mail-ru@f43.mail.ru> (raw)
In-Reply-To: =?koi8-r?Q?<012c01c72412$55143f30$0200a8c0=40mics.local>?=
Здравстуйте!
По-моему у вас просто перепутаны интерфейсы. Должно быть что-то вроде
-A PREROUTING -p tcp -d 192.168.0.40 --dport 80 -j DNAT --to-destination 192.168.1.1:80
тогда при обращении на 192.168.0.40:80 запрос будет перенаправляться на 192.168.1.1:80
> Здравствуйте уважаемое сообщество!
> Помогите решить проблемку. Есть 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 порт и шиш чего.
>
> _______________________________________________
> Sysadmins mailing list
> Sysadmins@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sysadmins
>
С уважением,
Дмитрий Долгополов
next parent reply other threads:[~2006-12-23 15:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-23 15:58 ` Dmitry Dolgopolov [this message]
2006-12-25 7:31 ` Nikolay(computer-service.ru)
2006-12-25 9:22 ` smont
2006-12-25 15:29 ` Nikolay(computer-service.ru)
2006-12-25 15:51 ` Andrii Dobrovol`s`kii
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=E1Gy9Gz-000ECw-00.dmdolg2002-mail-ru@f43.mail.ru \
--to=dmdolg2002@mail.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