I have 2 remote servers, one Linux box and one Windows Box. The Windows box is running MS SQL Server. It's behind a firewall, and I can only access it from my Linux box (I can netcat to the Windows box on port 1433 so that's working ok).
I'd like to use the linux box as a proxy so I can connect to the MS-SQL Server from my desktop.
I've tried setting up IP tables on the linux box with the following config, but my desktop still won't connect.
#!/bin/sh echo 1 > /proc/sys/net/ipv4/ip_forward iptables -F iptables -t nat -F iptables -X iptables -t nat -A PREROUTING -p tcp --dport 1433 -j DNAT --to-destination xxx.xxx.xxx.xxx:1433
Any help would be greatly appreciated!