How to log external ip for fail2ban

help

#1

Hi, i have installed fail2ban in owncloud v9.0.1 (freenas PBI). fail2ban work great, but owncloud log only ip of my router not external ip (use NAT and port forward to access owncloud from internet). Therefore i can not block right ip in ipfw. How to setup owncloud to log external ip adress of clients?


#2

As far as I know, this is the normal behaviour of a NAT network. From the view of the server, all requests were coming from the router. I dont think that this can be changed. The only solution that I know is to connect the server to the internet directly.

from https://www.howtoforge.com/community/threads/server-behind-router-firewall-only-logging-the-gateway-ip-address.49408/


#3

Hi, thx for reply. For now i disable NAT and all work well include logging external ip of clients. Thx