[gentoo-user] SSH tunnel With Portage
Hi all, I sought how to make pass my emerge's starting from a tunnel configured with Putty but did not find nothing interesting. How can i do this ? Thx ;)
Re: [gentoo-user] SSH tunnel With Portage
On Monday 14 January 2008, Elyahou ITTAH wrote: Hi all, I sought how to make pass my emerge's starting from a tunnel configured with Putty but did not find nothing interesting. How can i do this ? Thx ;) Are you using putty on windows then? Log in with putty, you will get a bash session. Become root, run emerge. If this doesn't work, then post back with FULL error messages, the process you followed and where it failed. alan -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] SSH tunnel With Portage
On Monday 14 January 2008, Elyahou ITTAH wrote: Thx for the Answer but I think I asked the question wrong. I Use Putty to bypass a HTTP proxy who do not let emerge Work. So i wan't to run portage in my pc, not in the remote one. But i wan't to sync passing the SSH tunnel who is configurated to listen at the port 8080 of my localhost. It's not clear at all whether you have http access from your gentoo box. If so, did you try emerge-webrsync? -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] SSH tunnel With Portage
It's not clear at all whether you have http access from your gentoo box. If so, did you try emerge-webrsync? -- gentoo-user@lists.gentoo.org mailing list # emerge --sync Starting rsync with rsync://140.211.166.165/gentoo-portage... Checking server timestamp ... timed out rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(276) [receiver=2.6.9] Retrying... # emerge-webrsync -v Fetching most recent snapshot Attempting to fetch file dated: 20080113 --12:48:20-- http://mirror.hamakor.org.il/pub/mirrors/gentoo//snapshots/portage-20080113.tar.bz2 = `/var/tmp/emerge-webrsync/portage-20080113.tar.bz2' Résolution de mirror.hamakor.org.il... 82.80.248.176 Connexion vers mirror.hamakor.org.il|82.80.248.176|:80...connecté. requête HTTP transmise, en attente de la réponse...ERREUR de lecture (Connexion terminée par expiration du délai d'attente) de l'en-tête. Nouvel essai. It's in french but easy to understand My tunnel works, i use IRC throught it, but i don't know where to configure Portage to use it.
Re: [gentoo-user] SSH tunnel With Portage
On Monday 14 January 2008, Elyahou ITTAH wrote: It's in french but easy to understand My tunnel works, i use IRC throught it, but i don't know where to configure Portage to use it. Do you also use http through it? Regarding portage, it could be as easy as doing # export http_proxy=name.of.your.proxy but without further info about your config (meaning: exact putty config, and exact use you make of it, and from where), it's difficult to help. -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] SSH tunnel With Portage
2008/1/14, Alan McKinnon [EMAIL PROTECTED]: On Monday 14 January 2008, Elyahou ITTAH wrote: Hi all, I sought how to make pass my emerge's starting from a tunnel configured with Putty but did not find nothing interesting. How can i do this ? Thx ;) Are you using putty on windows then? Log in with putty, you will get a bash session. Become root, run emerge. If this doesn't work, then post back with FULL error messages, the process you followed and where it failed. alan -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list Thx for the Answer but I think I asked the question wrong. I Use Putty to bypass a HTTP proxy who do not let emerge Work. So i wan't to run portage in my pc, not in the remote one. But i wan't to sync passing the SSH tunnel who is configurated to listen at the port 8080 of my localhost.
Re: [gentoo-user] SSH tunnel With Portage
2008/1/14, Etaoin Shrdlu [EMAIL PROTECTED]: On Monday 14 January 2008, Elyahou ITTAH wrote: It's in french but easy to understand My tunnel works, i use IRC throught it, but i don't know where to configure Portage to use it. Do you also use http through it? Regarding portage, it could be as easy as doing # export http_proxy=name.of.your.proxy but without further info about your config (meaning: exact putty config, and exact use you make of it, and from where), it's difficult to help. -- gentoo-user@lists.gentoo.org mailing list Ok, ;) My Network have a Squid Proxy who allow only some ports like 80 443... Putty is configurated to connect to a box i have in an other place, it allow to make a SSH Tunnel who create a socks proxy at localhost:8080. Putty listen to this port and send all the frames passing the 443 of the SQUID proxy to my exterior box. I wan't to configure Portage to use this SOCK proxy at localhost:8080
Re: [gentoo-user] SSH tunnel With Portage
On Monday 14 January 2008, Etaoin Shrdlu wrote: On Monday 14 January 2008, Elyahou ITTAH wrote: Thx for the Answer but I think I asked the question wrong. I Use Putty to bypass a HTTP proxy who do not let emerge Work. So i wan't to run portage in my pc, not in the remote one. But i wan't to sync passing the SSH tunnel who is configurated to listen at the port 8080 of my localhost. It's not clear at all whether you have http access from your gentoo box. If so, did you try emerge-webrsync? Elyahou, What EXACTLY is failing? You are not giving any information we can work with, so please supply FULL information with ALL relevant details. Does 'emerge --sync' fail? This has nothing to do with HTTP proxies as it's an rsync session Does 'emerge some package' fail, and if so, what is the error message? This might well be a proxy, so can you see gentoo.org in a browser? alan -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] SSH tunnel With Portage
What other information can i give ?
Re: [gentoo-user] SSH tunnel With Portage
On Monday 14 January 2008, Elyahou ITTAH wrote: Ok, ;) My Network have a Squid Proxy who allow only some ports like 80 443... Ok, so you should be able to use # export http_proxy=proxyname or address # emerge-webrsync To use the already existing proxy in your network. If you insist on using your tunnel, read on. Putty is configurated to connect to a box i have in an other place, it allow to make a SSH Tunnel who create a socks proxy at localhost:8080. So you're forwarding port 8080 on the putty (windows) box to port 1080 on the remote box, where a SOCKS server is listening on that port, correct? I'm not sure whether putty allows non-local connections to forwarded ports by default, if this is not the case you'll need to enable that option. Putty listen to this port and send all the frames passing the 443 of the SQUID proxy to my exterior box. How do you do that? I wan't to configure Portage to use this SOCK proxy at localhost:8080 localhost, IIUC, is a windows box, and portage is running on another (linux, on the same network) box. So, at a minimum, you'll need to use a.b.c.d:8080 as a SOCKS server, where a.b.c.s is the IP address of the windows putty box. Assuming you have a SOCKS server at a.b.c.d:8080 (albeit through a tunnel, but the apps don't know that), then you need to use some socksifying utility for emerge, since (AFAIK) it does not support SOCKS out of the box. So, something like # socksify emerge --sync should work (though I have not tested it). socksify is part of net-proxy/dante. Of course, you need to specify the SOCKS proxy at a.b.c.d port 8080 in the /etc/socks/socks.conf configuration file (I don't remember the exact syntax to do that right now, but it should be quite intuitive). -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] SSH tunnel With Portage
2008/1/14, Etaoin Shrdlu [EMAIL PROTECTED]: On Monday 14 January 2008, Elyahou ITTAH wrote: Ok, ;) My Network have a Squid Proxy who allow only some ports like 80 443... Ok, so you should be able to use # export http_proxy=proxyname or address # emerge-webrsync To use the already existing proxy in your network. If you insist on using your tunnel, read on. Putty is configurated to connect to a box i have in an other place, it allow to make a SSH Tunnel who create a socks proxy at localhost:8080. So you're forwarding port 8080 on the putty (windows) box to port 1080 on the remote box, where a SOCKS server is listening on that port, correct? I'm not sure whether putty allows non-local connections to forwarded ports by default, if this is not the case you'll need to enable that option. Putty listen to this port and send all the frames passing the 443 of the SQUID proxy to my exterior box. How do you do that? I wan't to configure Portage to use this SOCK proxy at localhost:8080 localhost, IIUC, is a windows box, and portage is running on another (linux, on the same network) box. So, at a minimum, you'll need to use a.b.c.d:8080 as a SOCKS server, where a.b.c.s is the IP address of the windows putty box. Assuming you have a SOCKS server at a.b.c.d:8080 (albeit through a tunnel, but the apps don't know that), then you need to use some socksifying utility for emerge, since (AFAIK) it does not support SOCKS out of the box. So, something like # socksify emerge --sync should work (though I have not tested it). socksify is part of net-proxy/dante. Of course, you need to specify the SOCKS proxy at a.b.c.d port 8080 in the /etc/socks/socks.conf configuration file (I don't remember the exact syntax to do that right now, but it should be quite intuitive). -- gentoo-user@lists.gentoo.org mailing list I am a little confused... Putty listen to my 127.0.0.1:8080 and forward to my extern box:443 passing the squid proxy:3128 (in SSH of course) I tried configure the http proxy by export... but the web rsync still don't run...
Re: [gentoo-user] SSH tunnel With Portage
2008/1/14, Etaoin Shrdlu [EMAIL PROTECTED]: What application is running on the remote box, port 443? A SOCKS server or something else? OpenSSH, which manage the redirections alone. What kind of machine is 127.0.0.1:8080, where putty is running? It's likely a windows box, but now putty exists for linux too. Is this the same machine you want to run portage on? If not, is the portage box on the same network as the putty one? I am on Linux :P and the configuration is my Gentoo Installation. 127.O.O.1 is my machine where putty is running, Xchat run with this proxy configuration: Socks5 127.0.0.1:8080 After Many tests, this solution worked. Thx for that ;) But I am interested on a global configuration who pass all connection by the SSH tunnel. How i can do that ?
Re: [gentoo-user] SSH tunnel With Portage
On Monday 14 January 2008, Elyahou ITTAH wrote: I am a little confused... Putty listen to my 127.0.0.1:8080 and forward to my extern box:443 passing the squid proxy:3128 (in SSH of course) What application is running on the remote box, port 443? A SOCKS server or something else? What kind of machine is 127.0.0.1:8080, where putty is running? It's likely a windows box, but now putty exists for linux too. Is this the same machine you want to run portage on? If not, is the portage box on the same network as the putty one? I tried configure the http proxy by export... but the web rsync still don't run... Exactly what command did you enter and how the error messages looked like (the exact messages)? -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] SSH tunnel With Portage
2008/1/14, Alan McKinnon [EMAIL PROTECTED]: On Monday 14 January 2008, Elyahou ITTAH wrote: What kind of machine is 127.0.0.1:8080, where putty is running? It's likely a windows box, but now putty exists for linux too. Is this the same machine you want to run portage on? If not, is the portage box on the same network as the putty one? I am on Linux Now I am confused. Why do you run Putty on a Linux machine? I used it once just to confuse and confound co-workers and have it runable in Wine just to impress some other people. But I'd never seriously USE it for anything... That's why I have ... um ... openssh and ... err ... telnet -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list Haha i used Putty in Windows and use now on Linux because i known it... :P Thx for all
Re: [gentoo-user] SSH tunnel With Portage
On Monday 14 January 2008, Elyahou ITTAH wrote: What kind of machine is 127.0.0.1:8080, where putty is running? It's likely a windows box, but now putty exists for linux too. Is this the same machine you want to run portage on? If not, is the portage box on the same network as the putty one? I am on Linux Now I am confused. Why do you run Putty on a Linux machine? I used it once just to confuse and confound co-workers and have it runable in Wine just to impress some other people. But I'd never seriously USE it for anything... That's why I have ... um ... openssh and ... err ... telnet -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] SSH tunnel With Portage
On Monday 14 January 2008, Elyahou ITTAH wrote: 2008/1/14, Etaoin Shrdlu [EMAIL PROTECTED]: What application is running on the remote box, port 443? A SOCKS server or something else? OpenSSH, which manage the redirections alone. What does this mean? I am on Linux :P and the configuration is my Gentoo Installation. 127.O.O.1 is my machine where putty is running, Xchat run with this proxy configuration: Socks5 127.0.0.1:8080 After Many tests, this solution worked. Thx for that ;) But I am interested on a global configuration who pass all connection by the SSH tunnel. Still, it's unclear what your exact configuration is. However, assuming that you're tunneling SOCKS, you could use socksify (configured to use SOCKS for every protocol and IP address) and launch the applications with socksify appname -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] SSH tunnel With Portage
On Monday 14 January 2008 14:03:52 Alan McKinnon wrote: Now I am confused. Why do you run Putty on a Linux machine? I used it once just to confuse and confound co-workers and have it runable in Wine just to impress some other people. You do not need wine to run putty on Linux. There's a UNIX port. Just emerge putty and run it. Not that I don't agree it's useless with all the alternatives that are available on Linux too.. ;) -- Bo Andresen signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] SSH tunnel With Portage
2008/1/15, Bo Ørsted Andresen [EMAIL PROTECTED]: You do not need wine to run putty on Linux. There's a UNIX port. Just emerge putty and run it. Not that I don't agree it's useless with all the alternatives that are available on Linux too.. ;) What alternative are you advice me ?
RE: [gentoo-user] SSH tunnel With Portage
If this can help you... I have a similar problem (two firewalls) but I solved it using revinetd (tcp/ip gender changer run on Linux and maybe on Wine, I used puppy Linux, all_in_one_quemu on a windows machine) Add something like this to your /etc/make.conf #to get rid of certificate check in case you run ssl FETCHCOMMAND=/usr/bin/wget -t 5 -T 60 --no-check-certificate --limit-rate=200k \${URI} -P \${DISTDIR} RESUMECOMMAND=/usr/bin/wget -c -t 5 -T 60 --no-check-certificate --limit-rate=200k \${URI} -P \${DISTDIR} # #to use the port of your choise https_proxy=https://user:[EMAIL PROTECTED]:12345 # #Use ssl to stop timeconsuming antivirus scanning GENTOO_MIRRORS=https://distfiles.gentoo.org/; BR Martin -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] SSH tunnel With Portage
On Tuesday 15 January 2008, Elyahou ITTAH wrote: 2008/1/15, Bo Ørsted Andresen [EMAIL PROTECTED]: You do not need wine to run putty on Linux. There's a UNIX port. Just emerge putty and run it. Not that I don't agree it's useless with all the alternatives that are available on Linux too.. ;) What alternative are you advice me ? openssh -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list