Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Rodrigo Leme de Mello" <rodrigo@idg.com.br>
To: stewart.thompson@shaw.ca, netfilter@lists.samba.org
Subject: Re: Doubt about DNAT
Date: Tue, 10 Sep 2002 18:19:04 -0300	[thread overview]
Message-ID: <029501c2590f$b10bfe90$0100a8c0@desktop> (raw)
In-Reply-To: FLEKIPPLAEDMJMOOBBDPIEDHCOAA.stewart.thompson@shaw.ca

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

Hi Stewart,

Yeap! I have and my SQL Server is set with the default configuration, that
put it to listen on 1433.
I've also did a port scan to check if the port is open and it is.

Thanks for youe help

Rodrigo

----- Original Message -----
From: Stewart Thompson
To: Rodrigo Leme de Mello ; netfilter@lists.samba.org
Sent: Tuesday, September 10, 2002 5:27 PM
Subject: RE: Doubt about DNAT


Hi Rodrigo:



            Do you have a Forward rule to match the Prerouting rule?

Is your SQL server on the Internal Net expecting connections on

Port 1433?



Stu...





-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Rodrigo Leme de
Mello
Sent: September 10, 2002 7:17 AM
To: netfilter@lists.samba.org
Subject: Doubt about DNAT



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: 16487 bytes --]

  reply	other threads:[~2002-09-10 21:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-10 14:16 Doubt about DNAT Rodrigo Leme de Mello
2002-09-10 15:05 ` Antony Stone
2002-09-10 20:27 ` Stewart Thompson
2002-09-10 21:19   ` Rodrigo Leme de Mello [this message]
  -- 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='029501c2590f$b10bfe90$0100a8c0@desktop' \
    --to=rodrigo@idg.com.br \
    --cc=netfilter@lists.samba.org \
    --cc=stewart.thompson@shaw.ca \
    /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