Results 1 to 10 of 10
-
05-31-2008, 06:22 AM #1Aspiring Evangelist
- Join Date
- Nov 2007
- Posts
- 359
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.
-
05-31-2008, 06:48 AM #2WHT Addict
- Join Date
- May 2008
- Posts
- 130
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
-
05-31-2008, 06:50 AM #3Aspiring Evangelist
- Join Date
- Nov 2007
- Posts
- 359
-
05-31-2008, 07:20 AM #4WHT Addict
- 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
-
05-31-2008, 07:24 AM #5Aspiring Evangelist
- Join Date
- Nov 2007
- Posts
- 359
-
05-31-2008, 07:31 AM #6WHT Addict
- Join Date
- May 2008
- Posts
- 130
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
-
05-31-2008, 07:33 AM #7Aspiring Evangelist
- Join Date
- Nov 2007
- Posts
- 359
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?
-
05-31-2008, 07:35 AM #8WHT Addict
- Join Date
- May 2008
- Posts
- 130
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
-
05-31-2008, 07:50 AM #9Junior Guru
- 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 ACCEPTLiquidSupport - A subsidiary of I-Fort Technologies (Pvt.) Ltd
Server Administration | Technical Support | Web Development
-
05-31-2008, 10:19 AM #10Aspiring Evangelist
- Join Date
- Nov 2007
- Posts
- 359