How to allow FTP connnections with a deny policy

In order to allow FTP connections with a (global/per object) policy set to deny, you need to follow the next steps:

  1. Get Firewall->Packet filter
  2. Select Configure default rules or Configure rules for a particular object
  3. Set policy to Deny
  4. Add the following rules to allow ftp data and control flows:
    • TCP / 21 Allow
    • TCP / 20 Allow
  5. Save the changes
  6. Go to an eBox console and type:
    modprobe ip_conntrack_ftp
    

Thus all connections related to a ftp connection will be allowed. Take care all ftp clients should be set in a passive mode (Most browsers do so).