All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alexandre Chaves Fonseca" <alex.f-linux@specialist.com.br>
To: "Patrick McHardy" <kaber@trash.net>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: Patch for CONFIG_IP_NF_NAT_LOCAL in 2.6.11 ?
Date: Thu, 10 Mar 2005 14:56:50 -0300	[thread overview]
Message-ID: <01cd01c5259a$89ab8dc0$0a00a8c0@alexandre> (raw)
In-Reply-To: 42308509.4040902@trash.net

you say that I have to do this:

iptables -t nat -A OUTPUT -p tcp -s 127.0.0.1 -d 127.0.0.1 --dport 25 -j 
DNAT --to 192.168.0.50:25
iptables -t nat -A POSTROUTING -p tcp -s 127.0.0.1 -d 192.168.0.50 --dport 
25 -j SNAT --to 192.168.0.10

(192.168.0.10 is my IP)

right ?

but it doesn't work yet...

what I am doing wrong ?

thanks so much,
alexandre

----- Original Message ----- 
From: "Patrick McHardy" <kaber@trash.net>
To: "Alexandre Chaves Fonseca" <alex.f-linux@specialist.com.br>
Cc: <netfilter-devel@lists.netfilter.org>
Sent: Thursday, 10 March, 2005 14:34
Subject: Re: Patch for CONFIG_IP_NF_NAT_LOCAL in 2.6.11 ?


>> NAT: no longer support implicit source local NAT
>> NAT: packet src 192.168.0.50 -> dst 127.0.0.1
>
> This means that NAT no longer fixes up the source address when
> doing DNAT in LOCAL_OUT, so the packet goes out with 127.0.0.1
> as source. You need to SNAT it manually if you want to get
> the old behaviour.


---------------------------------------------------------------
Esta mensagem foi verificada pelo e-mail seguro wstation.
McAfee VirusScan / Vacina v4444 atualizada em 10/03/2005
powered by wstation (www.wstation.com.br)

  reply	other threads:[~2005-03-10 17:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-10 17:02 Patch for CONFIG_IP_NF_NAT_LOCAL in 2.6.11 ? Alexandre Chaves Fonseca
2005-03-10 17:04 ` Patrick McHardy
2005-03-10 17:23   ` Alexandre Chaves Fonseca
2005-03-10 17:34     ` Patrick McHardy
2005-03-10 17:56       ` Alexandre Chaves Fonseca [this message]
2005-03-10 18:00         ` Patrick McHardy
2005-03-10 19:31           ` Martin Josefsson
2005-03-11  5:14             ` Patrick McHardy
2005-03-11  5:18               ` Patrick McHardy
2005-03-11 12:48                 ` KOVACS Krisztian
2005-03-12 12:30                   ` Harald Welte
2005-03-15 19:07                     ` Patrick McHardy
2005-03-10 19:39           ` Alexandre Chaves Fonseca
  -- strict thread matches above, loose matches on Subject: below --
2005-03-10 15:44 Alexandre Chaves Fonseca

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='01cd01c5259a$89ab8dc0$0a00a8c0@alexandre' \
    --to=alex.f-linux@specialist.com.br \
    --cc=kaber@trash.net \
    --cc=netfilter-devel@lists.netfilter.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
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.