Re: Tunneling yum connections through ssh's SOCKS proxy.

Seth Vidal <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>

On Fri, 14 Aug 2009, Daniel Fishman wrote:

> Hello everybody,
> 
> My machine (A) is located on a lan behind a firewall, and the only way outside is ssh.
> I have another machine (B) outside the lan. B has ssh server, and I can ssh from A to B.
> 
> In order to be able to perform software updates with yum I set up ssl tunnel from A to B
> using dynamic port forwarding, that is: I ssh from A to B, and ssh client on A serves
> as SOCKS proxy. In addition, SOCKS client wrapper is installed on A (I use dante's
> socksify).
> 
> The mentioned SOCKS proxy works properly, for example I can use the web.
> But when I try to use yum (running 'socksify yum update', for example), it fails to ran
> properly. I see (using ssh's escape characters) that ssh forwards yum's connections,
> but yum tells that either network is unreachable or that connection timed out.
> 
> 
> That is what I get from yum:
> 
> --------------------------------------------------------------------
> [root@centos .ssh]# socksify yum update
> Loaded plugins: fastestmirror
> Loading mirror speeds from cached hostfile
>  * base: ftp.plusline.de
>  * updates: mirror.netcologne.de
>  * addons: ftp.plusline.de
>  * extras: mirror.silyus.net
> http://ftp.plusline.de/centos/5.3/os/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (114, 'Operation already
> in progress')>

I bet this is a behavior b/c of how the tunneling works and how 
fastestmirror works.

disable fastestmirror and try it again.

-sv

_______________________________________________
Yum mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.