Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Glaucius Djalma Pereira Junior <glaucius@gmail.com>
To: Morales Carlos <cmmorales@mail.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: Doubt about forwarding. Please, Help me!
Date: Thu, 14 Jul 2005 16:20:20 -0300	[thread overview]
Message-ID: <f48e768e0507141220855fec5@mail.gmail.com> (raw)
In-Reply-To: <20050714191101.230C61F50B1@ws1-2.us4.outblaze.com>

iptables -t nat -A PREROUTING -p tcp --dport 8888 -i eth1 -d EXT_IP -j
DNAT --to INT_IP

and the rule to allow the packet back 

iptables -t nat -A POSRTOUTING -s INT_IP -p tcp --sport 8888 -j SNAT --to EXT_IP


simple, with this two single rules you can redirect the port to your
internal host

best regards 

-- 
Glaucius Djalma Pereira Junior
glaucius@gmail.com


  reply	other threads:[~2005-07-14 19:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-14 19:11 Doubt about forwarding. Please, Help me! Morales Carlos
2005-07-14 19:20 ` Glaucius Djalma Pereira Junior [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-07-14 18:40 Morales Carlos
2005-07-14 18:46 ` Francesco Ciocchetti
2005-07-14 19:50 ` Sergio Basurto Juarez

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=f48e768e0507141220855fec5@mail.gmail.com \
    --to=glaucius@gmail.com \
    --cc=cmmorales@mail.com \
    --cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox