proftpd

Ansible Role: proftpd

Build Status

Installs proftpd on Debian/Ubuntu linux servers.

Requirements

None.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

Open firewall

iptables -A OUTPUT -p tcp --sport 21 -m state --state ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp --sport 20 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -p tcp --sport 1024: --dport 1024: -m state --state ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp --dport 21 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp --dport 20 -m state --state ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp --sport 1024: --dport 1024: -m state --state ESTABLISHED,RELATED,NEW -j ACCEPT

For tschifftner.firewall:

firewall_additional_rules:
# allowing active/passive FTP
  - 'iptables -A OUTPUT -p tcp --sport 21 -m state --state ESTABLISHED -j ACCEPT'
  - 'iptables -A OUTPUT -p tcp --sport 20 -m state --state ESTABLISHED,RELATED -j ACCEPT'
  - 'iptables -A OUTPUT -p tcp --sport 1024: --dport 1024: -m state --state ESTABLISHED -j ACCEPT'
  - 'iptables -A INPUT -p tcp --dport 21 -m state --state NEW,ESTABLISHED -j ACCEPT'
  - 'iptables -A INPUT -p tcp --dport 20 -m state --state ESTABLISHED -j ACCEPT'
  - 'iptables -A INPUT -p tcp --sport 1024: --dport 1024: -m state --state ESTABLISHED,RELATED,NEW -j ACCEPT'

Create password hash

ftpasswd --hash

Debugging

SSL/TLS

openssl s_client -connect 127.0.0.1:21 -starttls ftp
sudo ssldump -d -k /etc/ssl/private/proftpd-certificate.key -i lo0 port 21
About

Installs and configures proftpd on Debian/Ubuntu linux servers.

Install
ansible-galaxy install tschifftner/ansible-role-proftpd
GitHub repository
License
mit
Downloads
38
Owner
Kubernetes Software Architekt, Magento Certified Developer und Full-Stack Entwickler