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