Results 1 to 10 of 10
  1. #1

    FTP to server gets connect: No route to host

    This worked yesterday.

    Now I get connect: No route to host when I try to FTP.


    What to do?

    I can ping the IP without problems.

  2. #2
    have you tried restarting ftp server? connecting via ip or ftp address? ftp address resolving?
    WebbyCart.com
    sales@webbycart.com
    Fully Managed Servers & VPS, 3rd Party Management, Offsite Rsync Backup

  3. #3
    Quote Originally Posted by WCTisha View Post
    have you tried restarting ftp server? connecting via ip or ftp address? ftp address resolving?


    This is server 1 FTPing to server 2.

    Server 1 cannot ftp to server 2 but I can connect from home

    I tried IP and domain.

    ping ip and ping domain both work.

  4. #4
    Join Date
    May 2008
    Location
    Sweden
    Posts
    152
    try to do a traceroute to the server 2 IP from server 1
    Linux, C, Perl, Bash, PHP
    MySQL, PostgreSQL
    Postfix, Qmail
    Bind

  5. #5
    Quote Originally Posted by helpyoulinux View Post
    try to do a traceroute to the server 2 IP from server 1

    There is no problems dong tracert

    But can't do FTP.

  6. #6
    try to restart ftp in ssh to see if there are error message, it could also be a problem with your hostname or dns resolvers. check also the logs.
    WebbyCart.com
    sales@webbycart.com
    Fully Managed Servers & VPS, 3rd Party Management, Offsite Rsync Backup

  7. #7
    Actually if I turn off iptables it works fine. So what would cause such a thing with FTP?

    I don't want to post my iptables here for various obvious reasons, but any ideas?

  8. #8
    then check on your firewall/iptables if port 21 or ftp port is open.
    WebbyCart.com
    sales@webbycart.com
    Fully Managed Servers & VPS, 3rd Party Management, Offsite Rsync Backup

  9. #9
    Join Date
    Mar 2006
    Posts
    241
    Add these rules on both server and try again.

    iptables -I INPUT -p tcp -m tcp --sport 21 -m state --state ESTABLISHED -j ACCEPT
    iptables -I INPUT -p tcp -m tcp --dport 21 -j ACCEPT
    iptables -I OUTPUT -p tcp -m tcp --dport 21 -m state --state NEW,ESTABLISHED -j ACCEPT
    LiquidSupport - A subsidiary of I-Fort Technologies (Pvt.) Ltd
    Server Administration | Technical Support | Web Development

  10. #10
    Quote Originally Posted by maximus_marcus View Post
    Add these rules on both server and try again.
    Tried it. Made no difference. I can ftp other hosts, just not this one in particular.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •