How To Install ftp-proxy on Ubuntu 18.04

In this tutorial we learn how to install ftp-proxy on Ubuntu 18.04. ftp-proxy is application level proxy for the FTP protocol

Introduction

In this tutorial we learn how to install ftp-proxy on Ubuntu 18.04.

What is ftp-proxy

ftp-proxy is:

FTP-Proxy is a transparent, application-level proxy server for FTP connections, designed to protect FTP servers against attacks based on the FTP protocol. It is the first (and currently only) component of the SuSE Proxy Suite, a set of programs to enhance firewall security.

FTP-Proxy is much less complex than any current FTP server, has been designed with great care and performs chroot(), setuid(), setgid() to avoid possible vulnerabilities, and is believed to be immune against current known attacks.

FTP-Proxy features include: o Securely relays FTP connections between clients and servers o Can switch connections from active to passive and vice versa o Utilizes port ranges for both control and data connections o Provides extensive auditing (via syslog or rotating log files) o Can separate user related from system triggered audit events o Provides command restriction based on logged in user name o Allows command argument checking with regular expressions o Is able to retrieve configuration data from an LDAP directory o Has been thoroughly tested against buffer overflow attacks o Fully conforms to RFC 959 and 1123 (the basic FTP RFCs) o Planned to support RFC 1579 (“Firewall Friendly FTP”) o Planned to support RFC 2428 (IPv6 Extensions for FTP) o Based on GNU AutoConf, supposed to run on many UNIX systems

There are three methods to install ftp-proxy on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ftp-proxy Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ftp-proxy using apt-get by running the following command:

sudo apt-get -y install ftp-proxy

Install ftp-proxy Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ftp-proxy using apt by running the following command:

sudo apt -y install ftp-proxy

Install ftp-proxy Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ftp-proxy using aptitude by running the following command:

sudo aptitude -y install ftp-proxy

How To Uninstall ftp-proxy on Ubuntu 18.04

To uninstall only the ftp-proxy package we can use the following command:

sudo apt-get remove ftp-proxy

Uninstall ftp-proxy And Its Dependencies

To uninstall ftp-proxy and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove ftp-proxy

Remove ftp-proxy Configurations and Data

To remove ftp-proxy configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ftp-proxy

Remove ftp-proxy configuration, data, and all of its dependencies

We can use the following command to remove ftp-proxy configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ftp-proxy

References

Summary

In this tutorial we learn how to install ftp-proxy package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.