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 16:39:40 -0300	[thread overview]
Message-ID: <028a01c525a8$e71e4020$0a00a8c0@alexandre> (raw)
In-Reply-To: 42308B4E.3030303@trash.net

I put a "-j LOG" before in both rules:

iptables -t nat -A OUTPUT -p tcp -s 127.0.0.1 -d 127.0.0.1 --dport 25 -j 
LOG --log-prefix "OUT = "
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 LOG --log-prefix "POST = "
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

But in syslog only show the first rule (I tried "telnet 127.0.0.1 25")...

Mar 10 16:14:09 backup kernel: OUT = IN= OUT=lo SRC=127.0.0.1 DST=127.0.0.1 
LEN=60 TOS=0x10 PREC=0x00 TTL=64 ID=27422 DF PROTO=TCP SPT=2107 DPT=25 
WINDOW=32767 RES=0x00 SYN URGP=0
Mar 10 16:14:12 backup kernel: OUT = IN= OUT=lo SRC=127.0.0.1 DST=127.0.0.1 
LEN=60 TOS=0x10 PREC=0x00 TTL=64 ID=27424 DF PROTO=TCP SPT=2107 DPT=25 
WINDOW=32767 RES=0x00 SYN URGP=0
Mar 10 16:17:06 backup kernel: OUT = IN= OUT=lo SRC=127.0.0.1 DST=127.0.0.1 
LEN=60 TOS=0x10 PREC=0x00 TTL=64 ID=13046 DF PROTO=TCP SPT=3133 DPT=25 
WINDOW=32767 RES=0x00 SYN URGP=0

some ideia?


----- 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 15:00
Subject: Re: Patch for CONFIG_IP_NF_NAT_LOCAL in 2.6.11 ?


> Alexandre Chaves Fonseca wrote:
>> 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
>> but it doesn't work yet...
>
> Check if the rules are used and what happens on the network ..


---------------------------------------------------------------
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)

  parent reply	other threads:[~2005-03-10 19:39 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
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 [this message]
  -- 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='028a01c525a8$e71e4020$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.