Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2577 connectés 

  FORUM HardWare.fr
  Réseaux grand public / SoHo
  Réseaux

  OpenVPN TAP problème ping Livebox

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

OpenVPN TAP problème ping Livebox

n°945783
Adrien54
Posté le 10-10-2016 à 20:37:30  profilanswer
 

Bonjour à tous,
 
J'ai installé OpenVPN sur un serveur Ubuntu, qui se trouve derrière une Livebox, afin de pouvoir accéder à toutes les ressources du réseau en étant connecté.
J'ai donc choisis le mode TAP (bridge) afin d'être directement connecté au réseau.
 
Tout fonctionne correctement à l'exception d'une seule chose : l'accès à la Livebox, impossible d'y accéder en HTTP et impossible de la pinguer.
Alors que le ping vers les autres PC du réseau fonctionne, le partage de fichiers Windows aussi, etc...
 
J'ai suivi à peu de chose prêt ce tuto pour la mise en place : http://www.hosthis.org/2011/12/how [...] ridge-mod/
 
Schéma de mon réseau :
http://pix.toile-libre.org/upload/img/1471424244.png
 
En ayant fait un tcpdump d'un côté et de l'autre du tunnel, je peux voir que le serveur OpenVPN envoi bien la réponse du ping mais elle n'est pas reçu par le client OpenVPN, comme on peut le voir sur les résultats tcpdump ci-dessous :
 
Test Ping Livebox (192.168.1.1) => ne fonctionne pas echo reply non reçu par le client
TCPDUMP côté serveur interface tap0
 

Code :
  1. vpn@vpn:~$ sudo tcpdump -v icmp -i tap0
  2. tcpdump: listening on tap0, link-type EN10MB (Ethernet), capture size 262144 bytes
  3. 10:33:29.055671 IP (tos 0x0, ttl 64, id 51464, offset 0, flags [DF], proto ICMP (1), length 84)
  4.     pc-88.home > livebox.home: ICMP echo request, id 4585, seq 1, length 64
  5. 10:33:29.057314 IP (tos 0x0, ttl 64, id 31092, offset 0, flags [none], proto ICMP (1), length 84)
  6.     livebox.home > pc-88.home: ICMP echo reply, id 4585, seq 1, length 64
  7. 10:33:30.060057 IP (tos 0x0, ttl 64, id 51493, offset 0, flags [DF], proto ICMP (1), length 84)
  8.     pc-88.home > livebox.home: ICMP echo request, id 4585, seq 2, length 64
  9. 10:33:30.060769 IP (tos 0x0, ttl 64, id 31093, offset 0, flags [none], proto ICMP (1), length 84)
  10.     livebox.home > pc-88.home: ICMP echo reply, id 4585, seq 2, length 64


 
TCPDUMP côté client interface tap0

Code :
  1. sudo tcpdump -i tap0 -v icmp
  2. tcpdump: listening on tap0, link-type EN10MB (Ethernet), capture size 262144 bytes
  3. 10:33:29.007146 IP (tos 0x0, ttl 64, id 51464, offset 0, flags [DF], proto ICMP (1), length 84)
  4.     192.168.1.10 > 192.168.1.1: ICMP echo request, id 4585, seq 1, length 64
  5. 10:33:30.012708 IP (tos 0x0, ttl 64, id 51493, offset 0, flags [DF], proto ICMP (1), length 84)
  6.     192.168.1.10 > 192.168.1.1: ICMP echo request, id 4585, seq 2, length 64


 
Test Ping Pc Windows (192.168.1.14) => fonctionne correctement
TCPDUMP côté serveur interface tap0

Code :
  1. vpn@vpn:~$ sudo tcpdump -v icmp -i tap0
  2. tcpdump: listening on tap0, link-type EN10MB (Ethernet), capture size 262144 bytes
  3. 10:35:15.862767 IP (tos 0x0, ttl 64, id 25610, offset 0, flags [DF], proto ICMP (1), length 84)
  4.     pc-88.home > ll.home: ICMP echo request, id 4588, seq 1, length 64
  5. 10:35:15.911411 IP (tos 0x0, ttl 128, id 2198, offset 0, flags [none], proto ICMP (1), length 84)
  6.     ll.home > pc-88.home: ICMP echo reply, id 4588, seq 1, length 64
  7. 10:35:16.872321 IP (tos 0x0, ttl 64, id 25676, offset 0, flags [DF], proto ICMP (1), length 84)
  8.     pc-88.home > ll.home: ICMP echo request, id 4588, seq 2, length 64
  9. 10:35:16.872482 IP (tos 0x0, ttl 128, id 2211, offset 0, flags [none], proto ICMP (1), length 84)
  10.     ll.home > pc-88.home: ICMP echo reply, id 4588, seq 2, length 64


 
TCPDUMP côté client interface tap0

Code :
  1. sudo tcpdump -i tap0 -v icmp
  2. tcpdump: listening on tap0, link-type EN10MB (Ethernet), capture size 262144 bytes
  3. 10:35:15.815552 IP (tos 0x0, ttl 64, id 25610, offset 0, flags [DF], proto ICMP (1), length 84)
  4.     192.168.1.10 > 192.168.1.14: ICMP echo request, id 4588, seq 1, length 64
  5. 10:35:15.911347 IP (tos 0x0, ttl 128, id 2198, offset 0, flags [none], proto ICMP (1), length 84)
  6.     192.168.1.14 > 192.168.1.10: ICMP echo reply, id 4588, seq 1, length 64
  7. 10:35:16.824131 IP (tos 0x0, ttl 64, id 25676, offset 0, flags [DF], proto ICMP (1), length 84)
  8.     192.168.1.10 > 192.168.1.14: ICMP echo request, id 4588, seq 2, length 64
  9. 10:35:16.891581 IP (tos 0x0, ttl 128, id 2211, offset 0, flags [none], proto ICMP (1), length 84)
  10.     192.168.1.14 > 192.168.1.10: ICMP echo reply, id 4588, seq 2, length 64


 
 
Table de routage côté client

Code :
  1. routeur@routeur:~$ route -n
  2. Table de routage IP du noyau
  3. Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
  4. 0.0.0.0         192.168.0.254   0.0.0.0         UG    0      0        0 ens33
  5. 192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 ens33
  6. 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 tap0


 
Table de routage côté serveur

Code :
  1. vpn@vpn:~$ route -n
  2. Table de routage IP du noyau
  3. Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
  4. 0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 br0
  5. 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br0
  6. 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br0


 
 
Je ne comprends vraiment pas pourquoi tout fonctionne sauf la Livebox.
 
Merci d'avance :)
 
Adrien

mood
Publicité
Posté le 10-10-2016 à 20:37:30  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Réseaux grand public / SoHo
  Réseaux

  OpenVPN TAP problème ping Livebox

 

Sujets relatifs
Probléme connexion ethernetProblème 4G partage de connexion / ethernet
Problème Cable téléphoniqueProblème de timing
Améliorer son Ping sur Fibre Optique (pour jeu league of legends)BOUYGUES FIBRE c'est quoi le problème !?!
Problème Facebook compte en accès limité (logiciel malveillant?)Réseau privé / openvpn /
Problème d'accès à plusieurs site, ping ? en fibre free 
Plus de sujets relatifs à : OpenVPN TAP problème ping Livebox


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR