Auteur Sujet: Client PPTP sur un DD-WRT  (Lu 11555 fois)

0 Membres et 1 Invité sur ce sujet

DamienC

  • Abonné Sosh fibre
  • *
  • Messages: 2 217
  • FTTH ↓ 300Mbps ↑ 300 Mbps sur Brest (29)
Client PPTP sur un DD-WRT
« Réponse #24 le: 31 octobre 2015 à 14:59:11 »
Ok alors je viens de jeter un œil sur le serveur PPTPD, il n'y a aucune logs. Super!
Je vais me connecter via telnet au dd-wrt mais après je sais pas trop où chercher je vais voir.
Je reviens vers toi si j'ai du neuf... Souhaite moi bonne chance  ;D

kgersen

  • Modérateur
  • Abonné Bbox fibre
  • *
  • Messages: 9 091
  • Paris (75)
Client PPTP sur un DD-WRT
« Réponse #25 le: 31 octobre 2015 à 15:05:13 »
bonne chance ;)

ps: tu peux tenter en mettant 0.0.0.0  et 0.0.0.0 dans le remote subnet et subnet mask de la conf pptp client du ddwrt.
apres tout on n'a pas besoin de faire ca pour le moment et ici (cette info n'a pas d'utilité pour établir une connexion PPTP, elle sert pour le routage).


DamienC

  • Abonné Sosh fibre
  • *
  • Messages: 2 217
  • FTTH ↓ 300Mbps ↑ 300 Mbps sur Brest (29)
Client PPTP sur un DD-WRT
« Réponse #26 le: 31 octobre 2015 à 15:09:59 »
root@Wifioo-brndev:/tmp/pptpd_client# cat options.vpn
#debug stuff
logfd 2
debug
dump
#
defaultroute
lock
noauth
nodetach
#refuse-eap
refuse-pap
refuse-chap
refuse-mschap
nobsdcomp
nodeflate
mppc
#lcp-echo-adaptive      #
lcp-echo-failure 30
lcp-echo-interval 2
persist #dont close session try to reconnect
maxfail 0       #forever try to connect
usepeerdns
idle 0
ip-up-script /tmp/pptpd_client/ip-up
ip-down-script /tmp/pptpd_client/ip-down
ipparam kelokepptpd
mppe required,no40,no56,stateless
mtu 1464
mru 1464
name *****
password ******

refuse-pap
refuse-chap
refuse-mschap
nobsdcomp
nodeflate
mppc

Mmmh c'est bon ça?

DamienC

  • Abonné Sosh fibre
  • *
  • Messages: 2 217
  • FTTH ↓ 300Mbps ↑ 300 Mbps sur Brest (29)
Client PPTP sur un DD-WRT
« Réponse #27 le: 31 octobre 2015 à 15:12:05 »
Je ne sais pas trop où chercher alors je post un peu tout (je ferai du tri tout à l'heure)

kgersen

  • Modérateur
  • Abonné Bbox fibre
  • *
  • Messages: 9 091
  • Paris (75)
Client PPTP sur un DD-WRT
« Réponse #28 le: 31 octobre 2015 à 15:16:29 »
regardes les logs (cat /var/log/messages ou un truc comme ca) si y'en a pas faut peut-etre les activer (dans l'interface de conf de ddwrt).

coté debian, "dmesg" et  dans /var/log

DamienC

  • Abonné Sosh fibre
  • *
  • Messages: 2 217
  • FTTH ↓ 300Mbps ↑ 300 Mbps sur Brest (29)
Client PPTP sur un DD-WRT
« Réponse #29 le: 31 octobre 2015 à 15:22:13 »
Oct 31 14:19:29 Wifioo-brndev user.info : pptp : PPTP daemon successfully stopped
Oct 31 14:19:30 Wifioo-brndev kern.info kernel: [ 1821.580000] device eth1 entered promiscuous mode
Oct 31 14:19:30 Wifioo-brndev kern.info kernel: [ 1822.260000] eth1: link down
Oct 31 14:19:30 Wifioo-brndev kern.info kernel: [ 1822.270000] device eth1 left promiscuous mode
Oct 31 14:19:31 Wifioo-brndev user.info : vpn modules : vpn modules successfully unloaded
Oct 31 14:19:31 Wifioo-brndev kern.info kernel: [ 1822.860000] eth1: link up (100Mbps/Full duplex)
Oct 31 14:19:37 Wifioo-brndev user.info : udhcpc : udhcp client process successfully stopped
Oct 31 14:19:37 Wifioo-brndev user.info : wland : WLAN daemon successfully stopped
Oct 31 14:19:37 Wifioo-brndev daemon.notice pppd[27607]: pppd 2.4.7 started by root, uid 0
Oct 31 14:19:38 Wifioo-brndev kern.info kernel: [ 1829.800000] IMQ driver unloaded successfully.
Oct 31 14:19:38 Wifioo-brndev user.info : udhcpd : DHCP daemon successfully stopped
Oct 31 14:19:38 Wifioo-brndev user.info : udhcpd : udhcp daemon successfully started
Oct 31 14:19:38 Wifioo-brndev kern.info kernel: [ 1830.070000] IMQ driver loaded successfully. (numdevs = 2, numqueues = 1)
Oct 31 14:19:38 Wifioo-brndev kern.info kernel: [ 1830.080000]  Hooking IMQ before NAT on PREROUTING.
Oct 31 14:19:38 Wifioo-brndev kern.info kernel: [ 1830.080000]  Hooking IMQ after NAT on POSTROUTING.
Oct 31 14:19:39 Wifioo-brndev user.info : vpn modules : vpn modules successfully unloaded
Oct 31 14:19:40 Wifioo-brndev user.info : process_monitor : Process Monitor successfully stopped
Oct 31 14:19:40 Wifioo-brndev user.info : process_monitor successfully started
Oct 31 14:19:40 Wifioo-brndev daemon.err process_monitor[28037]: Last update failed, we need to re-update after 30 seconds
Oct 31 14:19:40 Wifioo-brndev daemon.debug process_monitor[28037]: We need to re-update after 3600 seconds
Oct 31 14:19:40 Wifioo-brndev daemon.info process_monitor[28037]: set timer: 3600 seconds, callback: ntp_main()
Oct 31 14:19:41 Wifioo-brndev user.info : wland : WLAN daemon successfully started
Oct 31 14:19:42 Wifioo-brndev kern.info kernel: [ 1833.660000] IMQ driver unloaded successfully.
Oct 31 14:19:42 Wifioo-brndev user.info : wland : WLAN daemon successfully stopped
Oct 31 14:19:42 Wifioo-brndev kern.info kernel: [ 1833.830000] IMQ driver loaded successfully. (numdevs = 2, numqueues = 1)
Oct 31 14:19:42 Wifioo-brndev kern.info kernel: [ 1833.840000]  Hooking IMQ before NAT on PREROUTING.
Oct 31 14:19:42 Wifioo-brndev kern.info kernel: [ 1833.840000]  Hooking IMQ after NAT on POSTROUTING.
Oct 31 14:19:43 Wifioo-brndev user.info : wland : WLAN daemon successfully started
Oct 31 14:19:43 Wifioo-brndev user.info : WAN is up. IP: 192.168.0.26
Oct 31 14:19:44 Wifioo-brndev daemon.info pppd[27607]: Exit.
Oct 31 14:19:39 Wifioo-brndev user.info : vpn modules : vpn modules successfully unloaded Ça ne parle pas beaucoup :(

DamienC

  • Abonné Sosh fibre
  • *
  • Messages: 2 217
  • FTTH ↓ 300Mbps ↑ 300 Mbps sur Brest (29)
Client PPTP sur un DD-WRT
« Réponse #30 le: 31 octobre 2015 à 15:23:41 »
root@vpn-wifioo:~# cd /var/log
root@vpn-wifioo:/var/log# cat dmesg
(Nothing has been logged yet.)
root@vpn-wifioo:/var/log#
Ici rien n'est logs je vais regarder si je peux les activer.

DamienC

  • Abonné Sosh fibre
  • *
  • Messages: 2 217
  • FTTH ↓ 300Mbps ↑ 300 Mbps sur Brest (29)
Client PPTP sur un DD-WRT
« Réponse #31 le: 31 octobre 2015 à 15:32:21 »
Voici les logs côté serveur, on voit bien que mon IP Free tente de se connecter !

Oct 31 15:31:10 vpn-wifioo pptpd[21276]: CTRL: Client 78.223.xx.xxx control connection started
Oct 31 15:31:11 vpn-wifioo pptpd[21276]: CTRL: Starting call (launching pppd, opening GRE)
Oct 31 15:31:11 vpn-wifioo pppd[21277]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Oct 31 15:31:11 vpn-wifioo pppd[21277]: pppd 2.4.6 started by root, uid 0
Oct 31 15:31:11 vpn-wifioo pppd[21277]: Using interface ppp1
Oct 31 15:31:11 vpn-wifioo pppd[21277]: Connect: ppp1 <--> /dev/pts/5
Oct 31 15:31:13 vpn-wifioo pppd[21277]: Modem hangup
Oct 31 15:31:13 vpn-wifioo pptpd[21276]: CTRL: Reaping child PPP[21277]
Oct 31 15:31:13 vpn-wifioo pppd[21277]: Connection terminated.
Oct 31 15:31:13 vpn-wifioo pppd[21277]: Exit.
Oct 31 15:31:13 vpn-wifioo pptpd[21276]: CTRL: Client 78.223.xx.xxx control connection finished

DamienC

  • Abonné Sosh fibre
  • *
  • Messages: 2 217
  • FTTH ↓ 300Mbps ↑ 300 Mbps sur Brest (29)
Client PPTP sur un DD-WRT
« Réponse #32 le: 31 octobre 2015 à 15:36:22 »
Ok je crois comprendre, il semblerait qu'il y ai un soucis avec "localip" et "remoteip" comme pour cette personne : http://serverfault.com/questions/190687/debian-server-pptp-vpn-connection-not-working

Je vais essayer d'autres paramètres.

DamienC

  • Abonné Sosh fibre
  • *
  • Messages: 2 217
  • FTTH ↓ 300Mbps ↑ 300 Mbps sur Brest (29)
Client PPTP sur un DD-WRT
« Réponse #33 le: 31 octobre 2015 à 15:51:03 »
J'ai donc modifier les paramètres du serveur :
localip 192.168.1.160
remoteip 192.168.1.170-200
Les IPs sont bien dispo dans le /24 de la Livebox.

Petite amélioration :
Oct 31 15:48:44 vpn-wifioo pppd[23223]: pppd 2.4.6 started by root, uid 0
Oct 31 15:48:44 vpn-wifioo pppd[23223]: Using interface ppp0
Oct 31 15:48:44 vpn-wifioo pppd[23223]: Connect: ppp0 <--> /dev/pts/5
Oct 31 15:48:44 vpn-wifioo pppd[23223]: peer from calling number 78.223.xx.xxx authorized
Oct 31 15:48:44 vpn-wifioo pppd[23223]: MPPE 128-bit stateless compression enabled
Oct 31 15:48:44 vpn-wifioo pptpd[23222]: CTRL: Starting call (launching pppd, opening GRE)
Oct 31 15:48:44 vpn-wifioo pppd[23229]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Oct 31 15:48:44 vpn-wifioo pppd[23229]: pppd 2.4.6 started by root, uid 0
Oct 31 15:48:44 vpn-wifioo pppd[23229]: Using interface ppp1
Oct 31 15:48:44 vpn-wifioo pppd[23229]: Connect: ppp1 <--> /dev/pts/6
Oct 31 15:48:44 vpn-wifioo pppd[23223]: found interface eth0 for proxy arp
Oct 31 15:48:44 vpn-wifioo pppd[23223]: local  IP address 192.168.1.160
Oct 31 15:48:44 vpn-wifioo pppd[23223]: remote IP address 192.168.1.170
Oct 31 15:48:46 vpn-wifioo pptpd[23222]: CTRL: Reaping child PPP[23229]
Oct 31 15:48:46 vpn-wifioo pppd[23229]: Modem hangup
Oct 31 15:48:46 vpn-wifioo pppd[23229]: Connection terminated.
Oct 31 15:48:47 vpn-wifioo pppd[23229]: Exit.
Oct 31 15:48:47 vpn-wifioo pptpd[23222]: CTRL: Client 78.223.xx.xxx control connection finished
Oct 31 15:48:47 vpn-wifioo pppd[23223]: Modem hangup
Oct 31 15:48:47 vpn-wifioo pptpd[23221]: CTRL: Reaping child PPP[23223]
Oct 31 15:48:47 vpn-wifioo pppd[23223]: Connect time 0.1 minutes.
Oct 31 15:48:47 vpn-wifioo pppd[23223]: Sent 0 bytes, received 737 bytes.
Oct 31 15:48:47 vpn-wifioo pppd[23223]: MPPE disabled
Oct 31 15:48:47 vpn-wifioo pppd[23223]: Connection terminated.
Oct 31 15:48:47 vpn-wifioo pppd[23223]: Exit.
Oct 31 15:48:47 vpn-wifioo pptpd[23221]: CTRL: Client 78.223.xx.xxx control connection finished

DamienC

  • Abonné Sosh fibre
  • *
  • Messages: 2 217
  • FTTH ↓ 300Mbps ↑ 300 Mbps sur Brest (29)
Client PPTP sur un DD-WRT
« Réponse #34 le: 31 octobre 2015 à 16:18:44 »
J'ai passé le MTU et le MRU à 1400 sur le serveur + le dd-wrt au cas-ou mais pas mieux.
Oct 31 16:17:06 vpn-wifioo pptpd[25964]: CTRL: Client 78.223.xx.xxx control connection started
Oct 31 16:17:07 vpn-wifioo pptpd[25964]: CTRL: Starting call (launching pppd, opening GRE)
Oct 31 16:17:07 vpn-wifioo pppd[25966]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Oct 31 16:17:07 vpn-wifioo pppd[25966]: pppd 2.4.6 started by root, uid 0
Oct 31 16:17:07 vpn-wifioo pppd[25966]: Using interface ppp1
Oct 31 16:17:07 vpn-wifioo pppd[25966]: Connect: ppp1 <--> /dev/pts/7
Oct 31 16:17:10 vpn-wifioo pptpd[25964]: CTRL: Reaping child PPP[25966]
Oct 31 16:17:10 vpn-wifioo pppd[25966]: Modem hangup
Oct 31 16:17:10 vpn-wifioo pppd[25966]: Connection terminated.
Oct 31 16:17:10 vpn-wifioo pppd[25966]: Exit.
Oct 31 16:17:10 vpn-wifioo pptpd[25964]: CTRL: Client 78.223.xx.xxx control connection finished

DamienC

  • Abonné Sosh fibre
  • *
  • Messages: 2 217
  • FTTH ↓ 300Mbps ↑ 300 Mbps sur Brest (29)
Client PPTP sur un DD-WRT
« Réponse #35 le: 31 octobre 2015 à 17:23:35 »
J'approche du but ! J'ai changé la configuration du serveur pour celle-ci :
# BSD licensed ppp-2.4.2 upstream with MPPE only, kernel module ppp_mppe.o
# {{{
#refuse-pap
#refuse-chap
#refuse-mschap
# Require the peer to authenticate itself using MS-CHAPv2 [Microsoft
# Challenge Handshake Authentication Protocol, Version 2] authentication.
#require-chap
# Require MPPE 128-bit encryption
# (note that MPPE requires the use of MSCHAP-V2 during authentication)
require-mppe
# }}}
J'ai donc changer le MPPE. J'ai mis require-mppe au lieu du MPPE 128 bit. Maintenant je dois trouver lequel de chap, mschap ou pap il faut que je passe en require je pense.


Oct 31 17:19:15 vpn-wifioo pppd[438]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Oct 31 17:19:15 vpn-wifioo pppd[438]: pppd 2.4.6 started by root, uid 0
Oct 31 17:19:15 vpn-wifioo pppd[438]: Using interface ppp1
Oct 31 17:19:15 vpn-wifioo pppd[438]: Connect: ppp1 <--> /dev/pts/8
Oct 31 17:19:15 vpn-wifioo pppd[438]: EAP: unauthenticated peer name "wifioo"
Oct 31 17:19:15 vpn-wifioo pppd[438]: peer from calling number 78.223.xx.xxx authorized
Oct 31 17:19:15 vpn-wifioo pppd[438]: Connection terminated.
Oct 31 17:19:15 vpn-wifioo pppd[438]: Connect time 0.0 minutes.
Oct 31 17:19:15 vpn-wifioo pppd[438]: Sent 0 bytes, received 0 bytes.
Oct 31 17:19:15 vpn-wifioo pppd[438]: Exit.
Maintenant il essai de se connecter avec son identifiant, c'est déjà bien! Il est même autorisé, quelle chance!  8)