> For the complete documentation index, see [llms.txt](https://agrat.gitbook.io/admin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://agrat.gitbook.io/admin/network/ustanovka-pure-ftp.md).

# Установка Pure-FTP

```bash
sudo dnf -y install pure-ftpd
```

\===== Настройка =====&#x20;

```bash
sudo vi /etc/pure-ftpd/pure-ftpd.conf
```

```bash
# line 77: change (no Anonymous)
NoAnonymous       yes
# line 441: uncomment (if you use only IPv4)
IPV4Only       yes
# line 448: uncomment (if you use only IPv6)
IPV6Only       no
# line 179: uncomment and fix PASV ports
PassivePortRange       21000 21010
```

\===== Настройка firewall ===== &#x20;

```bash
sudo firewall-cmd --add-service=ftp --permanent 
```

```bash
sudo firewall-cmd --add-port=21000-21010/tcp --permanent 
```

```bash
sudo firewall-cmd --reload 
```

\===== Настройка SE ===== &#x20;

```bash
sudo setsebool -P ftpd_full_access on 
```

\===== Настройка systemctl =====&#x20;

```bash
sudo systemctl start pure-ftpd
```

```bash
sudo systemctl enable pure-ftpd
```
