|
47 | 47 | "resource":"maxmind", |
48 | 48 | "title":"Testing Variables :: GEO:COUNTRY_NAME [maxmind]", |
49 | 49 | "client":{ |
50 | | - "ip":"64.17.254.216", |
| 50 | + "ip":"200.249.12.31", |
51 | 51 | "port":123 |
52 | 52 | }, |
53 | 53 | "server":{ |
|
74 | 74 | ] |
75 | 75 | }, |
76 | 76 | "expected":{ |
77 | | - "debug_log":"Target value: \"United States\" \\(Variable: GEO:COUNTRY_NAME\\)" |
| 77 | + "debug_log":"Target value: \"Brazil\" \\(Variable: GEO:COUNTRY_NAME\\)" |
78 | 78 | }, |
79 | 79 | "rules":[ |
80 | 80 | "SecRuleEngine On", |
81 | | - "SecGeoLookupDb test-cases\/data\/geo\/GeoLite2-City.mmdb", |
| 81 | + "SecGeoLookupDb test-cases\/data\/GeoIP2-City-Test.mmdb", |
82 | 82 | "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", |
83 | 83 | "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" |
84 | 84 | ] |
|
509 | 509 | "resource":"maxmind", |
510 | 510 | "title":"Testing Variables :: GEO:COUNTRY_NAME [maxmind]", |
511 | 511 | "client":{ |
512 | | - "ip":"64.17.254.216", |
| 512 | + "ip":"200.249.12.31", |
513 | 513 | "port":123 |
514 | 514 | }, |
515 | 515 | "server":{ |
|
536 | 536 | ] |
537 | 537 | }, |
538 | 538 | "expected":{ |
539 | | - "debug_log":"Target value: \"United States\" \\(Variable: GEO:COUNTRY_NAME\\)" |
| 539 | + "debug_log":"Target value: \"Brazil\" \\(Variable: GEO:COUNTRY_NAME\\)" |
540 | 540 | }, |
541 | 541 | "rules":[ |
542 | 542 | "SecRuleEngine On", |
543 | | - "SecGeoLookupDb test-cases\/data\/geo\/GeoLite2-City.mmdb", |
| 543 | + "SecGeoLookupDb test-cases\/data\/GeoIP2-City-Test.mmdb", |
544 | 544 | "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", |
545 | 545 | "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" |
546 | 546 | ] |
|
551 | 551 | "resource":"maxmind", |
552 | 552 | "title":"Testing Variables :: GEO:LATITUDE [maxmind]", |
553 | 553 | "client":{ |
554 | | - "ip":"64.17.254.216", |
| 554 | + "ip":"200.249.12.31", |
555 | 555 | "port":123 |
556 | 556 | }, |
557 | 557 | "server":{ |
|
578 | 578 | ] |
579 | 579 | }, |
580 | 580 | "expected":{ |
581 | | - "debug_log":"Target value: \"41.517100\" \\(Variable: GEO:LATITUDE\\)" |
| 581 | + "debug_log":"Target value: \"-8.051502\" \\(Variable: GEO:LATITUDE\\)" |
582 | 582 | }, |
583 | 583 | "rules":[ |
584 | 584 | "SecRuleEngine On", |
585 | | - "SecGeoLookupDb test-cases\/data\/geo\/GeoLite2-City.mmdb", |
| 585 | + "SecGeoLookupDb test-cases\/data\/GeoIP2-City-Test.mmdb", |
586 | 586 | "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", |
587 | 587 | "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" |
588 | 588 | ] |
|
593 | 593 | "resource":"maxmind", |
594 | 594 | "title":"Testing Variables :: GEO:COUNTRY_CODE [maxmind]", |
595 | 595 | "client":{ |
596 | | - "ip":"64.17.254.216", |
| 596 | + "ip":"200.249.12.31", |
597 | 597 | "port":123 |
598 | 598 | }, |
599 | 599 | "server":{ |
|
620 | 620 | ] |
621 | 621 | }, |
622 | 622 | "expected":{ |
623 | | - "debug_log":"Target value: \"US\" \\(Variable: GEO:COUNTRY_CODE\\)" |
| 623 | + "debug_log":"Target value: \"BR\" \\(Variable: GEO:COUNTRY_CODE\\)" |
624 | 624 | }, |
625 | 625 | "rules":[ |
626 | 626 | "SecRuleEngine On", |
627 | | - "SecGeoLookupDb test-cases\/data\/geo\/GeoLite2-City.mmdb", |
| 627 | + "SecGeoLookupDb test-cases\/data\/GeoIP2-City-Test.mmdb", |
628 | 628 | "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", |
629 | 629 | "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" |
630 | 630 | ] |
|
635 | 635 | "resource":"maxmind", |
636 | 636 | "title":"Testing Variables :: GEO:COUNTRY_CONTINENT [maxmind]", |
637 | 637 | "client":{ |
638 | | - "ip":"64.17.254.216", |
| 638 | + "ip":"200.249.12.31", |
639 | 639 | "port":123 |
640 | 640 | }, |
641 | 641 | "server":{ |
|
662 | 662 | ] |
663 | 663 | }, |
664 | 664 | "expected":{ |
665 | | - "debug_log":"Target value: \"North America\" \\(Variable: GEO:COUNTRY_CONTINENT\\)" |
| 665 | + "debug_log":"Target value: \"South America\" \\(Variable: GEO:COUNTRY_CONTINENT\\)" |
666 | 666 | }, |
667 | 667 | "rules":[ |
668 | 668 | "SecRuleEngine On", |
669 | | - "SecGeoLookupDb test-cases\/data\/geo\/GeoLite2-City.mmdb", |
| 669 | + "SecGeoLookupDb test-cases\/data\/GeoIP2-City-Test.mmdb", |
670 | 670 | "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", |
671 | 671 | "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" |
672 | 672 | ] |
|
677 | 677 | "resource":"maxmind", |
678 | 678 | "title":"Testing Variables :: GEO:POSTAL_CODE [maxmind]", |
679 | 679 | "client":{ |
680 | | - "ip":"64.17.254.216", |
| 680 | + "ip":"200.249.12.31", |
681 | 681 | "port":123 |
682 | 682 | }, |
683 | 683 | "server":{ |
|
704 | 704 | ] |
705 | 705 | }, |
706 | 706 | "expected":{ |
707 | | - "debug_log":"Target value: \"02842\" \\(Variable: GEO:POSTAL_CODE\\)" |
| 707 | + "debug_log":"Target value: \"50040090\" \\(Variable: GEO:POSTAL_CODE\\)" |
708 | 708 | }, |
709 | 709 | "rules":[ |
710 | 710 | "SecRuleEngine On", |
711 | | - "SecGeoLookupDb test-cases\/data\/geo\/GeoLite2-City.mmdb", |
| 711 | + "SecGeoLookupDb test-cases\/data\/GeoIP2-City-Test.mmdb", |
712 | 712 | "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", |
713 | 713 | "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" |
714 | 714 | ] |
|
719 | 719 | "resource":"maxmind", |
720 | 720 | "title":"Testing Variables :: GEO:CITY [maxmind]", |
721 | 721 | "client":{ |
722 | | - "ip":"64.17.254.216", |
| 722 | + "ip":"200.249.12.31", |
723 | 723 | "port":123 |
724 | 724 | }, |
725 | 725 | "server":{ |
|
746 | 746 | ] |
747 | 747 | }, |
748 | 748 | "expected":{ |
749 | | - "debug_log":"Target value: \"Middletown\" \\(Variable: GEO:CITY\\)" |
| 749 | + "debug_log":"Target value: \"Recife\" \\(Variable: GEO:CITY\\)" |
750 | 750 | }, |
751 | 751 | "rules":[ |
752 | 752 | "SecRuleEngine On", |
753 | | - "SecGeoLookupDb test-cases\/data\/geo\/GeoLite2-City.mmdb", |
| 753 | + "SecGeoLookupDb test-cases\/data\/GeoIP2-City-Test.mmdb", |
754 | 754 | "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", |
755 | 755 | "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" |
756 | 756 | ] |
|
0 commit comments