|
| 1 | +# https://plugins.traefik.io/plugins/62947302108ecc83915d7781/geoblock |
| 2 | + |
| 3 | +http: |
| 4 | + middlewares: |
| 5 | + geoblock: |
| 6 | + plugin: |
| 7 | + geoblock: |
| 8 | + # Enable this plugin? |
| 9 | + enabled: true |
| 10 | + # Path to ip2location database file |
| 11 | + databaseFilePath: /plugins-storage/sources/gop-***/src/github.com/nscuro/traefik-plugin-geoblock/IP2LOCATION-LITE-DB1.IPV6.BIN |
| 12 | + # Whitelist of countries to allow (ISO 3166-1 alpha-2) |
| 13 | + #allowedCountries: [ "AT", "BE", "BG", "CH", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GR", "HR", "HU", "IE", "IT", "LT", "LU", "LV", "MT", "NL", "PL", "PT", "RO" ,"SE", "SI", "SK" ] |
| 14 | + allowedCountries: |
| 15 | + - AD # Andorra |
| 16 | + #- AE # United Arab Emirates |
| 17 | + #- AF # Afghanistan |
| 18 | + #- AG # Antigua and Barbuda |
| 19 | + #- AI # Anguilla |
| 20 | + #- AL # Albania |
| 21 | + #- AM # Armenia |
| 22 | + #- AO # Angola |
| 23 | + #- AQ # Antarctica |
| 24 | + #- AR # Argentina |
| 25 | + #- AS # American Samoa |
| 26 | + - AT # Austria |
| 27 | + #- AU # Australia |
| 28 | + #- AW # Aruba |
| 29 | + #- AX # Åland Islands |
| 30 | + #- AZ # Azerbaijan |
| 31 | + #- BA # Bosnia and Herzegovina |
| 32 | + #- BB # Barbados |
| 33 | + #- BD # Bangladesh |
| 34 | + - BE # Belgium |
| 35 | + #- BF # Burkina Faso |
| 36 | + - BG # Bulgaria |
| 37 | + #- BH # Bahrain |
| 38 | + #- BI # Burundi |
| 39 | + #- BJ # Benin |
| 40 | + #- BL # Saint Barthélemy |
| 41 | + #- BM # Bermuda |
| 42 | + #- BN # Brunei |
| 43 | + #- BO # Bolivia |
| 44 | + #- BQ # Bonaire, Sint Eustatius, and Saba |
| 45 | + #- BR # Brazil |
| 46 | + #- BS # The Bahamas |
| 47 | + #- BT # Bhutan |
| 48 | + #- BV # Bouvet Island |
| 49 | + #- BW # Botswana |
| 50 | + #- BY # Belarus |
| 51 | + #- BZ # Belize |
| 52 | + #- CA # Canada |
| 53 | + #- CC # Cocos (Keeling) Islands |
| 54 | + #- CD # Democratic Republic of the Congo |
| 55 | + #- CF # Central African Republic |
| 56 | + #- CG # Republic of the Congo |
| 57 | + - CH # Switzerland |
| 58 | + #- CI # Ivory Coast |
| 59 | + #- CK # Cook Islands |
| 60 | + #- CL # Chile |
| 61 | + #- CM # Cameroon |
| 62 | + #- CN # China |
| 63 | + #- CO # Colombia |
| 64 | + #- CR # Costa Rica |
| 65 | + #- CU # Cuba |
| 66 | + #- CV # Cape Verde |
| 67 | + #- CW # Curaçao |
| 68 | + #- CX # Christmas Island |
| 69 | + #- CY # Cyprus |
| 70 | + - CZ # Czech Republic |
| 71 | + - DE # Germany |
| 72 | + #- DJ # Djibouti |
| 73 | + - DK # Denmark |
| 74 | + #- DM # Dominica |
| 75 | + #- DO # Dominican Republic |
| 76 | + #- DZ # Algeria |
| 77 | + #- EC # Ecuador |
| 78 | + - EE # Estonia |
| 79 | + #- EG # Egypt |
| 80 | + #- EH # Western Sahara |
| 81 | + #- ER # Eritrea |
| 82 | + - ES # Spain |
| 83 | + #- ET # Ethiopia |
| 84 | + - FI # Finland |
| 85 | + #- FJ # Fiji |
| 86 | + #- FK # Falkland Islands |
| 87 | + #- FM # Federated States of Micronesia |
| 88 | + #- FO # Faroe Islands |
| 89 | + - FR # France |
| 90 | + #- GA # Gabon |
| 91 | + - GB # United Kingdom |
| 92 | + #- GD # Grenada |
| 93 | + #- GE # Georgia |
| 94 | + #- GF # French Guiana |
| 95 | + #- GG # Guernsey |
| 96 | + #- GH # Ghana |
| 97 | + #- GI # Gibraltar |
| 98 | + #- GL # Greenland |
| 99 | + #- GM # The Gambia |
| 100 | + #- GN # Guinea |
| 101 | + #- GP # Guadeloupe |
| 102 | + #- GQ # Equatorial Guinea |
| 103 | + - GR # Greece |
| 104 | + #- GS # South Georgia and the South Sandwich Islands |
| 105 | + #- GT # Guatemala |
| 106 | + #- GU # Guam |
| 107 | + #- GW # Guinea-Bissau |
| 108 | + #- GY # Guyana |
| 109 | + #- HK # Hong Kong |
| 110 | + #- HM # Heard Island and McDonald Islands |
| 111 | + #- HN # Honduras |
| 112 | + - HR # Croatia |
| 113 | + #- HT # Haiti |
| 114 | + - HU # Hungary |
| 115 | + #- ID # Indonesia |
| 116 | + - IE # Ireland |
| 117 | + #- IL # Israel |
| 118 | + #- IM # Isle of Man |
| 119 | + #- IN # India |
| 120 | + #- IO # British Indian Ocean Territory |
| 121 | + #- IQ # Iraq |
| 122 | + #- IR # Iran |
| 123 | + - IS # Iceland |
| 124 | + - IT # Italy |
| 125 | + #- JE # Jersey |
| 126 | + #- JM # Jamaica |
| 127 | + #- JO # Jordan |
| 128 | + #- JP # Japan |
| 129 | + #- KE # Kenya |
| 130 | + #- KG # Kyrgyzstan |
| 131 | + #- KH # Cambodia |
| 132 | + #- KI # Kiribati |
| 133 | + #- KM # Comoros |
| 134 | + #- KN # Saint Kitts and Nevis |
| 135 | + #- KP # North Korea |
| 136 | + #- KR # South Korea |
| 137 | + #- KW # Kuwait |
| 138 | + #- KY # Cayman Islands |
| 139 | + #- KZ # Kazakhstan |
| 140 | + #- LA # Laos |
| 141 | + #- LB # Lebanon |
| 142 | + #- LC # Saint Lucia |
| 143 | + - LI # Liechtenstein |
| 144 | + #- LK # Sri Lanka |
| 145 | + #- LR # Liberia |
| 146 | + #- LS # Lesotho |
| 147 | + - LT # Lithuania |
| 148 | + - LU # Luxembourg |
| 149 | + - LV # Latvia |
| 150 | + #- LY # Libya |
| 151 | + #- MA # Morocco |
| 152 | + - MC # Monaco |
| 153 | + #- MD # Moldova |
| 154 | + #- ME # Montenegro |
| 155 | + #- MF # Saint Martin |
| 156 | + #- MG # Madagascar |
| 157 | + #- MH # Marshall Islands |
| 158 | + #- MK # North Macedonia |
| 159 | + #- ML # Mali |
| 160 | + #- MM # Myanmar |
| 161 | + #- MN # Mongolia |
| 162 | + #- MO # Macau |
| 163 | + #- MP # Northern Mariana Islands |
| 164 | + #- MQ # Martinique |
| 165 | + #- MR # Mauritania |
| 166 | + #- MS # Montserrat |
| 167 | + - MT # Malta |
| 168 | + #- MU # Mauritius |
| 169 | + #- MV # Maldives |
| 170 | + #- MW # Malawi |
| 171 | + #- MX # Mexico |
| 172 | + #- MY # Malaysia |
| 173 | + #- MZ # Mozambique |
| 174 | + #- NA # Namibia |
| 175 | + #- NC # New Caledonia |
| 176 | + #- NE # Niger |
| 177 | + #- NF # Norfolk Island |
| 178 | + #- NG # Nigeria |
| 179 | + #- NI # Nicaragua |
| 180 | + - NL # Netherlands |
| 181 | + - NO # Norway |
| 182 | + #- NP # Nepal |
| 183 | + #- NR # Nauru |
| 184 | + #- NU # Niue |
| 185 | + #- NZ # New Zealand |
| 186 | + #- OM # Oman |
| 187 | + #- PA # Panama |
| 188 | + #- PE # Peru |
| 189 | + #- PF # French Polynesia |
| 190 | + #- PG # Papua New Guinea |
| 191 | + #- PH # Philippines |
| 192 | + #- PK # Pakistan |
| 193 | + - PL # Poland |
| 194 | + #- PM # Saint Pierre and Miquelon |
| 195 | + #- PN # Pitcairn Islands |
| 196 | + #- PR # Puerto Rico |
| 197 | + #- PS # State of Palestine |
| 198 | + - PT # Portugal |
| 199 | + #- PW # Palau |
| 200 | + #- PY # Paraguay |
| 201 | + #- QA # Qatar |
| 202 | + #- RE # Réunion |
| 203 | + - RO # Romania |
| 204 | + #- RS # Serbia |
| 205 | + #- RU # Russia |
| 206 | + #- RW # Rwanda |
| 207 | + #- SA # Saudi Arabia |
| 208 | + #- SB # Solomon Islands |
| 209 | + #- SC # Seychelles |
| 210 | + #- SD # Sudan |
| 211 | + - SE # Sweden |
| 212 | + #- SG # Singapore |
| 213 | + #- SH # Saint Helena |
| 214 | + - SI # Slovenia |
| 215 | + #- SJ # Svalbard and Jan Mayen |
| 216 | + - SK # Slovakia |
| 217 | + #- SL # Sierra Leone |
| 218 | + #- SM # San Marino |
| 219 | + #- SN # Senegal |
| 220 | + #- SO # Somalia |
| 221 | + #- SR # Suriname |
| 222 | + #- SS # South Sudan |
| 223 | + #- ST # São Tomé and Príncipe |
| 224 | + #- SV # El Salvador |
| 225 | + #- SX # Sint Maarten |
| 226 | + #- SY # Syria |
| 227 | + #- SZ # Eswatini |
| 228 | + #- TC # Turks and Caicos Islands |
| 229 | + #- TD # Chad |
| 230 | + #- TF # French Southern and Antarctic Lands |
| 231 | + #- TG # Togo |
| 232 | + #- TH # Thailand |
| 233 | + #- TJ # Tajikistan |
| 234 | + #- TK # Tokelau |
| 235 | + #- TL # Timor-Leste |
| 236 | + #- TM # Turkmenistan |
| 237 | + #- TN # Tunisia |
| 238 | + #- TO # Tonga |
| 239 | + - TR # Turkey |
| 240 | + #- TT # Trinidad and Tobago |
| 241 | + #- TV # Tuvalu |
| 242 | + #- TW # Taiwan |
| 243 | + #- TZ # Tanzania |
| 244 | + - UA # Ukraine |
| 245 | + #- UG # Uganda |
| 246 | + #- UM # United States Minor Outlying Islands |
| 247 | + - US # United States # need for Let's Encrypt ? |
| 248 | + #- UY # Uruguay |
| 249 | + #- UZ # Uzbekistan |
| 250 | + #- VA # Vatican City |
| 251 | + #- VC # Saint Vincent and the Grenadines |
| 252 | + #- VE # Venezuela |
| 253 | + #- VG # British Virgin Islands |
| 254 | + #- VI # United States Virgin Islands |
| 255 | + #- VN # Vietnam |
| 256 | + #- VU # Vanuatu |
| 257 | + #- WF # Wallis and Futuna |
| 258 | + #- WS # Samoa |
| 259 | + #- YE # Yemen |
| 260 | + #- YT # Mayotte |
| 261 | + #- ZA # South Africa |
| 262 | + #- ZM # Zambia |
| 263 | + #- ZW # Zimbabwe |
| 264 | + # Blocklist of countries to block (ISO 3166-1 alpha-2) |
| 265 | + #blockedCountries: [ "RU", "CN", "KP" ] |
| 266 | + # Default allow indicates that if an IP is in neither block list nor allow lists, it should be allowed. |
| 267 | + defaultAllow: false |
| 268 | + # Allow requests from private / internal networks? |
| 269 | + allowPrivate: true |
| 270 | + # HTTP status code to return for disallowed requests (default: 403) |
| 271 | + disallowedStatusCode: 403 |
| 272 | + # Add CIDR to be whitelisted, even if in a non-allowed country |
| 273 | + #allowedIPBlocks: ["66.249.64.0/19"] |
| 274 | + # Add CIDR to be blacklisted, even if in an allowed country or IP block |
| 275 | + #blockedIPBlocks: ["66.249.64.5/32"] |
0 commit comments