From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rodrigo Leme de Mello" Subject: Doubt about DNAT Date: Tue, 10 Sep 2002 11:16:33 -0300 Sender: netfilter-admin@lists.netfilter.org Message-ID: <009d01c258d4$aadbfc90$0100a8c0@desktop> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0099_01C258BB.852F6680" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: netfilter@lists.samba.org This is a multi-part message in MIME format. ------=_NextPart_000_0099_01C258BB.852F6680 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_0099_01C258BB.852F6680 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all,
 
I am in trouble to do a rule. Anybody = can help=20 me?
 
I want to redirect all traffic from a = specific=20 valid ip and specific destination port to a machine located inside a=20 LAN.
 
This rule is to access SQL Server that = is located=20 inside a LAN and i have a valid ip address in a linux machine with=20 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.=20 200.206.123.112
 
This rule i've put in the machine=20 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=20 200.221.98.123 but i still can't connect. Dou you have any idea why it = is not=20 working?
 
The ip's i've mentioned are just for=20 example.
 
Thanks a lot
 
Rodrigo
 
 
 
 
 
 
------=_NextPart_000_0099_01C258BB.852F6680--