pptpd VPN installation
Today I will write small tutorial for creating VPN on your debian server.
First we check MPPE support of our kernel:
# modprobe ppp-compress-18 && echo success
if it fails check google how to enable it.
Installing server:
# apt-get install pptpd
Configure ip address:
pico /etc/pptpd.conf
find line:
localip 192.168.0.1
remoteip 192.168.0.234-238,192.168.0.245
local ip is your local ip address example you rent server from some company and they have root access to it,so localip will be the same ip as you connecting to server with putty and remoteip will be address of some additional ip addreses which your company have available example if you enter local ip:
123.123.123.120
so remote ip have to be something like : 123.123.123.122
if you will write bad ip's you will not be able to use VPN normaly.
ADD USERS:
# echo "username pptpd password *" >> /etc/ppp/chap-secrets
RESTART:
# /etc/init.d/pptpd restart
Ok so you are done,now you should test it from Windows machine try to connect,you have to be able to connect and you will get your server ip address and will be able to connect to internet and etc.
Later I will post how to configure firewall if something goes wrong.
|