Want to subscribe to topics you're interested in?
Become a Member

rsync "Connection timed out" problem

Discussion in 'Centmin Mod Insights' started by rdan, Jun 1, 2014.

Tags:
  1. rdan

    rdan Premium Member Premium Member

    4,256
    1,035
    113
    May 25, 2014
    Ratings:
    +1,487
    Local Time:
    7:39 AM
    Mainline
    10.2
    Code:
    # rsync -avzhe 'ssh -p 1234' [email protected]:/home/nginx/domains/ /home/nginx/domains/
    ssh: connect to host 192.1.2.3 port 1234: Connection timed out
    rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
    rsync error: unexplained error (code 255) at io.c(600) [receiver=3.0.6]
    
    What could be the problem?
    Is it csf blocking this?
     
  2. eva2000

    eva2000 Administrator Staff Member

    36,060
    7,912
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,195
    Local Time:
    9:39 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    192.1.2.3 a remote server or the server with Centmin Mod installed ?

    For security reasons, yes by default [HASHTAG]#CSF[/HASHTAG] firewall will block connections to root ssh unless the remote server is whitelisted as per CSF info at http://centminmod.com/csf_firewall.html

    If both remote and source servers are Centmin Mod based, then both instances of CSF need whitelisting as well.
     
  3. rdan

    rdan Premium Member Premium Member

    4,256
    1,035
    113
    May 25, 2014
    Ratings:
    +1,487
    Local Time:
    7:39 AM
    Mainline
    10.2
    The remote server.
     
  4. eva2000

    eva2000 Administrator Staff Member

    36,060
    7,912
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,195
    Local Time:
    9:39 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    in that case in /etc/csf/csf.conf need to add to TCP_OUT comma separated list of ports port 1234 to allow it outbound connections

    then restart CSF firewall

    Code:
    csf -r
    moving this thread to Centmin Mod Insights forum so folks can understand this too
     
    • Like Like x 2
  5. rdan

    rdan Premium Member Premium Member

    4,256
    1,035
    113
    May 25, 2014
    Ratings:
    +1,487
    Local Time:
    7:39 AM
    Mainline
    10.2
    I white list both IP on both end, and it works now :)
     
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    36,060
    7,912
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,195
    Local Time:
    9:39 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Why I love CSF Firewall when properly configured for added security :)
     
    • Like Like x 1
  7. rdan

    rdan Premium Member Premium Member

    4,256
    1,035
    113
    May 25, 2014
    Ratings:
    +1,487
    Local Time:
    7:39 AM
    Mainline
    10.2
    I also Love rsync because I can transfer my forum very quick thru different servers :)
    Even though I got 5GB+ Forum files only.
     
  8. rdan

    rdan Premium Member Premium Member

    4,256
    1,035
    113
    May 25, 2014
    Ratings:
    +1,487
    Local Time:
    7:39 AM
    Mainline
    10.2
    Code:
    sent 4.53M bytes  received 4.48G bytes  10.56M bytes/sec
    total size is 5.42G  speedup is 1.21
    
     
  9. eva2000

    eva2000 Administrator Staff Member

    36,060
    7,912
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,195
    Local Time:
    9:39 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Yeah i use rsync through http://www.rsnapshot.org to automate backup pulls from a Backupsy KVM VPS server with 500GB storage space for US$7/month and they had a promo for 100% free credit for every dollar you deposited. So got US$125 free credit on top of my US$125 deposited = US$250 to use. Going to spin up more Backupsy KVM VPS servers in different locations eventually :D
     
    • Like Like x 1
  10. Matt

    Matt Moderator Staff Member

    765
    343
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +512
    Local Time:
    12:39 AM
    1.7.1
    MariaDB 10
    I also fully automate my backups using rsnapshot. Great programme. I don't use backupsy any more, as I'm putting my backups on the Kimsufi server.
     
    • Like Like x 1
  11. eva2000

    eva2000 Administrator Staff Member

    36,060
    7,912
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,195
    Local Time:
    9:39 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Yeah I'm using Backupsy to take advantage of their raid redundant storage as once you factor that into a dedicated server, the costs are much higher. But I guess with your Kimsufi server you could afford to setup more than one heh.
     
  12. Matt

    Matt Moderator Staff Member

    765
    343
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +512
    Local Time:
    12:39 AM
    1.7.1
    MariaDB 10
    I don't even bother with that, I just rsync the most recent daily.0 backup to my NAS at home each night.
     
  13. eva2000

    eva2000 Administrator Staff Member

    36,060
    7,912
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,195
    Local Time:
    9:39 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    I would love to do that too just restore speed for my ISP upload speed is too slow at ~150KB/s. 400GB of data would take ages to restore from my local pc :LOL:
     
  14. rdan

    rdan Premium Member Premium Member

    4,256
    1,035
    113
    May 25, 2014
    Ratings:
    +1,487
    Local Time:
    7:39 AM
    Mainline
    10.2
    Same here :)
    I think Philippines Has the Most Expensive and Slowest Internet in the world (n)
     
  15. eva2000

    eva2000 Administrator Staff Member

    36,060
    7,912
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,195
    Local Time:
    9:39 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Well I have the weirdest ISP Telstra Australia effective is ~112Mbps down and ~2.5Mbps up within Australia and outside i.e. USA around 2-8Mbps down and up half that speed.

    Ah should start an http://speedtest.net thread in off topic forums :D
     
  16. karistuck

    karistuck Member

    43
    2
    8
    Jun 1, 2014
    대한민국
    Ratings:
    +3
    Local Time:
    8:39 AM
    1.5.8
    When I was type 'csf -r' on vps.
    Appear some error message.

    I want rsync for move data. But I couldn't it
     
  17. eva2000

    eva2000 Administrator Staff Member

    36,060
    7,912
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,195
    Local Time:
    9:39 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  18. karistuck

    karistuck Member

    43
    2
    8
    Jun 1, 2014
    대한민국
    Ratings:
    +3
    Local Time:
    8:39 AM
    1.5.8
    No, never edit.

    And My iptables rule

    /etc/csf/csf.deny file

     
  19. eva2000

    eva2000 Administrator Staff Member

    36,060
    7,912
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,195
    Local Time:
    9:39 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    try update and restart
    Code:
    csf -u
    csf -r
    or disable FASTSTART in /etc/csf/csf.conf
    Code:
    FASTSTART = "0"
     
  20. karistuck

    karistuck Member

    43
    2
    8
    Jun 1, 2014
    대한민국
    Ratings:
    +3
    Local Time:
    8:39 AM
    1.5.8
    I have some happen. When I typ csf -r than close connection to ssh

    Than I can't connecto ssh with custom port number.

    lol

    Im look for clear this issue
     
..