Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a small intranet- and file-server inside our company, which can only be reached from inside our own network. I'd like to be able to reach the intranet and files on the server from outside the network, however I don't really like the idea of completely opening security by forwarding the ports on our NAT-router, so I'd prefer to enable a VPN possibility for this.

So I have a router, which is the DHCP server and has NAT function, and I have an Ubuntu Server with the files and intranet on it. How do I configure these two so that I can make a VPN connection with my network in order to reach the server?

thanks in advance for any answer!

share|improve this question

migrated from Jun 27 '11 at 12:27

This question came from our site for professional and enthusiast programmers.

Port forward 1194/udp to the ubuntu and follow this excellent tutorial (don't forget that you can apt-get install openvpn -y on debian/ubuntus).

share|improve this answer

For a PPTP server, forward TCP port 1723, and GRE Protocol (protocol 47).

Configure Ubuntu to be a PPTP VPN server as per: Configure a PPTP VPN Server on Ubuntu Linux

share|improve this answer

OpenVPN is good solution. You can setup authentication based on username and/or certificate. Also with this setup all remote users will access the server from different network. You can use this to apply special firewall rules or access permisions. The port and protocol which OpenVPN uses are configurable. P.S. I'm not saying that PPTPD won't do the job. I just have more experience with OpenVPN.

share|improve this answer

another solution is pptpd
but you need Port forward 1723/tcp to the ubuntu

installing pptpd on ubuntu:

sudo apt-get install pptpd

define user name and passwords in:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.