PF Fail2ban and ftp-proxy. How to block client ip?

I need to have an FTP server and for security I installed it in a dedicated jail. To route traffic I use ftp-proxy.
To try to avoid unwanted access to the system I use fail2ban which detects intrusion attempts but obviously blocks the proxy address on the Lan side.
How can I transfer the client's IP address and ban it and not the proxy's?
Thanks in advance.
 
Back
Top