Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / iptables / extensions / libipt_geoip.man
blob7353f98d7803f77cf761a086287085ab5610c0b0
1 Match a packet by its source or destination country.
2 .TP
3 [\fB!\fR] \fB--src-cc\fR, \fB--source-country \fIcountry\fR[\fB,\fIcountry\fB,\fIcountry\fB,\fI...\fR]
4 Match packet coming from (one of) the specified country(ies)
5 .TP
6 [\fB!\fR] \fB--dst-cc\fR, \fB--destination-country \fIcountry\fR[\fB,\fIcountry\fB,\fIcountry\fB,\fI...\fR]
7 Match packet going to (one of) the specified country(ies)
8 .TP
9 NOTE:
10 The country is inputed by its ISO3166 code.
12 The only extra files you need is a binary db (geoipdb.bin) & its index file (geoipdb.idx).
13 Both files are generated from a countries & subnets database with the csv2bin tool,
14 available at www.cookinglinux.org/geoip/. Both files MUST also be moved in /var/geoip/
15 as the shared library is statically looking for that pathname (ex.: /var/geoip/geoipdb.bin).