CONFIGURATION VPN SERVER (DEBIAN 7) AND CLIENT VPN (WINDOWS 10)


1. Understanding VPN

VPN stands for Virtual Private Network, which is a private connection through the public network (in this case the internet). Here are two words that we can underline that is:

virtual network, which means that the network is only virtual. There is no real network connection between the 2 points that will be related.
private, a network that is formed private where not everyone can access it. The data that is transmitted is encrypted so that it remains confidential even through the public network.
With this VPN we seem to create a network within the network or commonly called tunnel (tunnel). Tunneling is a way of creating private lines using third-party infrastructure. VPN uses one of three existing tunneling technologies: PPTP, L2TP and the latest standards, Internet Protocol Security (commonly abbreviated as IPSec). VPN is a combination of tunneling and encryption technology.

2. VPN Server Configuration Using PPTPD on Debian 7

a. Installation

The most popular applications for VPN Server are pptpd and openvpn. Here I use pptpd.
root@grup3:/home/group3 # apt-apt install pptpd

b. DHCP IP server

root@grup3:/home/group3 # nano /etc/network/interfaces

#The primary network interface

auto eth0

iface eth0 inet dhcp

* add fences from address to dns-search

save configuration with F2> y> Enter

restart network: service networking restart

type ifconfig to see the ip the server gets.

server gets IP 192.168.5.97

d. Configure Server VPN

Please note first, that the vpn server requires at least two Ethernet interfaces. One leads to Local network, and the other leads to the Internet network. For the Internet, vpn serverpun must use Ip Public, to be accessed from anywhere.
The configuration for the VPN server, located on the pptpd.conf file.
root@grup3:/home/group3# nano /etc/pptpd.conf

#. . .

localip 192.168.5.97 #ip for vpn server

remoteip 192.168.5.100-200 #range ip for vpn client

# or

# localip 192.168.2.0

# remoteip 192.168.2.2-238,192.168.2.245

c. Creating a VPN User

Create user and password for VPN Client, to connect to VPN server.
root@grup3:/home/group3# nano /etc/ppp/chap-secrets

# Secrets for authentication using CHAP

# client server secret IP addresses

ace pptpd ace123 *

dani pptpd dani123 *

root@grup3:/home/group3# /etc/init.d/pptpd restart

d. Testing

Testing here we will do on two different computer networks physically. And both computers must connect to the vpn server, then LogIn vpn on the debian server.
Here's how to configure vpn client in Windows 10.
a. Start> Control Panel> Network and Sharing Center
b. Click "setup a new connection or network"


c. Click "connect to a workplace"


d. Click "use my internet connection (VPN)"


e. Click "i'll set up internet connection later"


f. Enter IP VPN Server: 192.168.5.97> Click "Create"


g. Click "Change Adapter Setting"


i. Right click on "VPN Connection"> click Properties


j. click Networking >”Internet Protocol Version 4 (TCP/IPv4)>properties


k. click “Advanced”


l. Checklist "Automatic metric" > Ok


m. Click "VPN Connection"> Start This Connection


n. Click "VPN Connection"> connect


o. Enter "User Name & Password" (from VPN Server) > OK


p. Log in to CMD to find out the server and client connections (ping 192.168.5.97) & to find out the IP of server (ipconfig)



Comments

Popular Posts