Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 27/10/2014, à 16:38

pem1664

configuration serveur vpn pptpd

Bonjour a tous!
Je n'arrive pas à utiliser pptpd sous une débian chez ikoula (serveur dédié)
voici l'erreur que j'ai avec un client vpn android (celui des parametres)

root@sub-til:/home/pem#  tail -f /var/log/syslog
Oct 27 15:19:06 sub-til pppd[4035]: Exit.
Oct 27 15:19:06 sub-til pptpd[4034]: CTRL: Client 37.160.150.170 control connection finished
Oct 27 15:20:01 sub-til /USR/SBIN/CRON[4042]: (root) CMD (/bin/sh /root/IkoulaRelease/scripts/zabbix_hourly_checks.sh > /dev/null 2>&1)
Oct 27 15:23:31 sub-til kernel: [  689.100565] e2label: sending ioctl 127c to a partition!
Oct 27 15:23:31 sub-til kernel: [  689.100614] e2label: sending ioctl 127c to a partition!
Oct 27 15:23:31 sub-til kernel: [  689.109625] e2label: sending ioctl 127c to a partition!
Oct 27 15:23:31 sub-til kernel: [  689.109676] e2label: sending ioctl 127c to a partition!
Oct 27 15:24:59 sub-til pptpd[4117]: MGR: Maximum of 100 connections reduced to 10, not enough IP addresses given
Oct 27 15:24:59 sub-til pptpd[4118]: MGR: Manager process started
Oct 27 15:24:59 sub-til pptpd[4118]: MGR: Maximum of 10 connections available
Oct 27 15:25:33 sub-til pptpd[4121]: CTRL: Client 37.160.150.170 control connection started
Oct 27 15:25:33 sub-til pptpd[4121]: CTRL: Starting call (launching pppd, opening GRE)
Oct 27 15:25:33 sub-til pppd[4122]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Oct 27 15:25:33 sub-til pppd[4122]: pppd 2.4.5 started by root, uid 0
Oct 27 15:25:33 sub-til pppd[4122]: Using interface ppp0
Oct 27 15:25:33 sub-til pppd[4122]: Connect: ppp0 <--> /dev/pts/1
Oct 27 15:25:34 sub-til pptpd[4121]: GRE: Bad checksum from pppd.
Oct 27 15:25:58 sub-til pppd[4122]: peer from calling number 37.160.150.170 authorized
Oct 27 15:25:59 sub-til pppd[4122]: LCP terminated by peer (Failed to authenticate ourselves to peer)
Oct 27 15:25:59 sub-til pptpd[4121]: CTRL: EOF or bad error reading ctrl packet length.
Oct 27 15:25:59 sub-til pptpd[4121]: CTRL: couldn't read packet header (exit)
Oct 27 15:25:59 sub-til pptpd[4121]: CTRL: CTRL read failed
Oct 27 15:25:59 sub-til pppd[4122]: Modem hangup
Oct 27 15:25:59 sub-til pptpd[4121]: CTRL: Reaping child PPP[4122]
Oct 27 15:25:59 sub-til pppd[4122]: Connection terminated.
Oct 27 15:25:59 sub-til pppd[4122]: Connect time 0.5 minutes.
Oct 27 15:25:59 sub-til pppd[4122]: Sent 10 bytes, received 0 bytes.
Oct 27 15:25:59 sub-til avahi-daemon[2650]: Withdrawing workstation service for ppp0.
Oct 27 15:25:59 sub-til pppd[4122]: Exit.
Oct 27 15:25:59 sub-til pptpd[4121]: CTRL: Client 37.160.150.170 control connection finished

et voici mes fichiers de conf :
/etc/pptpd.conf

localip 213.246.53.43
remoteip 10.10.0.1-10

/etc/ppp/pptpd-options

###############################################################################
# $Id: pptpd-options 4643 2006-11-06 18:42:43Z rene $
#
# Sample Poptop PPP options file /etc/ppp/pptpd-options
# Options used by PPP when a connection arrives from a client.
# This file is pointed to by /etc/pptpd.conf option keyword.
# Changes are effective on the next connection.  See "man pppd".
#
# You are expected to change this file to suit your system.  As
# packaged, it requires PPP 2.4.2 and the kernel MPPE module.
###############################################################################


# Authentication

# Name of the local system for authentication purposes
# (must match the second field in /etc/ppp/chap-secrets entries)
name pptpd

# Optional: domain name to use for authentication
# domain mydomain.net

# Strip the domain prefix from the username before authentication.
# (applies if you use pppd with chapms-strip-domain patch)
#chapms-strip-domain


# Encryption
# Debian: on systems with a kernel built with the package
# kernel-patch-mppe >= 2.4.2 and using ppp >= 2.4.2, ...
# {{{
refuse-pap
refuse-chap
refuse-mschap
# Require the peer to authenticate itself using MS-CHAPv2 [Microsoft
# Challenge Handshake Authentication Protocol, Version 2] authentication.
require-mschap-v2
# Require MPPE 128-bit encryption
# (note that MPPE requires the use of MSCHAP-V2 during authentication)
require-mppe-128
mppe-stateful
# }}}




# Network and Routing

# If pppd is acting as a server for Microsoft Windows clients, this
# option allows pppd to supply one or two DNS (Domain Name Server)
# addresses to the clients.  The first instance of this option
# specifies the primary DNS address; the second instance (if given)
# specifies the secondary DNS address.
# Attention! This information may not be taken into account by a Windows
# client. See KB311218 in Microsoft's knowledge base for more information.
#ms-dns 213.246.33.228
#ms-dns 213.246.33.229
#ms-dns 8.8.8.8
ms-dns 213.246.53.43

# If pppd is acting as a server for Microsoft Windows or "Samba"
# clients, this option allows pppd to supply one or two WINS (Windows
# Internet Name Services) server addresses to the clients.  The first
# instance of this option specifies the primary WINS address; the
# second instance (if given) specifies the secondary WINS address.
#ms-wins 10.0.0.3
#ms-wins 10.0.0.4

# Add an entry to this system's ARP [Address Resolution Protocol]
# table with the IP address of the peer and the Ethernet address of this
# system.  This will have the effect of making the peer appear to other
# systems to be on the local ethernet.
# (you do not need this if your PPTP server is responsible for routing
# packets to the clients -- James Cameron)
proxyarp

# Debian: do not replace the default route
nodefaultroute


# Logging

# Enable connection debugging facilities.
# (see your syslog configuration for where pppd sends to)
#debug

# Print out all the option values which have been set.
# (often requested by mailing list to verify options)
#dump


# Miscellaneous

# Create a UUCP-style lock file for the pseudo-tty to ensure exclusive
# access.
lock

# Disable BSD-Compress compression
nobsdcomp
silent

et voici mon /etc/ppp/chap-secrets

login pptpd passwd *

Lip de la machine est : 213.246.53.43 j'ai essayé de modifier les ms-dns en mettant ceux d'ikoula ou le public de google ou l'adresse ip de la machine rien n'y fait...
Auriez vous des suggestions svp !!!
Merci!


Pas de problème sans solutions, mettre [résolu] dans son premier post permet de rechercher plus facilement une solution... ;)

Hors ligne

#2 Le 29/10/2014, à 19:29

pem1664

Re : configuration serveur vpn pptpd

Bon au final je passe par L2TP...


Pas de problème sans solutions, mettre [résolu] dans son premier post permet de rechercher plus facilement une solution... ;)

Hors ligne