This question has come up many times on these forums. And the difficulties surrounding making this work stem from two things.
1.) UT doesn't have a firewall helper application built into its firewall
2.) FTP as a protocol is simply a pain and was never designed for NAT, Firewalling, or any security whatsoever.
So that said, we need it otherwise we can't get drivers from HP or download from a myriad other places. And, we're wanting to control our outbound connections dictating the default block all policy.
So how do we make this work? First we need to find the IP addresses of the FTP server we want to access.
Keeping HP as an example:
1.) Open a command prompt
2.) type in "nslookup ftp.hp.com" <enter>
3.) Write down the list of IP's
Nslookup returns 2 IP addresses for ftp.hp.com, 15.216.110.22, 15.192.45.21
Now that we have the IP addresses we need to allow FTP access to, we need to configure the firewall module. I have not been successful getting UT's firewall to allow more than one IP address in the destination field, nor have I been able to feed the destination port field multiple values. So, for each server we want to allow FTP to, we have to specify 2 rules. We have 2 IP's up there so we need a total of 4. Now, the rules will be the same, just with different destination IP addresses.
So the first rule is the one everyone gets the first time.
Enable Rule: Checked
Log: Checked or UnChecked (admin preference)
Traffic Type: TCP
Client Interface: Wherever the ftp client is connected to UT usually Internal
Server Interface: External
Source Address: Any
Destination Address: 15.216.110.22
Source Port: Any
Destination Port: 21
Category: FTP
Description: Pass FTP Control to HP #1
The second rule is the hangup for most people.
Enable Rule: Checked
Log: Checked or UnChecked (admin preference)
Traffic Type: TCP
Client Interface: Wherever the ftp client is connected to UT usually Internal
Server Interface: External
Source Address: Any
Destination Address: 15.216.110.22
Source Port: Any
Destination Port: 1024-65534
Category: FTP
Description: Pass FTP Data to HP #1
Now duplicate these rules and swap out the destination IP address with 15.192.45.21. Click Save and go download an HP printer driver. These rules may be duplicated for any number of FTP servers but you have to specify each and every FTP server individually.
"Block All" as a default policy is a very high maintenance decision. This is one of the many reasons why. This is also one of the reasons why UTM's like UT exist, to bring network security forward into something more sane to manage.