Mailinglist Archive: opensuse-security (670 mails)
| < Previous | Next > |
Re: [suse-security] Reverse masquerade one IP ...
- From: Ray Leach <raymondl@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 13 Nov 2001 14:35:58 +0200
- Message-id: <3BF113AD.B11BDF91@xxxxxxxxxxxxxxxxxxxxxx>
Hi
What would be the reverse of this rule?
Sven Michels wrote:
> Ray Leach wrote:
> >
> > Hi
> >
> > Is it possible to reverse masq just one IP in a subnet?
> >
> > I have a mail server on a private subnet and I want to reverse masq just
> > the IP of the mail server.
> Like that:
> iptables -A PREROUTING -t nat -p tcp --dport 25 -i $WORLD_DEV -j DNAT --to
> $MAILSERVERIP
>
iptables -A POSTROUTING -t nat -p tcp --sport 25 -o $DMZ_NET -j SNAT
--to-source $WORLD_IP
>
> --
> intraDAT AG http://www.intradat.com
> Wilhelm-Leuschner-Strasse 7 Tel: +49 69-25629-0
> D - 60329 Frankfurt am Main Fax: +49 69-25629-256
> Junk mail is war. RFCs do not apply.
--
----------------------------------------------------------------------
Raymond Leach
Cell:+27-82-416-1410 Tel:+27-11-444-5006 Fax:+27-11-444-5007
eMail:raymondl@xxxxxxxxxxxxxxxxxxxxxx
www:http://www.knowledgefactory.co.za
"No matter where you go, there you are ..."
----------------------------------------------------------------------
What would be the reverse of this rule?
Sven Michels wrote:
> Ray Leach wrote:
> >
> > Hi
> >
> > Is it possible to reverse masq just one IP in a subnet?
> >
> > I have a mail server on a private subnet and I want to reverse masq just
> > the IP of the mail server.
> Like that:
> iptables -A PREROUTING -t nat -p tcp --dport 25 -i $WORLD_DEV -j DNAT --to
> $MAILSERVERIP
>
iptables -A POSTROUTING -t nat -p tcp --sport 25 -o $DMZ_NET -j SNAT
--to-source $WORLD_IP
>
> --
> intraDAT AG http://www.intradat.com
> Wilhelm-Leuschner-Strasse 7 Tel: +49 69-25629-0
> D - 60329 Frankfurt am Main Fax: +49 69-25629-256
> Junk mail is war. RFCs do not apply.
--
----------------------------------------------------------------------
Raymond Leach
Cell:+27-82-416-1410 Tel:+27-11-444-5006 Fax:+27-11-444-5007
eMail:raymondl@xxxxxxxxxxxxxxxxxxxxxx
www:http://www.knowledgefactory.co.za
"No matter where you go, there you are ..."
----------------------------------------------------------------------
| < Previous | Next > |