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

  FORUM HardWare.fr
  Linux et OS Alternatifs
  réseaux et sécurité

  probleme 405 avec apache et tunnel ssh

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

probleme 405 avec apache et tunnel ssh

n°970039
axl the mu​x
Posté le 26-10-2007 à 12:19:11  profilanswer
 

Bonjour,
 
Je souhaite accéder a ma machine chez moi (ubuntu) en ssh depuis mon boulot
 
J'ai choisis d'utiliser apache pour faire la redirection via mod_proxy chez moi et proxytunnel depuis mon boulot.
 
 
1 - J'ai créé un Vhost dans apache :
 

Code :
  1. Listen 443
  2. NameVirtualHost *:443
  3. <IfModule mod_proxy.c>
  4.    ProxyRequests On
  5.    ProxyVia On
  6.    AllowCONNECT 22
  7.    <Proxy www.monserveur.com>
  8.        Order deny,allow
  9.        #Deny from all
  10.        Allow from all
  11.    </Proxy>
  12.    <Proxy *>
  13.        Order deny,allow
  14.        Allow from all
  15.    </Proxy>
  16. </IfModule>


 
2 - Je lance la ligne de commande suivante sous DOS :
 

Code :
  1. proxytunnel --user=%USER% --pass=%PWD% -p %PROXY%:%PROXY_PORT% -r %SERVEUR_WEB%:%PORT_SERVEUR_WEB% -d %SERVEUR_SSH%:%PORT_SERVEUR_SSH% -v -a %PORT_LOCAL%


 
3 - Sous putty je lance une connection localhost sur le port %PORT_LOCAL%
 
j'ai le log suivant sous proxytunnel :
 
 

Code :
  1. Started tunnel pid=7672 for connection from 127.0.0.1Connected to %PROXY%:%PORT%(local proxy)
  2. Tunneling to XXX:443 (remote proxy)
  3. Connect string sent to local proxy:
  4. -> CONNECT XXX.net:443 HTTP/1.0
  5. -> Proxy-authorization: Basic bGJpOmF4bEI5MzE3NSE=
  6. -> Proxy-Connection: Keep-Alive
  7. Data received from local proxy:
  8. <- HTTP/1.0 200 Connection established
  9. Tunneling to XXX:22 (destination)
  10. Connect string sent to remote proxy:
  11. -> CONNECT XXX:22 HTTP/1.0
  12. -> Proxy-Connection: Keep-Alive
  13. Received from remote proxy:
  14. <- HTTP/1.1 405 Method Not Allowed
  15. HTTP return code: 405 Method Not Allowed
  16. <- Date: Fri, 26 Oct 2007 09:19:27 GMT
  17. <- Server: Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6 proxy_html/2.5
  18. <- Allow: GET,HEAD,POST,OPTIONS,TRACE
  19. <- Content-Length: 334
  20. <- Connection: close
  21. <- Content-Type: text/html; charset=iso-8859-1
  22. <- X-Pad: avoid browser bug
  23. Tunnel closed
  24. Goodbye


 
Pourquoi ai je ce message Method not allowed ?
 
Dois je ajouter quelque chose à la config de ssh ?
 
Merci d'avance


Message édité par axl the mux le 26-10-2007 à 13:39:33
mood
Publicité
Posté le 26-10-2007 à 12:19:11  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  réseaux et sécurité

  probleme 405 avec apache et tunnel ssh

 

Sujets relatifs
[Apache/Debian] Mod SSL / Impossible a faire fonctionner...[Apache] Démarrage KO : Unable to open logs
Probleme Javascript ou flash player pour Youtube , aidez moi svp !problème d'envoi de mails en nombre + Postfix
probleme avec G4U[Gparted] Probleme
vmware -> use: command not found ... problème de perl ??probleme au lencement d'un programme
Probleme counter strike[resolu] Probleme avec apt-get Ubuntu 7.10 Gutsy Gibbon
Plus de sujets relatifs à : probleme 405 avec apache et tunnel ssh


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