Hey guys sorry for this newbie type post but I'm not getting it really. I see other posts that r asking a simliar question but I'm not understanding. Currently I have working boxA and BoxC. SSH is the only thing accepted. So currenty I'm backing up files on boxC with "rsync -e ssh user@publicIPforB:/home/backup/back_me_up /home/backup". Now I have added boxB in front of boxC. boxA(publicIPforA) <------>Internet<------>(publicIPforB)boxB(privateB)<--->(privateC)boxC Now obviously as u guys have been discussing I think, I need to back up the files from boxC still to A. I RTFM and am still confused. I want to be able to SSH to port 22 on B from A of course. Currently if I need to get to C I SSH to B then SSH to C.
On Tue, May 13, 2003 at 04:51:52PM -0700, Paul O'Neil wrote:> Hey guys sorry for this newbie type post but I'm not getting it really. I > see other posts that r asking a simliar question but I'm not understanding. > Currently I have working boxA and BoxC. SSH is the only thing accepted. So > currenty I'm backing up files on boxC with "rsync -e ssh > user@publicIPforB:/home/backup/back_me_up /home/backup". Now I have added > boxB in front of boxC. > > > boxA(publicIPforA) > <------>Internet<------>(publicIPforB)boxB(privateB)<--->(privateC)boxC > > Now obviously as u guys have been discussing I think, I need to back up the > files from boxC still to A. I RTFM and am still confused. I want to be able > to SSH to port 22 on B from A of course. Currently if I need to get to C I > SSH to B then SSH to C.This really isn't an rsync question. There are a number of approaches. One is to use ssh's port forwarding. I assume boxB is your firewall. I would advise against allowing a box conneected to both the internal and public networks to accept ssh connections from the public network or even to have any user accounts. You can use reverse NAT or a proxy to forward a port on boxB to port 22 on boxC, which has it's own hazards. I suggest you do some serious reading on firewalling and how to configure them. The safest approach would be for boxC to initiate the rsync connection. -- ________________________________________________________________ J.W. Schultz Pegasystems Technologies email address: jw@pegasys.ws Remember Cernan and Schmitt
This is not really an rsync problem. To solve your problem look into SSH tunneling on google. As an minimally tested example: #in one terminal, open the tunnel #(link local port 2222 to port 22 on hairball by tunneling through pribateB) user@boxC$* ssh -L 2222:publicIPforA:22 privateB* # in another terminal, #(using ssh -p2222 as the rsh replacement, connect to "localhost" # (really localhost:2222), and rsync from here to "localhost" # (again, really localhost:2222)) user@boxC$ rsync -e"ssh -p2222" /home/backup back_me_up localhost:/home/backup Paul O'Neil wrote:>Hey guys sorry for this newbie type post but I'm not getting it really. I >see other posts that r asking a simliar question but I'm not understanding. >Currently I have working boxA and BoxC. SSH is the only thing accepted. So >currenty I'm backing up files on boxC with "rsync -e ssh >user@publicIPforB:/home/backup/back_me_up /home/backup". Now I have added >boxB in front of boxC. > > >boxA(publicIPforA) ><------>Internet<------>(publicIPforB)boxB(privateB)<--->(privateC)boxC > >Now obviously as u guys have been discussing I think, I need to back up the >files from boxC still to A. I RTFM and am still confused. I want to be able >to SSH to port 22 on B from A of course. Currently if I need to get to C I >SSH to B then SSH to C. > > >-- -Tom Scanlan Network Operations OpenReach, Inc.