Portforwarding with VPN

nikko

New Member
Nov 18, 2013
22
0
1
Hi I am trying to connect to VPN inside a proxmox and wounder how to connect to my VPN. I have a Windows server VM inside Proxmox with ip like 172.16.16.16, and on this machine I have a VPN installed listenning on port 1723. So I want to forward all my external traffic, external pepole who want to connect ot the vpn, to 172.16.16.16:1723. Would this IP tables do the work

Code:
          iptables -t nat -A PREROUTING -p tcp -d 44.44.44.44 --dport 422 -j DNAT --to 172.16.16.16:1723
          iptables -A INPUT -i eth0 -p tcp --dport 422 -m state --state NEW,ESTABLISHED -j ACCEPT
          iptables -A OUTPUT -o eth0 -p tcp --sport 422 -m state --state ESTABLISHED -j ACCEPT

My idea is to connect to the VPN from a virtual Windows 7 inside VMPlayer, but I am woundering if it is at all possible to join Windows 7 to a domain, like the VPN? But first the port forwarding ;)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!