banip

Create BAN entries for iptables.

Stars
12

banip

Create BAN entries for iptables.

Usage

$ banip [country-code]
$ banip -l

us: アメリカ合衆国 (United States)
cn: 中華人民共和国 (China)
jp: 日本 (Japan)
de: ドイツ (Germany)
gb: イギリス (United Kingdom)
kr: 大韓民国 (Korea, Republic of)
br: ブラジル (Brazil)
fr: フランス (France)
ca: カナダ (Canada)
it: イタリア (Italy)
au: オーストラリア (Australia)
nl: オランダ (Netherlands)
ru: ロシア連邦 (Russian Federation)
in: インド (India)
tw: 台湾 (Taiwan, Province of China)
es: スペイン (Spain)
se: スウェーデン (Sweden)
za: 南アフリカ (South Africa)
mx: メキシコ (Mexico)
be: ベルギー (Belgium)
eg: エジプト (Egypt)
pl: ポーランド (Poland)
ch: スイス (Switzerland)
ar: アルゼンチン (Argentina)
id: インドネシア (Indonesia)
co: コロンビア (Colombia)
tr: トルコ (Turkey)
no: ノルウェー (Norway)
vn: ベトナム (Viet Nam)
sg: シンガポール (Singapore)
fi: フィンランド (Finland)
ir: イラン・イスラム共和国 (Iran, Islamic Republic of)
dk: デンマーク (Denmark)
hk: 香港 (Hong Kong)
ma: モロッコ (Morocco)
at: オーストリア (Austria)
ua: ウクライナ (Ukraine)
sa: サウジアラビア (Saudi Arabia)
cl: チリ (Chile)
cz: チェコ (Czech Republic)
th: タイ (Thailand)
ro: ルーマニア (Romania)
sc: セーシェル (Seychelles)
il: イスラエル (Israel)
tn: チュニジア (Tunisia)
nz: ニュージーランド (New Zealand)
ve: ベネズエラ・ボリバル共和国 (Venezuela, Bolivarian Republic of)
ie: アイルランド (Ireland)
pt: ポルトガル (Portugal)
my: マレーシア (Malaysia)
hu: ハンガリー (Hungary)
gr: ギリシャ (Greece)
ph: フィリピン (Philippines)
ke: ケニア (Kenya)
eu: 欧州連合 (European Union)
pk: パキスタン (Pakistan)
dz: アルジェリア (Algeria)
bg: ブルガリア (Bulgaria)
ae: アラブ首長国連邦 (United Arab Emirates)
pe: ペルー (Peru)
ng: ナイジェリア (Nigeria)
kz: カザフスタン (Kazakhstan)
sk: スロバキア (Slovakia)
ec: エクアドル (Ecuador)
si: スロベニア (Slovenia)
cr: コスタリカ (Costa Rica)
mu: モーリシャス (Mauritius)
lt: リトアニア (Lithuania)
uy: ウルグアイ (Uruguay)
rs: セルビア (Serbia)
gh: ガーナ (Ghana)
hr: クロアチア (Croatia)
kw: クウェート (Kuwait)
sd: スーダン (Sudan)
by: ベラルーシ (Belarus)
lv: ラトビア (Latvia)
pa: パナマ (Panama)
bd: バングラデシュ (Bangladesh)
zm: ザンビア (Zambia)
do: ドミニカ共和国 (Dominican Republic)
lu: ルクセンブルク (Luxembourg)
ug: ウガンダ (Uganda)
ee: エストニア (Estonia)
md: モルドバ共和国 (Moldova, Republic of)
ge: グルジア (Georgia)
ao: アンゴラ (Angola)
ci: コートジボワール (Côte d'Ivoire)
sy: シリア・アラブ共和国 (Syrian Arab Republic)
bo: ボリビア多民族国 (Bolivia, Plurinational State of)
py: パラグアイ (Paraguay)
tz: タンザニア (Tanzania, United Republic of)
om: オマーン (Oman)
pr: プエルトリコ (Puerto Rico)
cy: キプロス (Cyprus)
is: アイスランド (Iceland)
qa: カタール (Qatar)
ba: ボスニア・ヘルツェゴビナ (Bosnia and Herzegovina)
az: アゼルバイジャン (Azerbaijan)
ps: パレスチナ (Palestinian Territory, Occupied)
mk: マケドニア旧ユーゴスラビア共和国 (Macedonia, the former Yugoslav Republic of)
iq: イラク (Iraq)
cm: カメルーン (Cameroon)
jo: ヨルダン (Jordan)
sv: エルサルバドル (El Salvador)
mt: マルタ (Malta)
am: アルメニア (Armenia)
lb: レバノン (Lebanon)
gt: グアテマラ (Guatemala)
lk: スリランカ (Sri Lanka)
np: ネパール (Nepal)
mw: マラウイ (Malawi)
hn: ホンジュラス (Honduras)
tt: トリニダード・トバゴ (Trinidad and Tobago)
na: ナミビア (Namibia)
bh: バーレーン (Bahrain)
mz: モザンビーク (Mozambique)
ga: ガボン (Gabon)
ly: リビア (Libya)
ni: ニカラグア (Nicaragua)
al: アルバニア (Albania)
sn: セネガル (Senegal)
kh: カンボジア (Cambodia)
re: レユニオン (Réunion)
et: エチオピア (Ethiopia)
tg: トーゴ (Togo)
mo: マカオ (Macao)
bf: ブルキナファソ (Burkina Faso)
kg: キルギス (Kyrgyzstan)
gm: ガンビア (Gambia)
rw: ルワンダ (Rwanda)
cu: キューバ (Cuba)
mn: モンゴル (Mongolia)
uz: ウズベキスタン (Uzbekistan)
me: モンテネグロ (Montenegro)
gu: グアム (Guam)
jm: ジャマイカ (Jamaica)
bn: ブルネイ・ダルサラーム (Brunei Darussalam)
ye: イエメン (Yemen)
cw: キュラソー (Curaçao)
mg: マダガスカル (Madagascar)
ky: ケイマン諸島 (Cayman Islands)
mm: ミャンマー (Myanmar)
gi: ジブラルタル (Gibraltar)
bb: バルバドス (Barbados)
bj: ベナン (Benin)
af: アフガニスタン (Afghanistan)
bz: ベリーズ (Belize)
ht: ハイチ (Haiti)
nc: ニューカレドニア (New Caledonia)
cd: コンゴ民主共和国 (Congo, the Democratic Republic of the)
bw: ボツワナ (Botswana)
fj: フィジー (Fiji)
cg: コンゴ共和国 (Congo)
bs: バハマ (Bahamas)
zw: ジンバブエ (Zimbabwe)
ls: レソト (Lesotho)
vi: アメリカ領ヴァージン諸島 (Virgin Islands, U.S.)
bm: バミューダ (Bermuda)
li: リヒテンシュタイン (Liechtenstein)
lr: リベリア (Liberia)
aw: アルバ (Aruba)
sl: シエラレオネ (Sierra Leone)
ml: マリ (Mali)
mv: モルディブ (Maldives)
sr: スリナム (Suriname)
la: ラオス人民民主共和国 (Lao People's Democratic Republic)
tj: タジキスタン (Tajikistan)
vg: イギリス領ヴァージン諸島 (Virgin Islands, British)
mc: モナコ (Monaco)
gy: ガイアナ (Guyana)
ag: アンティグア・バーブーダ (Antigua and Barbuda)
pf: フランス領ポリネシア (French Polynesia)
je: ジャージー (Jersey)
pg: パプアニューギニア (Papua New Guinea)
ad: アンドラ (Andorra)
dj: ジブチ (Djibouti)
sz: スワジランド (Swaziland)
fo: フェロー諸島 (Faroe Islands)
so: ソマリア (Somalia)
mr: モーリタニア (Mauritania)
bi: ブルンジ (Burundi)
ne: ニジェール (Niger)
sm: サンマリノ (San Marino)
sx: シント・マールテン(オランダ領) (Sint Maarten (Dutch part))
bt: ブータン (Bhutan)
gn: ギニア (Guinea)
gl: グリーンランド (Greenland)
cv: カーボベルデ (Cape Verde)
im: マン島 (Isle of Man)
bq: ボネール、シント・ユースタティウスおよびサバ (Bonaire, Saint Eustatius and Saba)
gf: フランス領ギアナ (French Guiana)
td: チャド (Chad)
gg: ガーンジー (Guernsey)
lc: セントルシア (Saint Lucia)
gq: 赤道ギニア (Equatorial Guinea)
ws: サモア (Samoa)
gp: グアドループ (Guadeloupe)
vu: バヌアツ (Vanuatu)
tl: 東ティモール (Timor-Leste)
ss: 南スーダン (South Sudan)
mp: 北マリアナ諸島 (Northern Mariana Islands)
tm: トルクメニスタン (Turkmenistan)
kn: セントクリストファー・ネイビス (Saint Kitts and Nevis)
mq: マルティニーク (Martinique)
sb: ソロモン諸島 (Solomon Islands)
va: バチカン市国 (Holy See (Vatican City State))
dm: ドミニカ国 (Dominica)
tc: タークス・カイコス諸島 (Turks and Caicos Islands)
to: トンガ (Tonga)
mf: サン・マルタン(フランス領) (Saint Martin (French part))
nr: ナウル (Nauru)
gd: グレナダ (Grenada)
st: サントメ・プリンシペ (Sao Tome and Principe)
vc: セントビンセントおよびグレナディーン諸島 (Saint Vincent and the Grenadines)
ai: アンギラ (Anguilla)
ck: クック諸島 (Cook Islands)
fm: ミクロネシア連邦 (Micronesia, Federated States of)
tv: ツバル (Tuvalu)
gw: ギニアビサウ (Guinea-Bissau)
as: アメリカ領サモア (American Samoa)
pw: パラオ (Palau)
cf: 中央アフリカ共和国 (Central African Republic)
km: コモロ (Comoros)
ki: キリバス (Kiribati)
er: エリトリア (Eritrea)
mh: マーシャル諸島 (Marshall Islands)
pm: サンピエール島・ミクロン島 (Saint Pierre and Miquelon)
fk: フォークランド(マルビナス)諸島 (Falkland Islands (Malvinas))
wf: ウォリス・フツナ (Wallis and Futuna)
io: イギリス領インド洋地域 (British Indian Ocean Territory)
ap: アジア太平洋地域 (Asia Pacific)
nf: ノーフォーク島 (Norfolk Island)
nu: ニウエ (Niue)
tk: トケラウ (Tokelau)
bl: サン・バルテルミー (Saint Barthélemy)
ms: モントセラト (Montserrat)
ax: オーランド諸島 (Åland Islands)
kp: 朝鮮民主主義人民共和国 (Korea, Democratic People's Republic of)
yt: マヨット (Mayotte)
aq: 南極 (Antarctica)

Installation

$ go get github.com/mattn/banip

License

MIT

Author

Yasuhiro Matsumoto