From: Leonardo Rodrigues <leolistas@solutti.com.br>
To: ML netfilter <netfilter@vger.kernel.org>
Subject: Re: Help on outgoing packet (without NAT)
Date: Thu, 22 Sep 2011 14:02:24 -0300 [thread overview]
Message-ID: <4E7B6A20.2080207@solutti.com.br> (raw)
In-Reply-To: <da2100d26099890bb06e4b87ab5cac93@decimal.pt>
Em 22/09/11 13:44, Jorge Bastos escreveu:
>
> Well I was convinced that, since I'm not using NAT on this machine,
> this couldn't be done on the NAT table.
> Thanks, after all, it works.
Yes now you're using NAT .... we usually say NAT to some kind of
SOURCE NAT, for example done on cable/DSL modens. but any kind of
address translation is a NAT, including your case in which you want to
change the destination of some packet, usually known as port forwarding.
Yes it's a NAT, a Destination NAT.
if i'm not mistaken, just pay attention that as you're using NAT
and you'll have packets flowing 'through' your machine, you must have the
/proc/sys/net/ipv4/ip_forward
set to 1
you also need appropriate FORWARD rules to allow that packets to
flow through your machine. If you're running with the default FORWARD
ACCEPT default rule and no rules there, than you'll have no problem. But
keep in mind that packets are going through filter table, FORWARD chain
and ip_forward must be enabled for that to work.
--
Atenciosamente / Sincerily,
Leonardo Rodrigues
Solutti Tecnologia
http://www.solutti.com.br
Minha armadilha de SPAM, NÃO mandem email
gertrudes@solutti.com.br
My SPAMTRAP, do not email it
next prev parent reply other threads:[~2011-09-22 17:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-19 15:29 ping broadcast into forward chain?? (IN=eth0 OUT=eth0)!! Julio A. Romero
2011-09-19 15:38 ` Jan Engelhardt
[not found] ` <9C0FCAA46B9040869B79B468CCA7391C@poweredge1800>
2011-09-19 15:55 ` Jan Engelhardt
2011-09-19 16:10 ` Julio A. Romero
2011-09-19 16:15 ` Jan Engelhardt
2011-09-19 16:38 ` Julio A. Romero
2011-09-19 17:07 ` Jan Engelhardt
2011-09-20 0:22 ` Julio A. Romero
2011-09-21 21:23 ` Help on outgoing packet (without NAT) Jorge Bastos
2011-09-21 21:47 ` Andrew Beverley
2011-09-22 15:58 ` Jorge Bastos
2011-09-22 16:29 ` Jan Engelhardt
2011-09-22 16:31 ` Jorge Bastos
2011-09-22 16:39 ` Leonardo Rodrigues
2011-09-22 16:44 ` Jorge Bastos
2011-09-22 16:46 ` Jan Engelhardt
2011-09-22 17:02 ` Leonardo Rodrigues [this message]
2011-09-21 22:42 ` Jan Engelhardt
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=4E7B6A20.2080207@solutti.com.br \
--to=leolistas@solutti.com.br \
--cc=netfilter@vger.kernel.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.