summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2026-02-05 15:31:02 +0000
committerGitHub <noreply@github.com>2026-02-05 15:31:02 +0000
commit407b4e2486387051cf7d4bb83bbe310a87404bb7 (patch)
tree598450a6f1979b60ff8e9804f1b07edc13724ddd /interface-definitions
parenta3481811a34ad3d0c23d068e3ea1d070fda43f57 (diff)
parent8a329ef98eb120cc91aac6f7da6cd61dbc1ab950 (diff)
downloadvyos-1x-407b4e2486387051cf7d4bb83bbe310a87404bb7.tar.gz
vyos-1x-407b4e2486387051cf7d4bb83bbe310a87404bb7.zip
Merge pull request #4949 from sarthurdev/geoip_refactor
geoip: T7926: T8049: Refactor geoip code and add MaxMind support
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/include/firewall/global-options.xml.i43
1 files changed, 43 insertions, 0 deletions
diff --git a/interface-definitions/include/firewall/global-options.xml.i b/interface-definitions/include/firewall/global-options.xml.i
index e19f3a7c5..7ec07100d 100644
--- a/interface-definitions/include/firewall/global-options.xml.i
+++ b/interface-definitions/include/firewall/global-options.xml.i
@@ -130,6 +130,49 @@
</properties>
<defaultValue>enable</defaultValue>
</leafNode>
+ <node name="geoip">
+ <properties>
+ <help>GeoIP options</help>
+ </properties>
+ <children>
+ <leafNode name="provider">
+ <properties>
+ <help>GeoIP database provider</help>
+ <completionHelp>
+ <list>db-ip maxmind</list>
+ </completionHelp>
+ <valueHelp>
+ <format>db-ip</format>
+ <description>Use GeoIP database by DB-IP.com</description>
+ </valueHelp>
+ <valueHelp>
+ <format>maxmind</format>
+ <description>Use GeoIP database by MaxMind (Requires API key)</description>
+ </valueHelp>
+ <constraint>
+ <regex>(db-ip|maxmind)</regex>
+ </constraint>
+ </properties>
+ <defaultValue>db-ip</defaultValue>
+ </leafNode>
+ <leafNode name="maxmind-account-id">
+ <properties>
+ <help>Account ID for MaxMind GeoIP database</help>
+ </properties>
+ </leafNode>
+ <leafNode name="maxmind-license-key">
+ <properties>
+ <help>License key for MaxMind GeoIP database</help>
+ </properties>
+ </leafNode>
+ <leafNode name="maxmind-lite">
+ <properties>
+ <help>Use MaxMind GeoLite2 database</help>
+ <valueless/>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
<leafNode name="ip-src-route">
<properties>
<help>Policy for handling IPv4 packets with source route option</help>