I’m relatively new to docker but I’m trying to create an application in python which analyzes some FTP log. I was able to create an easy vsftpd docker using fauria/vsftpd. My problem is that when I look into the log of the vsftpd server I see that all the requests have been done from the docker gateway.
For example, if client A with IP = 192.168.0.5 does a request to docker B which have gateway = 172.21.0.1 and IP = 172.21.0.2 in the log I will have something like this:
Mon Mar 23 12:02:21 2020 [pid 47] [username] OK LOGIN: Client “172.21.0.1”
And this makes sense, but is there a way to know which particular host has done that request? I need to get something like:
192.168.0.5 has requested throw ftp this file: /example/ at the docker with IP 172.21.0.2