LINUX.ORG.RU
ФорумAdmin

Ещё раз настройка VPN


0

0

Здравствуйте! Пытаюсь тщетно поднять VPN серваер но где то совершаю каждый раз ошибку помогите pls разобраться. вот конфигурационные фаулы которые я настраивал. /etc/pptpd.conf ---cat-/etc/pptpd.conf--- #speed 115200 option /etc/ppp/options.pptpd debug localip 192.168.3.1 remoteip 192.168.2.2-200 ---end-of-cat--- при пустых настройках /etc/ppp/options.pptpd можно приконнектиться к серверу с любым паролем и логином. При изменении последнего, добавлением строчек lock noproxyarp ipcp-accept-local ipcp-accept-remote lcp-echo-failure 30 lcp-echo-interval 5 deflate 0 всё работает точно так же. Подключается без пароля и т.п. В логе пишет: Mar 17 19:58:03 SERVER2 pppd[6315]: Connect: ppp0 <--> /dev/pts/2 Mar 17 19:58:03 SERVER2 pptpd[6314]: CTRL: Received PPTP Control Message (type: 15) Mar 17 19:58:03 SERVER2 pptpd[6314]: CTRL: Got a SET LINK INFO packet with stand ard ACCMs Mar 17 19:58:06 SERVER2 pptpd[6314]: CTRL: Received PPTP Control Message (type: 15) Mar 17 19:58:06 SERVER2 pptpd[6314]: CTRL: Ignored a SET LINK INFO packet with real ACCMs! Mar 17 19:58:06 SERVER2 pppd[6315]: local IP address 192.168.3.1 Mar 17 19:58:06 SERVER2 pppd[6315]: remote IP address 192.168.3.2 Mar 17 19:59:03 SERVER2 pptpd[6314]: CTRL: Received PPTP Control Message (type: 5) Mar 17 19:59:03 SERVER2 pptpd[6314]: CTRL: Made a ECHO RPLY packet Mar 17 19:59:03 SERVER2 pptpd[6314]: CTRL: I wrote 20 bytes to the client. Mar 17 19:59:03 SERVER2 pptpd[6314]: CTRL: Sent packet to client Mar 17 20:00:03 SERVER2 pptpd[6314]: CTRL: Received PPTP Control Message (type: 5) Mar 17 20:00:03 SERVER2 pptpd[6314]: CTRL: Made a ECHO RPLY packet Mar 17 20:00:03 SERVER2 pptpd[6314]: CTRL: I wrote 20 bytes to the client. Mar 17 20:00:03 SERVER2 pptpd[6314]: CTRL: Sent packet to client

при добавлении строчек типа auth начинает

Mar 17 20:11:41 SERVER2 pptpd[6438]: MGR: Reaped child 6446 Mar 17 20:12:44 SERVER2 pptpd[6452]: MGR: Max connections reached, extra IP addresses ignored Mar 17 20:12:44 SERVER2 pptpd[6453]: MGR: Manager process started Mar 17 20:12:44 SERVER2 pptpd[6453]: MGR: Maximum of 100 connections available Mar 17 20:12:50 SERVER2 pptpd[6454]: MGR: launching /usr/local/sbin/pptpctrl to handle client Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: local address = 192.168.3.1 Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: remote address = 192.168.3.2 Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: pppd options file = /etc/ppp/options.pptpd Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: Client 192.168.2.61 control connection started Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: Received PPTP Control Message (type:1) Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: Made a START CTRL CONN RPLY packet Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: I wrote 156 bytes to the client. Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: Sent packet to client Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: Received PPTP Control Message (type:7) Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: Set parameters to 100000000 maxbps, 64 window size Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: Made a OUT CALL RPLY packet Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: Starting call (launching pppd, opening GRE) Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: pty_fd = 6 Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: tty_fd = 8 Mar 17 20:12:50 SERVER2 pptpd[6455]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd Mar 17 20:12:50 SERVER2 pptpd[6455]: CTRL (PPPD Launcher): local address = 192.168.3.1 Mar 17 20:12:50 SERVER2 pptpd[6455]: CTRL (PPPD Launcher): remote address = 192.168.3.2 Mar 17 20:12:50 SERVER2 pppd[6455]: The remote system (vpn) is required to authenticate itself Mar 17 20:12:50 SERVER2 pppd[6455]: but I couldn't find any suitable secret (password) for it to use to do so. Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: I wrote 32 bytes to the client. Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: Sent packet to client Mar 17 20:12:50 SERVER2 pptpd[6454]: GRE: read fd=6,buffer=804dc20,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: PTY read or GRE write failed (pty,gre)=(6,8) Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: I wrote 32 bytes to the client. Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: Sent packet to client Mar 17 20:12:50 SERVER2 pptpd[6454]: GRE: read(fd=6,buffer=804dc20,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: PTY read or GRE write failed (pty,gre)=(6,8) Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: Reaping child PPP[6455] Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: Client 192.168.2.61 control connection finished Mar 17 20:12:50 SERVER2 pptpd[6454]: CTRL: Exiting now Mar 17 20:12:50 SERVER2 pptpd[6453]: MGR: Reaped child 6454 Mar 17 20:14:15 SERVER2 pptpd[6462]: MGR: Max connections reached, extra IP addresses ignored Mar 17 20:14:15 SERVER2 pptpd[6463]: MGR: Manager process started Mar 17 20:14:15 SERVER2 pptpd[6463]: MGR: Maximum of 100 connections available Mar 17 20:14:22 SERVER2 pptpd[6464]: MGR: Launching /usr/local/sbin/pptpctrl to handle client Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: local address = 192.168.3.1 Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: remote address = 192.168.3.2 Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: pppd options file = /etc/ppp/options.pptpd Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: Client 192.168.2.61 control connection started Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: Received PPTP Control Message (type: 1) Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: Made a START CTRL CONN RPLY packet Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: I wrote 156 bytes to the client. Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: Sent packet to client Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: Received PPTP Control Message (type: 7) Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: Set parameters to 100000000 maxbps, 64 window size Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: Made a OUT CALL RPLY packet Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: Starting call (launching pppd, opening GRE) Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: pty_fd = 6 Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: tty_fd = 8 Mar 17 20:14:22 SERVER2 pptpd[6465]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd Mar 17 20:14:22 SERVER2 pptpd[6465]: CTRL (PPPD Launcher): local address = 192.168.3.1 Mar 17 20:14:22 SERVER2 pptpd[6465]: CTRL (PPPD Launcher): remote address = 192.168.3.2 Mar 17 20:14:22 SERVER2 pppd[6465]: The remote system (vpn) is required to authenticate itself Mar 17 20:14:22 SERVER2 pppd[6465]: but I couldn't find any suitable secret (password) for it to use to do so. Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: I wrote 32 bytes to the client. Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: Sent packet to client Mar 17 20:14:22 SERVER2 pptpd[6464]: GRE: read(fd=6,buffer=804dc20,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: PTY read or GRE write failed (pty,gre)=(6,8) Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: Reaping child PPP[6465] Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: Client 192.168.2.61 control connection finished Mar 17 20:14:22 SERVER2 pptpd[6464]: CTRL: Exiting now Mar 17 20:14:22 SERVER2 pptpd[6463]: MGR: Reaped child 6464

Блин что могет быть не так. Мне не надо никкакого сжатия или шифрования. Нужна тока аутентификация конкретного человека подключающегося.

Re: Ещё раз настройка VPN

Ивените что беспорядочно написано, но так получилось. Ещё добавить хотел что при добавлении строчек +chap +chapms +chapms-v2 всё равно не может приконнектиться даже если включить на стороне клиента проверку паролей этих

Halyva ()

Re: Ещё раз настройка VPN

Ипать... вот это пост %) Ты думаешь кто-нить сможет прочитать это? %)))

OpenStorm ★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.