A
A
akdes2014-10-29 15:43:40
Debian
akdes, 2014-10-29 15:43:40

Easy VPN installation on Debian 7?

Hello.
I can't find a simple installation guide for VPN Server on Debian.
Help with instructions and packages to install my personal VPN Server on vServer-Debian
I want to use without additional. client on Windows, like a VPN from hide.me
Thank you in advance,
regards, Alexander

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Petrikov, 2014-10-29
@RicoX

The simplest option without encryption.
Install the package Edit the
config
Any unused grid can be hung on a loopback.

option /etc/ppp/pptpd-options
logwtmp
localip 172.16.0.1
remoteip 172.16.0.2,172.31.255.254

1 more config
We write to it
auth
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
ms-dns # Указываем DNS-сервер провайдера
ms-dns # Указываем второй DNS-сервер провайдера
proxyarp
nodefaultroute
#debug
logfile /var/log/pptpd.log
lock
nobsdcomp
mtu 1400
mru 1400

And the config with logins-passwords
We create users in it by type:
Login connection type password which IP to give
Here we indicated for user u001 that he will have a static IP address 172.16.0.12 and password ozQui1Yr
If you need to allocate dynamic IP addresses to users, instead of 172.16 .0.12 specify * (asterisk).
We allow forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf

We allow the GRE protocol:
Distribute NAT to our subnet (if we give gray addresses and need access to the Internet through VPN):
We provide automatic setting of the segment size in the TCP headers of SYN and SYN, ACK packets in accordance with the minimum of the MTU values ​​​​known to our gateway along the path of the packet (I hope I told it correctly and more clearly):
We start the pptpd daemon
If something goes wrong, turn on the debug and look in
And so we create a VPN connection in Windows, specify the type PPTP and enjoy life.
Here, the editor is terribly not convenient, I wrote from memory, if you forgot something - call me.

A
Antony Ryabov, 2014-10-29
@tonymadbrain

But this manual under 7 with minor changes does not work? https://www.digitalocean.com/community/tutorials/h...

V
Vlad Zhivotnev, 2014-10-29
@inkvizitor68sl

habrahabr.ru/post/208782
linuxcenter.kz/page/%D1%83%D1%81%D1%82%D0%B0%D0%BD... You
can't imagine it easier. You can manage the server itself from the GUI utility on Windows.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question