Beiträge von BURJUY

    I have a server OMV behind my router (which has internal IP 192.168.10.1) and use port forwarding to forward public ports 80 and 443 to my (OMV) server.

    The router Xiaomi Wi-Fi Router Redmi AC2100 with Padavan firmware

    I can access that server either by typing in it's public IP (say 80.81.82.83) or by going to a domain (say example.org).

    I use NGINX (SWAG) on that server as a reverse proxy to delegate the request to the appropriate (web) applications on the same server.


    Thу problem is that real Client IP not showing in NGINX logs, and i cant use fail2ban.


    If i open any my sites in Nginx logs i see IP 192.168.10.1

    EXAMPLE ACCESS.LOG

    Code
    192.168.10.1 - - [07/Dec/2022:21:08:05 +0300] "GET /app/3rdparty/workbox/workbox-sw.js HTTP/2.0" 200 1359 "https://music.burjuy.xxxx/app/navidrome-service-worker.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.62"


    The problem is that router doesnt transmitt client IP to internal server.