Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-11-2016, 02:25 PM   #1
LQ Newbie
Registered: Dec 2014
Posts: 10

Rep: Reputation: Disabled
Angry vsftpd: No route to host | CentOS 7 with two ethernet cards

Hi everyone, good afternoon.
I would like to ask you a favor to help me on below issue.

Let me explain the environment:

1) I have one generic modem (
2) I have one router ArcherC8 (

3) The router ArcherC8 has the internet interface connected to one interface from modem and the internet/wireless is working properly

4) I have one CentOS 7 with two ethernet cards (1 connected to the router, the ip address is and (1 connected to the modem, the ip address is

5) I have opened the FTP port (20 and 21) on modem
6) I have used the port forwarding for both ports (20 and 21) pointing to my CentOS ethernet card

7) I can establish connection on FTP server (locally and remotelly) but when I type the command `dir` or `ls` or simple upload some file, I am getting the error message "ftp: connect: No route to host"

8) The port 21 is opened on CentOS as per below command:

[root@alpha01 ~]# firewall-cmd --list-all
public (default, active)
interfaces: enp1s0 enp4s0
services: dhcpv6-client ssh
ports: 21/tcp
masquerade: no
rich rules:

So, am I missing anything else on this configuration?

If possible, please provide a quick guidance, I tried to search help on internet but nothing works.

I appreciate any help and attention.

Rafael Vilela
Old 07-12-2016, 03:56 AM   #2
Registered: Dec 2012
Location: inside the matrix
Distribution: Debian, Xubuntu, Gentoo, Antergos
Posts: 90

Rep: Reputation: 27
I'm not much of a CentOS guy, but did you try this?

firewall-cmd --permanent --add-service=ftp
according to many links I read on the net it's required:

Last edited by jnihil; 07-12-2016 at 03:57 AM.
Old 07-12-2016, 05:35 PM   #3
LQ Newbie
Registered: Dec 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thank you jnihil.
I have solved the issue by upgrading the firmware of my modem to use it as bridge instead of router, and have my router doing the pppoe services. My router has many options in terms of port forwarding, NAT, firewall, so this decision was good.
I am now able to connect remotelly and use ftp services.

Thanks again


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 6 connect to host port 50001: No route to host tim head Linux - Networking 2 08-16-2015 05:18 AM
Two ethernet cards in a single network, how to route packets from both interfaces? nabi18 Linux - Networking 5 12-11-2010 02:49 PM
Nagios "No Route to Host" on CentOS kapshure Linux - Server 4 11-24-2010 03:07 AM
telnet: Unable to connect to remote host: No route to host grob115 Linux - Networking 3 07-30-2010 10:18 AM
Home network problem - Centos - no route to host dralexpe Linux - Networking 2 06-30-2007 05:43 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration