Home page Forum

Go Back   MyServerZone » My Server Discussion » Linux Servers » Debian

Reply
 
LinkBack Thread Tools Display Modes
Old 11-17-2008, 01:34 PM
Administrator
 
KING's Avatar
 
Join Date: Nov 2008
Posts: 23
Send a message via ICQ to KING Send a message via Yahoo to KING Send a message via Skype™ to KING
Default 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.
KING is offline   Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:30 PM.