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

Notices


Reply
  Search this Thread
Old 07-11-2016, 02:25 PM   #1
megabrazil
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 (192.168.25.1)
2) I have one router ArcherC8 (192.168.0.1)

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 192.168.25.200) and (1 connected to the modem, the ip address is 192.168.0.200)

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 192.168.25.200

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
sources:
services: dhcpv6-client ssh
ports: 21/tcp
masquerade: no
forward-ports:
icmp-blocks:
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
jnihil
Member
 
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?

Code:
firewall-cmd --permanent --add-service=ftp
according to many links I read on the net it's required:
https://www.unixmen.com/install-conf...rver-centos-7/
http://codingbee.net/tutorials/rhcsa...an-ftp-server/

Last edited by jnihil; 07-12-2016 at 03:57 AM.
 
Old 07-12-2016, 05:35 PM   #3
megabrazil
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
 
  


Reply


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 10.1.93.101 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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