Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":2995,"date":"2020-01-09T19:37:14","date_gmt":"2020-01-09T19:37:14","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2995"},"modified":"2020-01-09T19:37:42","modified_gmt":"2020-01-09T19:37:42","slug":"setup-a-pptp-vpn-server-on-ubuntu","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/setup-a-pptp-vpn-server-on-ubuntu\/","title":{"rendered":"Setup a PPTP VPN Server on Ubuntu"},"content":{"rendered":"

With a PPTP server, you can setup a VPN server easily. Having a virtual private network is beneficial to both individual users and businesses alike.<\/p>\n

This tutorial explains how you can install a PPTP server on Ubuntu. The steps are generic, they should apply to almost all versions of Ubuntu.<\/p>\n

Please note that\u00a0security vulnerabilities<\/strong><\/span><\/a>\u00a0have been found in the PPTP protocol and it may be worth evaluating other VPN protocols before utilizing PPTP.<\/p>\n

Installing the server<\/h2>\n

Step 1: Installing PPTPD<\/h3>\n

The first thing that we need to do is, naturally, install PPTPD.<\/p>\n

apt-get install pptpd\r\n<\/code><\/pre>\n

Installing PPTPD is that easy! Now we need to actually setup the PPTP server.<\/p>\n

Step 2: Adding users<\/h3>\n

We don’t want everyone to be able to access our VPN of course; because of this, you can create users so that only the users with the correct password will be able to access your VPN. To add users, edit the file:<\/p>\n

\/etc\/ppp\/chap-secrets\r\n<\/code><\/pre>\n

The format is:<\/p>\n

[username] [service] [password] [ip]\r\n<\/code><\/pre>\n

Username and password are pretty straightforward, service and IP are not though. Service is usually\u00a0pptpd<\/code>. If you just want to setup a VPN, use\u00a0pptpd<\/code>\u00a0for the service – it will work. If you want to restrict the IP that a user can login from, you can use his\/her IP. If you want connections from that account to be made from all IPs, you can use\u00a0*<\/code>.<\/p>\n

Step 3: Edit the PPTPD settings<\/h3>\n

There are a few things that we need to edit. Start by editing the following file:<\/p>\n

\/etc\/pptpd.conf\r\n<\/code><\/pre>\n

Look for the\u00a0localip<\/code>\u00a0and\u00a0remoteip<\/code>\u00a0settings. Remove the\u00a0#<\/code>\u00a0(comment character) for both so that these settings will actually be recognized. Change\u00a0localip<\/code>\u00a0to your server IP. If you don’t know your server IP, you may look in the AKLWEB HOST control panel.<\/p>\n

The\u00a0remoteip<\/code>\u00a0is basically the IP range that clients (computers that are connected to your VPN) will be assigned. For example, if you want the following IP range: 192.168.120.231-235, your VPN server will be able to assign 192.168.120.232, 192.168.120.233, 192.168.120.234, and 192.168.120.235 to clients. It’s up to you what you want to use for this field.<\/p>\n

Step 4: Update sysctl.conf<\/h3>\n

Find the line\u00a0net.ipv4.ip_forward<\/code>\u00a0in the\u00a0sysctl.conf<\/code>\u00a0file. We need to uncomment this line, so open the following file:<\/p>\n

\/etc\/sysctl.conf\r\n<\/code><\/pre>\n

Make sure that it says\u00a0net.ipv4.ip_forward=1<\/code>, and not\u00a0net.ipv4.ip_forward=0<\/code>.<\/p>\n

Step 5: Restarting PPTPD<\/h3>\n

At this point, everything will work. Restart PPTPD.<\/p>\n

service pptpd restart\r\n<\/code><\/pre>\n

Congratulations, you now have a PPTP server!<\/p>\n

Using the VPN<\/h2>\n

Mac OS X<\/h3>\n

Using a VPN on Mac OS X is very easy.<\/p>\n

Go to\u00a0System Preferences -> Network<\/code>. Click on the\u00a0+<\/code>\u00a0icon and choose “VPN” as the interface. The name can be anything you want, for example “VPN”. The VPN type is “PPTP”. Click “Create”. You will now see some settings; the server address and username. These are the credentials you have entered in the\u00a0\/etc\/ppp\/chap-secrets<\/code>\u00a0file.<\/p>\n

Now click on “Authentication Settings”. Choose “Password” and enter the password. Click “OK”, then click “Connect”.<\/p>\n

Your computer will now connect to your VPN server. Internet traffic will be sent over the VPN server.<\/p>\n

Windows 8<\/h3>\n

In Windows 8, setting up a VPN is pretty easy as well. The first thing you are going to do is go to the “Start menu” and type “VPN”. You should see “Set up a virtual private network (VPN) connection”. Click on that.<\/p>\n

The internet address is your server IP. The destination name can be anything you would like, such as “VPN”. Click “Next”. Windows will now ask for your credentials; enter the username and password you have entered in the\u00a0\/etc\/ppp\/chap-secrets<\/code>\u00a0file. Click “Connect”.<\/p>\n

Windows will now connect to your VPN server and start sending traffic over it.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[242,244,247],"manual_kb_tag":[489],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2995"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2995"}],"version-history":[{"count":2,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2995\/revisions"}],"predecessor-version":[{"id":2997,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2995\/revisions\/2997"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2995"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2995"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}