config linux router to allow ftp

Posted on

config linux router to allow ftp – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, centos, routing, vmware-esxi, ftp.

I recently setup ESXi on a dedicated server and I tied to use /29 IP subnet for my VMs, due to datacenter policies I have to run A router-VM on my ESXi to route traffic to/from VMs.

I get a single IP address and 8IP subnet data center routed the subnet IP to my single IP, I configed my router-VM as following:

  • assign the single IP to eth0 assign the first usable IP of subnet to
  • eth1 enable kernel ip4 forwarding of router-VM (centOS 6.4) change
  • the IP table to allow forwarding (just remove forward block rule). I
  • used the IP of eth1 (first usable IP of subnet) for my VMs gateway I
  • didn’t add any route to router-VM, Just IP Forwarding.

Now every thing work properly, HTTP, SSH to server and from server to the Internet,
except FTP server, I disabled IP table of router VM completely but nothing changed.

I don’t know what is source of my problem and how should I solve the problem.

Solution :

Did you load ip_nat_ftp and ip_conntrack_ftp modules?

# modprobe ip_nat_ftp 
# modprobe ip_conntrack_ftp

Leave a Reply

Your email address will not be published.