From: Michele Petrazzo - Unipex <michele.petrazzo@unipex.it>
To: "Wilbert J. Rojas O." <sysadmin@ideay.net.ni>
Cc: "Jorge Dávila" <jorgedavilalopez@gmail.com>, netfilter@vger.kernel.org
Subject: Re: MASQUERADE MAIL SERVER
Date: Thu, 23 Jul 2009 20:34:43 +0200 [thread overview]
Message-ID: <4A68AD43.8010100@unipex.it> (raw)
In-Reply-To: <4A68A8D7.1090607@ideay.net.ni>
Wilbert J. Rojas O. wrote:
> Thanks but i have only one internet provider. I was trying with SNAT
> and DNAT but i failed with this rules:
>
> iptables -t nat -A PREROUTING -p all -d 200.9.190.25 -i eth0 -j DNAT
> --to 10.24.54.96
#so also you lan clients can talk with pubblic ip
$IPT -t nat -A PREROUTING -d 200.9.190.25 -j DNAT --to 10.24.54.96
> iptables -t nat -A POSTROUTING -p all -d 10.24.54.96 -o eth0 -j SNAT
> --to 200.9.190.25
$IPT -t nat -A POSTROUTING -s 10.24.54.96 -o eth0 -j SNAT
--to 200.9.190.25
Michele
next prev parent reply other threads:[~2009-07-23 18:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-23 17:02 MASQUERADE MAIL SERVER Wilbert J. Rojas O.
2009-07-23 17:40 ` Jorge Dávila
2009-07-23 18:15 ` Wilbert J. Rojas O.
2009-07-23 18:27 ` Jorge Dávila
2009-07-23 18:34 ` Michele Petrazzo - Unipex [this message]
2009-07-23 18:29 ` Michele Petrazzo - Unipex
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=4A68AD43.8010100@unipex.it \
--to=michele.petrazzo@unipex.it \
--cc=jorgedavilalopez@gmail.com \
--cc=netfilter@vger.kernel.org \
--cc=sysadmin@ideay.net.ni \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.