Re: (No subject header)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John Black wrote:
I'm trying to setup a connection to port 3389 on a windows
2003 server.


my server 80.1.1.1

public ip address for windows server110.20.30.15

private ip address for windows server 192.168.0.15


is this right: iptbles -t nat -A PREROUTING -d 80.1.1.1 -p tcp \ --dport 3389 -j DNAT --to 110.20.30.15:2289 iptbles -t nat -A PREROUTING -d 110.20.30.15 -p tcp\ --dport 3389 -j DNAT --to 192.168.0.15:2289

Hi

This is my ruleset

Hope it helps

$IPT -t filter -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPT -t nat -A PREROUTING -i eth0 -p tcp -s 1.2.3.4 --dport 3389 -j DNAT --to 192.168.111.124:3389
$IPT -t filter -A FORWARD -i eth0 -p tcp -s 1.2.3.4 --dport 3389 -d 192.168.111.124 -j ACCEPT


Kind Regards
Brent Clark


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux