Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding integration for IP2location proxy database which can help find…
…ing source and destination addresses that are proxied (e.g., CDN, VPN, TOR, etc)
- Loading branch information
Richard Cziva
committed
Sep 28, 2017
1 parent
9640c8e
commit f041d54
Showing
4 changed files
with
82 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-- This is how I set up the asn db with sqlite | ||
|
||
CREATE TABLE "ip2proxy" ( | ||
"ip_from" integer UNSIGNED, | ||
"ip_to" integer UNSIGNED, | ||
"proxy_type" VARCHAR(3), | ||
"country_code" CHAR(2), | ||
"country_name" VARCHAR(64), | ||
"region_name" VARCHAR(128), | ||
"city_name" VARCHAR(128), | ||
"isp" VARCHAR(256) | ||
); | ||
|
||
CREATE INDEX idx_ip_from on ip2proxy (ip_from); | ||
CREATE INDEX idx_ip_to on ip2proxy (ip_to); | ||
CREATE UNIQUE INDEX idx_ip_from_to on ip2proxy (ip_from, ip_to); | ||
|
||
.separator "," | ||
.import proxy.csv ip2proxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters