• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/iptables-1.4.x/extensions/
1Match 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]
4Match 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]
7Match packet going to (one of) the specified country(ies)
8.TP
9NOTE:
10The country is inputed by its ISO3166 code.
11.P
12The only extra files you need is a binary db (geoipdb.bin) & its index file (geoipdb.idx).
13Both files are generated from a countries & subnets database with the csv2bin tool,
14available at www.cookinglinux.org/geoip/. Both files MUST also be moved in /var/geoip/
15as the shared library is statically looking for that pathname (ex.: /var/geoip/geoipdb.bin).
16