• firewall, DrayOS 4, imported, syslog, ftp_block, service_type_object, filter_set

Block FTP Service by Firewall (DrayOS4)

1. Go to Object Setting >> Services Type Object to create a profile as follows:

  • Type the profile name as "FTP"
  • Set Protocol to "TCP"
  • Set the Destination Port to "= 21 - 21"

2. Go to Firewall >> Filter Setup >> Filter Set 2, click on an empty rule and edit as follows:

  • Check "Enable"
  • (Optional) Input some comments (optional)
  • (Optional) Click Edit at Source IP and enter the IP that should follow this policy. If not specified, this rule will apply to all the LAN host.
  • Click Edit at Service Type and select the profile created in step 1
  • Select "Block Immediately" for Filter. You may also check Syslog if you want the router to generate logs about this rule
  • Click OK to save the profile.  

3. The firewall rule will be active as long as it is enabled. From Diagnostics >> Syslog Explorer, we may see the router has blocked the attempts of connecting to TCP port 21