Notification about login shows (wrong) private IP address

Infos:

  • Used Zammad version: 2.9.x (newest)
  • Used Zammad installation source: Docker
  • Operating system: CentOS 7 / Docker
  • Browser + version: Safari (newest)

Expected behavior:

  • Zammad’s notification regarding new logins should contain my public IP address (shouldn’t it?)

Actual behavior:

  • E-mail ‘Zammad Helpdesk-Anmeldung erfasst von einem neuen Gerät’ contains private IP address from unused subnet
  • (I use 192.168.178.x locally, the e-mail shows 192.168.48.1)

I recently updated Fantastical (3rd party calendar app on macOS) to the newest version, hence the ‘new’ login (Fantastical/658 CFNetwork/978.0.7 Darwin/18.6.0 (x86_64))

Any ideas?

Also, the emails sent via ‘Notification Master’ get created as tickets—I have started to notice that behaviour recently. Have there been any changes?

I’m also using docker-compose, and I can confirm. For me it’s Deine IP: 172.17.0.1 which is the IP address of the bridge on my docker host:

zammad.ourcompany.tld ~ # ifconfig                       
br-zammad: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.255.0  broadcast 172.17.0.255
        inet6 fe80::42:ffff:fe6b:ee64  prefixlen 64  scopeid 0x20<link>
        ether 02:42:ff:6b:ee:64  txqueuelen 0  (Ethernet)        
        RX packets 12380287  bytes 44864958151 (41.7 GiB)                
        RX errors 0  dropped 0  overruns 0  frame 0      
        TX packets 11387564  bytes 2086079459 (1.9 GiB) 
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

This is probably due to the fact that from the zammaddockercompose_zammad-nginx_1’s container point of view, all requests originate from this IP (I’m using Apache on my docker host as a reverse proxy):

zammad.ourcompany.tld ~ # docker logs --tail 1 zammaddockercompose_zammad-nginx_1
172.17.0.1 - - [23/May/2019:09:11:57 +0000] "GET /api/v1/users/4123?full=true&_=1558595065205 HTTP/1.1" 200 656 "https://zammad.ourcompany.tld/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0"

Maybe the realip module could help here? http://nginx.org/en/docs/http/ngx_http_realip_module.html

The root here is Ruby in that case, see:

Does this apply?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.