-
Notifications
You must be signed in to change notification settings - Fork 806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ATS 10.0.0, header_rewrite plugin does not work with geoip file (maxmind mmdb) #11812
Comments
hello ! i am testing header_rewrite acl with geoip (.mmdb file) again and again but failed always like upside comment. i checked header_rewrite.so library link as well root@ats-dev2:/opt/ts/libexec/trafficserver# ldd header_rewrite.so libmaxminddb.so is linked properly please give me any information when you guys have time ! thanks a lot !! |
@cmcfarlen is going to see if he can reproduce it. |
hello guys i checked traffic.out log as well
traffic.out shows header_rewrite module MaxMind not initialized so, i checked apache traffic server code ( conditions_geo_maxmind.cc ) mgMaxMindDB is not initialized, so it's nullptr
trafficserver/plugins/header_rewrite/CMakeLists.txt code is below maybe TS_USE_HRW_MAXMINDDB is NOT 1
header_rewrite.cc code is below So, MMConditionGeo::initLibrary(dbPath) is not compiled maybe ?
AND i checked header_rewrite Makefile
there is conditions_geo_maxmind, NOT conditions_geo_geoip !!! ### Thus, my expectation is that ATS 10.0.0 does not load maxmind geoip database file or could not find libmaxminddb ** i checked whether libmaxminddb-dev exists or not
** ats host os is ubuntu 22.04
waiting for ATS TEAM Support !! thanks a lot ! |
hello ATS Team ! i set header_rewrite option --geo-db-path on plugin.config for global setting
traffic.out
same maxmind not initialized. thanks a lot |
hello !!
i want to set acl with geoip country.
so, i set header_rewrite plugin configurations about geo.
and i got always same response header below.
i tested this on browser
header result is below.
my host ip is : 1.201.194.27
thus, expected header result is below
i checked mmdb file is correct
mmdblookup --file /opt/ts/etc/trafficserver/GeoLite2-City.mmdb --ip 1.201.194.27
my congurations are below
records.yaml
remap.config
** even i set
plugin.config
svc/test2222.kinxzone.com/header_rewrite.conf
maybe ATS 10.0.0 does not load mmdb file at all.
please give me any information !
@bneradt @calavera @janfrode @biilmann @jpeach @sekimura @cmcfarlen @bryancall @mlibbey @brbzull0
thanks a lot !
The text was updated successfully, but these errors were encountered: