Ubuntu UA

Загальні розділи => Адміністрування => Тема розпочата: Genal від 2011-12-09, 11:34:44

Назва: PPtP
Відправлено: Genal від 2011-12-09, 11:34:44
Есть 2 операционки. Ubuntu и Дебиан. На Убунте поставил ППтПд, на Дебиане клиент. Неполучаеться зарегаться на ВПН сервере с Дебиана, и неподнимаеться ppp0 на Дебиане.

Настройки делал как описывалось всюду на сайтах:
ФАЙЛ   Chap secrets

# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
test test *
test1 test1 *


ФАЙЛ  pptpd-options

Authentication

name pptpd

refuse-pap
refuse-chap
refuse-mschap

require-mschap-v2

require-mppe-128

proxyarp

nodefaultroute

lock

nobsdcomp



Лог с Дебиана:
root@debian:~# pon vpn debug dump logfd 2 nodetach  >> logipodcluchenia.txt
pppd options in effect:
debug      # (from command line)
nodetach      # (from command line)
persist      # (from /etc/ppp/options.pptp.vpn)
logfd 2      # (from command line)
dump      # (from command line)
noauth      # (from /etc/ppp/options.pptp.vpn)
refuse-pap      # (from /etc/ppp/options.pptp.vpn)
refuse-chap      # (from /etc/ppp/options.pptp.vpn)
refuse-mschap      # (from /etc/ppp/options.pptp.vpn)
refuse-eap      # (from /etc/ppp/options.pptp.vpn)
name test      # (from /etc/ppp/peers/vpn)
remotename pptp      # (from /etc/ppp/peers/vpn)
      # (from /etc/ppp/options.pptp.vpn)
pty pptp 192.168.1.4 --nolaunchpppd      # (from /etc/ppp/peers/vpn)
crtscts      # (from /etc/ppp/options)
      # (from /etc/ppp/options)
asyncmap 0      # (from /etc/ppp/options)
lcp-echo-failure 4      # (from /etc/ppp/options)
lcp-echo-interval 30      # (from /etc/ppp/options)
hide-password      # (from /etc/ppp/options)
ipparam vpn      # (from /etc/ppp/peers/vpn)
nobsdcomp      # (from /etc/ppp/options.pptp.vpn)
nodeflate      # (from /etc/ppp/options.pptp.vpn)
require-mppe-128      # (from /etc/ppp/options.pptp.vpn)
noipx      # (from /etc/ppp/options)
using channel 41
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x64a95adf> <pcomp> <accomp>]
Script pptp 192.168.1.4 --nolaunchpppd finished (pid 2845), status = 0x0
Modem hangup
Connection terminated.
using channel 42
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x734a271b> <pcomp> <accomp>]
Script pptp 192.168.1.4 --nolaunchpppd finished (pid 2857), status = 0x0
Modem hangup
Connection terminated.
using channel 43
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x3 <asyncmap 0x0> <magic 0x23f940b0> <pcomp> <accomp>]
Script pptp 192.168.1.4 --nolaunchpppd finished (pid 2869), status = 0x0
Modem hangup
Connection terminated
Назва: Re: PPtP
Відправлено: swift від 2011-12-09, 12:57:19
дожно быть
test * test

test и логин и пароль
Назва: Re: PPtP
Відправлено: Genal від 2011-12-09, 13:18:52
client        server  secret                  IP addresses
test         test                                    *

разве не так?
Назва: Re: PPtP
Відправлено: swift від 2011-12-10, 13:37:09
client        server  secret                  IP addresses
test         test                                    *

разве не так?

client           server            secret                        IP addresses
user1           *                   my_password             
Назва: Re: PPtP
Відправлено: Genal від 2011-12-10, 14:43:17
нет видимо так
test pptp test * - вот только ниче неизменилось
Назва: Re: PPtP
Відправлено: swift від 2011-12-11, 10:11:16
Що в логах на сервері?


Код: [Select]
CHAP-Secrets

The Username and Passwords used by to login to the PPTP server are configured here. Pay close attention to the use of spaces and asterisks between usernames and passwords, authentication will not work without them.

General Syntax:

 Username * Password *
 (username_to_use,blank space,asterisk,blank space,password_to_use,blank space,asterisk)

Example:

marcelo * semino *
eduardo * crea *

The above will create two accounts: 'marcelo' and '"eduardo"' with the passwords '"semino"' and '"crea"' respectively.

WARNING: Do NOT forget the spaces between asterisk and usernames/passwords. If you omit them it will not work.
Назва: Re: PPtP
Відправлено: Genal від 2011-12-21, 10:32:11
А як дивитися логи на сервері?
Назва: Re: PPtP
Відправлено: swift від 2011-12-22, 01:56:16
/var/log/
Назва: Re: PPtP
Відправлено: Genal від 2011-12-25, 13:19:28
Хм чомусь  нічого в файлі для логів немає на сервері
# Logging
logfile /var/log/pptpd.log
# Enable connection debugging facilities.
# (see your syslog configuration for where pppd sends to)
#debug

Дивився файл pptpd.log - він порожній.

Клієнт не піднімає ррр0 інтерфейс, в ifconfig лише езернет 0 та l0
та продовжує сипати те що я  виклав у першому пості.

 Доречі дебиан та убунту в одній локальній мережі, працюють через вимвер поки що так тестую, але нічого невиходить, мені б спочатку звробити так щоб дебіан підняв ппп0 та зрееструвався на убунтівському впн сервері.