FTP through a second NIC and a local IP is not working

apitsos

Verified User
Joined
Dec 30, 2009
Messages
75
Location
Athens, Greece
Hi there,

I have two servers within the DC connected together using their second NIC adapters with a crossover ethernet cable. I have assigned two static and local IPs on the two servers and I want to send backups from the DirectAdmin Webserver to the other one.

Unfortunately the scheduled backup is not working and even when I try to backup manually some account(s) through FTP is not working too. After a few minutes I receive the following error message on the massaging system of DA

Subject: An error occurred during the backup. Today at 18:58
User angelos has been backed up.
Could not connect to 10.9.9.3 -- try again later: Connection timed out.
Could not connect to 10.9.9.3 -- try again later: Connection timed out.
Could not connect to 10.9.9.3 -- try again later: Connection timed out.
ncftpput: cannot open 10.9.9.3: could not connect to remote host, but can try again.

I am trying for several days to find a solution but I can't. I checked the firewall etc, but it is not blocked by the firewall. I start thinking if I should do something in order to declare the other IP in DirectAdmin, because I have the feeling that it can't find the route (second NIC) to send the backup through FTP.

Please help...


Regards,
Angelos Pitsos
 
Test with pings, traceroutes and even with ftp, from the servers command lines, to make sure the servers can talk to each other.

Jeff
 
Hi jeff,

I hope you are fine. Thanks for your reply. Ping is working properly... I haven't test traceroute and fpt. Not sure for the commands...


Please advice...


Regards,
Angelos Pitsos
 
As root:
Code:
traceroute 1.2.3.4
and
Code:
ftp 1.2.3.4
Of course replace 1.2.3.4 with the local IP# you're testing.

Jeff
 
Hello Jeff,

Thank you very much...

Ping responds.

Traceroute:
[root@manage ~]# traceroute 10.9.9.3
traceroute to 10.9.9.3 (10.9.9.3), 30 hops max, 40 byte packets
send: Operation not permitted

ftp:
I give the command ftp 10.9.9.3 and it is waiting forever... :(
 
Hi Jeff,

You were right regarding the firewall... Before disabling the firewall I couldn't even traceroute google. Here is the result:
[root@manage ~]# traceroute www.google.gr
traceroute to www.google.gr (173.194.35.152), 30 hops max, 40 byte packets
send: Operation not permitted

Then I disabled the firewall and here are the results of the traceroute...
[root@manage ~]# traceroute www.google.gr
traceroute to www.google.gr (173.194.35.151), 30 hops max, 40 byte packets
1 fovos.iphost.gr (93.174.120.129) 2.500 ms 2.465 ms 2.437 ms
2 31.177.56.97 (31.177.56.97) 1.648 ms 1.638 ms 1.621 ms
3 195.97.13.27 (195.97.13.27) 2.584 ms 2.569 ms 2.552 ms
4 gigaeth00-05-05-02.adr00.ccr.hol.gr (62.38.96.181) 4.264 ms 4.235 ms 4.216 ms
5 62.38.96.150 (62.38.96.150) 5.931 ms 5.923 ms *
6 212.162.9.5 (212.162.9.5) 74.564 ms 73.146 ms 73.126 ms
7 ae-4-90.edge3.Frankfurt1.Level3.net (4.69.154.199) 61.099 ms 60.879 ms 58.625 ms
8 212.162.24.18 (212.162.24.18) 73.308 ms 212.162.24.14 (212.162.24.14) 76.532 ms 212.162.24.18 (212.162.24.18) 73.271 ms
9 209.85.248.12 (209.85.248.12) 61.248 ms 209.85.241.112 (209.85.241.112) 77.215 ms 209.85.248.12 (209.85.248.12) 61.444 ms
10 72.14.239.62 (72.14.239.62) 73.421 ms 73.393 ms 73.381 ms
11 216.239.48.116 (216.239.48.116) 96.580 ms 96.565 ms 115.272 ms
12 209.85.250.35 (209.85.250.35) 74.525 ms 74.510 ms 73.413 ms
13 muc03s01-in-f23.1e100.net (173.194.35.151) 90.157 ms 90.160 ms 87.410 ms
[root@manage ~]# traceroute 10.9.9.3
traceroute to 10.9.9.3 (10.9.9.3), 30 hops max, 40 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *
[root@manage ~]#

What do you think? I can't traceroute the local IP...

I am looking forward to hearing from you.


Best regards,
Angelos Pitsos
 
If ping works and traceroute doesn't that could indicate a firewall issue on the other system on the private network. Try with the firewall off on both systems.

Have you tried ftp with the firewall off on both systems?

Can you SSH between the two systems with the firewall off?

Jeff
 
Hi Jeff,

Please note that the other system is a Windows 2008 R2 std Server. Not a linux one. I disabled the firewall on Windows 2008 R2 server but again I couldn't take a FTP backup. I will try traceroute and I will let you know now...

Regards,
Angelos
 
Hi Jeff,

If I disable firewall on both machines, traceroute seems to be working. Please check the below results.
[root@manage ~]# traceroute 10.9.9.3
traceroute to 10.9.9.3 (10.9.9.3), 30 hops max, 40 byte packets
1 10.9.9.3 (10.9.9.3) 0.254 ms * *
[root@manage ~]#

What can I do for the FTP to work as well?

Thanks a lot!


Regards,
Angelos
 
Jeff,

With both the firewalls disabled, the backup procedure failed again...

Here is the message I am getting from DA.

User angelos has been backed up.
Could not connect to 10.9.9.3: Connection refused.
Could not connect to 10.9.9.3: Connection refused.
Could not connect to 10.9.9.3: Connection refused.
ncftpput: cannot open 10.9.9.3: remote host refused connection.
 
Your connectivity is fine. I still don't see where you've tried manual backup. Trying that, also checking logs on Windows machine, may give you some clues.

Otherwise since DirectAdmin is working and Network is working, I don't think we support Windows on these forums :D.

Jeff
 
Nothing on the Event Viewer and Windows logs... :(

Anyway, agree with your comment. I hope it will not be a communication issue. I have to investigate it more.

Thanks a lot Jeff for your time. Much appreciated.


Regards,
Angelos Pitsos
 
Back
Top