I have a vps (CentOS / xen) where I have setup openvpn server. I use this vpn to play games with my home computer.
Ive used these commands to configure iptables on the server (connexion is throught tcp 443) :
iptables -t nat -A PREROUTING --dst 10.9.0.0/24 -p tcp --dport 443 -j DNAT --to-destination 109.X.X.X iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -A FORWARD -s 10.9.0.0/24 -j ACCEPT iptables -t nat -A POSTROUTING -s 10.9.0.0/24 -o eth0 -j MASQUERADE
It works but game speed is enough slow and when i launch the game connection checker, it says :
- You may get better results by enabling UPnP on your router.
- You may get better results by adjusting the port forwarding settings on your router.
- You may get better results by adjusting the firewall settings.
- Please note that performance levels may differ when playing the game due to the effects of your personal firewall.
I think the firewall problem comme from my vps. I've tried a lot of iptables commands, but without success (Im not an expert with that...) I've even tried to allow all traffic by:
iptables -P OUTPUT ACCEPT iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT
How can I enable UPnP on a vps? Of course I've also tried to disable my client firewall.