PPTP VPN сервер в 3 конфигурационных файлах

Тема конечно избита. Но я все равно расскажу как установить pptp демон =) Команда для установки сервера будет варьироваться в зависимости от того, какой дистрибутив Linux вы используйте. В моем случае это Ubuntu.

sudo apt-get install pptpd

Открываем /etc/pptpd.conf  и прописываем:

option /etc/ppp/pptpd-options
logwtmp
localip 11.10.10.219
remoteip 11.10.10.220-240

Открываем  /etc/ppp/pptpd-options:

name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
ms-dns 8.8.8.8
nodefaultroute
debug
lock
nobsdcomp

Открываем

username pptpd mypassword *

Запускаем pptpd:

sudo service pptpd restart

Настроим правила iptables:

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

В случае если ваш VPN сервер не подключен напрямую к интернету, вам скорее всего понадобится открыть порт TCP-1723 и «протокол 47», он же GRE, на локальный IP адрес VPN сервера.

Настройка закончена.

17 комментариев к “PPTP VPN сервер в 3 конфигурационных файлах

  1. Awesome site you have here but I was wanting to know if you knew of any message boards that cover the same topics talked about here? I’d really like to be a part of community where I can get responses from other experienced individuals that share the same interest. If you have any suggestions, please let me know. Thanks!

  2. I?m impressed, I need to say. Truly rarely do I experience a blog site that?s both instructional as well as amusing, and let me tell you, you have actually struck the nail on the head. Your concept is superior; the issue is something that insufficient individuals are speaking intelligently around. I am very delighted that I stumbled across this in my look for something connecting to this.

  3. I am typically to blog writing as well as i really appreciate your material. The post has actually peaks my rate of interest. I am mosting likely to bookmark your website as well as maintain checking for new information.

  4. Aw, this was a really good post. In suggestion I would love to put in writing similar to this additionally? requiring time and also actual effort to make a very good article? however what can I say? I procrastinate alot as well as by no means appear to obtain something done.

  5. Oh my goodness! an incredible post man. Thank you Nonetheless I am experiencing concern with ur rss. Don?t know why Incapable to register for it. Exists anybody obtaining the same rss issue? Any person who understands kindly react. Thnkx

  6. The following time I check out a blog site, I wish that it doesn’t disappoint me as long as this set. I mean, I understand it was my option to review, however I actually thought youd have something interesting to claim. All I listen to is a lot of grumbling regarding something that you could fix if you werent as well active searching for interest.

Оставить ответ

Ваш адрес email не будет опубликован. Обязательные поля помечены *