IPSETD-NG SQLite driver is part of the package IPSET-NG and operates only in the server part
SQLite database driver is the secondary driver of the IPSET-NG system, use this driver we recommend on platforms where there is no installed package libipset and you can not install it.
We recommend to use the ipset driver in connection with its fuller functionality and direct appeals to the resources of the system, which reduces the overall load in more traffic.
Support direct Internet protocol version 4 and 6 for iptables operation compatible.
For details, see the settings in the configuration file.
create <table name>: create
table namein specific SQLite database and create same name iptables chain, a rule is created in the iptable specifies the
INPUTto check IP address of the created chain. Iptables target table in IPv4 or IPv6 determined by the HASH table type automatically.
destroy <table name>: delete
table namein specific SQLite database and delete same name iptables chain, a same name rule in ip table specifies the
flush <table name>: erase body data in SQLite table
table nameand flush same name iptables chain.
add <ip address>: add ip address to specific table in SQLite database and insert or append ip address to same name chain. Iptables target table is IPv4 or IPv6 is determined by the type of IP addresses automatically.
del <ip address>: delete ip address to specific table in SQLite database and delete ip address to the same name chain.
test <ip address>: check availability ip address in specific table from SQLite database.
Example configuration file to set SQLite driver: ipsetd-ng.conf, ipsetcmd-ng.conf:
[driver] # path to dynamic driver directory # create automaticaly from make, default: '/usr/lib/ipsetng' path = /usr/lib/ipsetng # name of use driver, explore: /usr/lib/ipsetng/drv-<name>-ng.so name = sqlite3 # WARNING: this iptables setting can be used in all drivers except the driver ipset # enable iptables add or delete direct to kernel iptenable = yes # chain of iptables iptchain = INPUT # table of iptables ipttable = filter # target of iptables iptrule = DROP # method for adding to table: insert | append iptmethod = append # SQL Lite 3 diver [drv-sqlite3] # path & file data base dbase = /path/myipdb.db # path & file to exec on add or delete ip address exec = /path/to/file.sh
|Meta Tags: IPSETD-NG SQLite driver ipset|