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.
Now we will start the tutorial “How to install VPN server and Configure VPN with and without Script.
Now add user account in/etc/ppp/chap-secrets (assign a username and password for the created account).
Optional settings in /etc/ppp/options.pptpd
Enable network forwarding in /etc/sysctl.conf
For permanent boot time running network forwarding service, use the following command.
Configure firewall as following:
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:
To PPTP Daemon automatically running when rebooting next time, use the below given command:
For details :
https://openvpn.net
http://en.wikipedia.org/wiki/Virtual_private_network
No comments:
Post a Comment