How to keep peer ip on lxd container

on ubuntu 18, i created lxd (4.0.3) container ubuntu:20.04 and installed apache,php-fpm on it.
apache work well in container.
but facing problem.
all connexion logged to apache are identified by ip 127.0.0.1
i wanted to use fail2ban, but in this case, it will be impossible to use it.

Question: how to config that to keep peer ip passing throug the bridge network ?

for info, actual lxd config

lxd init --dump

config: {}
networks:

  • config:
    ipv4.address: 10.135.237.1/24
    ipv4.nat: “true”
    ipv6.address: fd42:be7e:ae67:dd87::1/64
    ipv6.nat: “true”
    description: “”
    name: lxdbr0
    type: bridge
    storage_pools:
  • config:
    size: 15GB
    source: /var/snap/lxd/common/lxd/disks/default.img
    zfs.pool_name: default
    description: “”
    name: default
    driver: zfs
    profiles:
  • config: {}
    description: “”
    devices:
    eth0:
    name: eth0
    network: lxdbr0
    type: nic
    root:
    path: /
    pool: default
    type: disk
    name: default