Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Rodrigo Leme de Mello" <rodrigo@idg.com.br>
To: netfilter@lists.samba.org
Subject: Doubt about DNAT
Date: Tue, 10 Sep 2002 11:16:33 -0300	[thread overview]
Message-ID: <009d01c258d4$aadbfc90$0100a8c0@desktop> (raw)

[-- Attachment #1: Type: text/plain, Size: 825 bytes --]

Hi all,

I am in trouble to do a rule. Anybody can help me?

I want to redirect all traffic from a specific valid ip and specific
destination port to a machine located inside a LAN.

This rule is to access SQL Server that is located inside a LAN and i have a
valid ip address in a linux machine with iptables.

I've tried the following:

Lan IP with SQL Server: 192.168.0.10
Valid IP with iptables: 200.221.98.123
Valid IP that will acess SQL Server. 200.206.123.112

This rule i've put in the machine 200.221.98.123

iptables -t nat -A PREROUTING -p tcp -s 200.206.123.112 --dport 1433 -j
DNAT --to 192.168.0.10

And now i configure my SQL Server to connect to 200.221.98.123 but i still
can't connect. Dou you have any idea why it is not working?

The ip's i've mentioned are just for example.

Thanks a lot

Rodrigo







[-- Attachment #2: Type: text/html, Size: 2551 bytes --]

             reply	other threads:[~2002-09-10 14:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-10 14:16 Rodrigo Leme de Mello [this message]
2002-09-10 15:05 ` Doubt about DNAT Antony Stone
2002-09-10 20:27 ` Stewart Thompson
2002-09-10 21:19   ` Rodrigo Leme de Mello
  -- strict thread matches above, loose matches on Subject: below --
2002-09-10 14:45 Rob Sterenborg

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='009d01c258d4$aadbfc90$0100a8c0@desktop' \
    --to=rodrigo@idg.com.br \
    --cc=netfilter@lists.samba.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