My setup:
Debian 7.0.3 with AMD-VT Enabled;
Qemu-Kvm installed and running smoothly;
X11VNC /Xvfb running my virtual screens;
Noip.com for static IP attribution;
What went fine:
This is important, and matters for the record: RDP works IF i
stop the openVPN service;
In order for me to access the VM through RDP i had to make a rule at iptables:
Code:
iptables -t nat -A PREROUTING -p tcp -d 192.168.1.25 --dport 3389 -j DNAT --to-destination 192.168.1.4:3389
Where 192.168.1.25 is my server's IP and 192.168.1.4 is the VM's IP
After this, i could easily access the VM through RDP proto;
Here's where the problems started!
For me to access the VM and make sure RDP client was active i had to create another rule at iptables:
Code:
iptables -t nat -A PREROUTING -p tcp -d 10.8.1.1 --dport 5901 -j DNAT --to-destination 192.168.1.25:5901
This allowed me to access the VM through VNC, AND behind the openVPN this time.
But no matter what i do, i can't connect to the machine through RDP
THROUGH the VPN
my server.conf:
Code:
local 192.168.1.25
port 1194
proto udp
dev tun1
ca ca.crt
cert servidor.crt
key servidor.key # This file should be kept secret
dh dh1024.pem
server 10.8.1.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.1.0 255.255.255.0"
client-config-dir ccd
route 192.168.1.0 255.255.255.0
client-to-client
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
I hope i've made myself clear enough to your understanding and let me thank you in advance for any hints you may have!