gnif / mod_rpaf

reverse proxy add forward module for Apache
199 stars 79 forks source link

wildcard mask of 10.0.0.0/8 does not translate to proper ip addresses #48

Closed arabek closed 7 years ago

arabek commented 7 years ago

Unless i set a specific loadbalancer ip in the config file via: RPAFproxy_ips The resolved ip is always the ip of the loadbalancer even though it's in the proper 10.x.x.x subnet. After adding the ip of the loadbalancer directly (without a subnet mask) the logfile shows the proper external ip.

gnif commented 7 years ago

What version of mod_rpaf, and what is your config?

That setting looks like it is from mod_rpaf 0.6

arabek commented 7 years ago
# dpkg --list | grep rpaf
ii  libapache2-mod-rpaf                        0.6-2ubuntu1                                        module for Apache2 which takes the last IP from the 'X-Forwarded-For' header

You're correct. :(

gnif commented 7 years ago

0.6 does not support CDIR notation, please upgrade. Closing this issue.