Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge rsync - other way to do it not using rsync?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Auka
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jul 2002
Posts: 109
Location: BaWue, Germany, Europe, Earth.

PostPosted: Fri Aug 30, 2002 5:12 pm    Post subject: emerge rsync - other way to do it not using rsync? Reply with quote

Hi all,

First of all I am a big fan of gentoo linux. But I just encountered a problem while trying to do an installation of gentoo on a machine at work: The problem is that I cant rsync outside, so I am already stuck at the installation process as soon as I should do the first "emerge rsync".

To sum it up in one sentence: rsync is a no-go, because it is blocked by the firewall.

This means:
1.) "normal" rsync --> blocked

2.) rsync through RSYNC_PROXY env variable --> blocked as not even our (internal) proxy in the DMZ is allowed rsync.

For both I am getting an HTTP not allowed from the proxy followed by:
rsync error: error in socket IO (code 10) at clientserver.c(<some code line I dont remember>)
and when I'm looking at the proxy logs, I also do see that it is beeing rejected.

What I thought of was
a) downloading the tree on another gentoo machine (at home) and copying the directory on to the machine at work. Which really is only my last hope, if everything else should fail. :?

b) maybe some kind of ssh tunnelling...?

The question is: isn't there any other way getting the portage tree without rsync!?
I would say that IMHO just beeing able to use rsync would be quite a limitation for gentoo installations. (While I do admit that probably you are often able to use rsync through (from) the proxy, it is also common that your network setup is security-aware and a tight firewall ruleset is beeing used...) :(

Am I right, supposing that, (given regular regular portage tree updates granted) once I have a portage tree, I only need some kind of download manager, as specified in the FETCHCMD variable (wget) to emerge packets? Or is rsync required even for emerging packets?

Anything I missed? Comments, pointers, hints? :)

Thanx a lot in advance...
Back to top
View user's profile Send private message
kirill
Apprentice
Apprentice


Joined: 01 Aug 2002
Posts: 183
Location: Finland

PostPosted: Fri Aug 30, 2002 5:27 pm    Post subject: Reply with quote

Hi!

If rsync doesn't work for you, no worry! Read the Gentoo FAQ, there are instructions what to do if rsync doesn't work.

After you got the latest portage tree installed, you can emerge gentoolkit and run emerge-webrsync which automatically downloads the latest portage snapshot and installs it.

and no, rsync isn't required for emerging new packages...

life can't be easier ;)
_________________
--kirill
Back to top
View user's profile Send private message
Auka
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jul 2002
Posts: 109
Location: BaWue, Germany, Europe, Earth.

PostPosted: Fri Aug 30, 2002 6:17 pm    Post subject: Reply with quote

aahh, ok, must have missed that - RTFM :wink:

That seems to be exactly what I've been searching for, webrsync also sounds good... :D

thanks a lot...!
Back to top
View user's profile Send private message
jdn
n00b
n00b


Joined: 31 Aug 2002
Posts: 4
Location: Denmark

PostPosted: Sat Aug 31, 2002 7:18 am    Post subject: Reply with quote

Hi

Just got my gentoo login 1 min ago :-)

at my work they are running squid as proxy and I had the same problem

http://www.sai.msu.su/~er/rsync_proxy.html

says how to open for rsync through a squid proxy:

Squid configuration for rsync proxy

To allow RSYNC proxy via Squid, edit squid.conf file:

1. add 873 to acl SSL_ports port list
2. add 873 to acl Safe_ports port list
3. if you want proxy without password, add host at which rsync is running to acl allowed_hosts list

An example:

acl SSL_ports port 443 563 873 # 873 - for rsync
acl Safe_ports port 873 # for rsync
acl allowed_hosts src 195.208.220.197/255.255.255.255 # trusted host


regards

Jens / Denmark
_________________
jdn @ Aalborg Denmark
Back to top
View user's profile Send private message
Auka
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jul 2002
Posts: 109
Location: BaWue, Germany, Europe, Earth.

PostPosted: Sat Aug 31, 2002 9:44 am    Post subject: Reply with quote

Hi,

thank you for providing the squid config! While I have already seen, by a dooing google search, that it seems to be possible to reconfigure squid, it is nice to have this sum-up (since the proxy indeed is a squid).

The problem for me is only that our proxy (at least this proxy, which only forwards http to a parent proxy dooing antivir content scanning) is not allowed by the firewall to talk rsync outgoing (only http, https, and ftp). So reconfiguring it alone unfortunately won't help me and I don't want to change firewall rulesets etc. as this could tend to be at bit too bureocratic (raising questions "why" and "what for"...)

So I am probably gooing to download the portage tree through http as stated in the FAQ. Nevertheless good to know, maybe I will try it out.

Well, security - I love it as long as I am admin/root. ;-)
Back to top
View user's profile Send private message
kirill
Apprentice
Apprentice


Joined: 01 Aug 2002
Posts: 183
Location: Finland

PostPosted: Sat Aug 31, 2002 10:08 am    Post subject: Reply with quote

jdn wrote:
Squid configuration for rsync proxy

To allow RSYNC proxy via Squid, edit squid.conf file:

1. add 873 to acl SSL_ports port list


Wow you need to have rsync in SSL_ports too! darn.
I added '873' to Safe_ports a while a go but I still kept getting bad response from proxy - HTTP/1.0 403 Forbidden. but SSL_ports fixes it!


thanks for the info :lol:
_________________
--kirill
Back to top
View user's profile Send private message
jconover
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2002
Posts: 87
Location: USA

PostPosted: Tue Sep 03, 2002 8:03 pm    Post subject: Reply with quote

Thank you kirill!

Recently my work turned off RSYNC traffic and I found your solution>>>>>
you can emerge gentoolkit and run emerge-webrsync which automatically downloads the latest portage snapshot and installs it.

Hope they didn't shut it down because of me and gentoo! :oops:

Thanks again! :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum