[plug] RDP thru Firewall

Michael Baker michaelbaker at westnet.com.au
Thu Feb 19 16:30:05 WST 2009


Try this its old but we use it internally for testing..
/sbin/lsmod | grep "^iptable_nat" >/dev/null 2>&1
[ $? -ne 0 ] && {
        /sbin/modprobe iptable_nat
}

${IPTABLES} -P INPUT ACCEPT
${IPTABLES} -P OUTPUT ACCEPT
${IPTABLES} -P FORWARD ACCEPT
${IPTABLES} -t nat -A POSTROUTING -o ppp0 -s 192.168.1.0/24 -j MASQUERADE
${IPTABLES} -A PREROUTING -t nat -p tcp -d ${EXTERNAL} --dport 3389 -j DNAT --to-destination 192.168.1.10:3389

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20090219/6245312e/attachment.html>


More information about the plug mailing list