git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fwd: [OT] Re: Git via a proxy server?
@ 2006-05-16 12:13 Sam Song
  2006-05-16 13:11 ` Petr Vandrovec
  0 siblings, 1 reply; 7+ messages in thread
From: Sam Song @ 2006-05-16 12:13 UTC (permalink / raw)
  To: Petr Vandrovec; +Cc: git

Hello,

Petr Vandrovec <petr@vmware.com> wrote:
> Date:	Mon, 27 Feb 2006 00:35:00 +0100
> From:	Petr Vandrovec <petr@vmware.com>
> To:	Sergey Vlasov <vsu@altlinux.ru>
> CC:	"Salyzyn, Mark" <mark_salyzyn@adaptec.com>,
> 	Kernel Mailing List 
> <linux-kernel@vger.kernel.org>
> > [snip]
> > I have successfully used transconnect
> > (http://sourceforge.net/projects/transconnect) for
> > tunnelling git
> > protocol through a HTTP proxy (squid in my case)
> > supporting the CONNECT method.
> >
> > [snip] 
> > Note: most HTTP proxy servers allow CONNECT method
> > to a very limited range of ports, and 
> > administrators will need to enable the git port
> > (9418) explicitly.
> > 
> I know I'm coming kinda late, but I'm using:
> 
> export GIT_PROXY_COMMAND=/usr/local/bin/proxy-cmd.sh
> 
> and proxy-cmd.sh is just single-line command glued
> from what I found available in /bin:
> 
> #! /bin/bash
> 
> (echo "CONNECT $1:$2 HTTP/1.0"; echo; cat ) | socket
> 
> proxy.ourcompany.com 3128 | (read a; read a; cat )
> 
> Replace socket's arguments 'proxy.ourcompany.com
> 3128' with your http proxy.  Fortunately our proxy
> does not see anything wrong with git's port.
> 		Best regards,
> 			Petr Vandrovec

With above usage on GIT_PROXY_COMMAND, I still have
problem on connection with remote git repository.

I also tried setting http_proxy directly but the same
result. It's first usage of git in our network. Well, 
need I enable the git port 9418 at proxy server? Or 
did I miss sth or what?

I use git-2006-05-14.tar.gz package on FC3. 

Method I : Use GIT_PROXY_COMMAND

[root@sam u-boot]# git clone \
git://www.denx.de/git/u-boot.git u-boot-denx.git

fatal: exec failed
fetch-pack from 'git://www.denx.de/git/u-boot.git' 
failed.

[root@sam u-boot]# git clone \
http://parisc-linux.org/git/linux-2.6.git/ parisc-2.6

Cannot get remote repository information.
Perhaps git-update-server-info needs to be run there?
[root@sam u-boot]#

/usr/local/bin/proxy-cmd.sh 

#! /bin/bash

(echo "CONNECT $1:$2 HTTP/1.0";echo;cat) | socket
<um> <pwd> 192.168.40.99 80 | (read a;read a;cat)

Method II : Use http_proxy directly

[root@sam u-boot]# export \
http_proxy="http://<username>:<pwd>@192.168.40.99:80"
[root@sam u-boot]# git clone \ 
http://parisc-linux.org/git/linux-2.6.git/ parisc-2.6

Cannot get remote repository information.
Perhaps git-update-server-info needs to be run there?

[root@sam u-boot]# git clone \
git://www.denx.de/git/u-boot.git u-boot-denx.git
fatal: unable to connect a socket (Connection timed 
out)
fetch-pack from 'git://www.denx.de/git/u-boot.git' 
failed.
[root@sam u-boot]#

Thanks in advance,

Sam

P.S. I forward this thread from LKML for better 
discussion. Hope Petr wouldn't mind.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around 
http://mail.yahoo.com 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-05-18  8:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-16 12:13 Fwd: [OT] Re: Git via a proxy server? Sam Song
2006-05-16 13:11 ` Petr Vandrovec
2006-05-17  3:56   ` Sam Song
2006-05-17  8:38     ` Jan-Benedict Glaw
2006-05-17 10:54       ` Petr Vandrovec
2006-05-18  3:44         ` Sam Song
2006-05-18  8:31           ` Jan-Benedict Glaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).