Thursday, February 12, 2015

[Quick Tips]: How to install VPN server Configure VPN with Script

How to install VPN server Configure VPN with Script

In this article we will discuss “How to install VPN server and Configure VPN with Script”. A virtual private network (VPN) extends a private network across a public network, like the Internet which enables a computer or LAN, Wi-Fi-enabled device to share data with each other across shared or public networks as if it were directly connected to the private network. A VPN is created by initiating a virtual point-to-point link through the use of dedicated connections or traffic encryption. VPN was not the first technology to make remote connections but the most common way to connect computers between multiple offices was by using a leased line before VPN came. Now if you want to create VPN by script then start here and make sure of all the changes for your requirement. Please read script very carefully and then you can proceed with the execution of this script.
vpn1vpn2vpn3
Now we will start the tutorial “How to install VPN server and Configure VPN with and without Script.
vpn4
vpn5
Now add user account in/etc/ppp/chap-secrets (assign a username and password for the created account).
vpn6
Optional settings in /etc/ppp/options.pptpd
vpn7
Enable network forwarding in /etc/sysctl.conf
vpn8
For permanent boot time running network forwarding service, use the following command.
vpn9
Configure firewall as following:
vpn12
Note : If you are using CSF firewall, you may refer to this post on firewall settings.
Now Start PPTP VPN server.If your OS is CentOS or Redhat, use the following command:
vpn10
To PPTP Daemon automatically running when rebooting next time, use the below given command:
vpn11For details :
https://openvpn.net
http://en.wikipedia.org/wiki/Virtual_private_network

No comments: