Skip to content

Docker container that blocks IPs from specified countries from accessing the host, by using `iptables`.

License

Notifications You must be signed in to change notification settings

dadatuputi/bwgc_countryblock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitwarden on Google Cloud Docker Image - Countryblock

Docker container that blocks IPs from specified countries from accessing the host, by using iptables. Used in the Bitwarden self-hosted on Google Cloud for Free project, however this image may be used stand-alone.

Container Requirements

  • Capabilities (cap_add):
    • NET_ADMIN
    • NET_RAW
  • privileged: true
  • network_mode: "host"

Environmental Variables

Environmental Variable Description
COUNTRIES Space separated list of countries' ISO 3166-1 alpha-2 code (e.g., CN HK AU)
COUNTRYBLOCK_SCHEDULE Cron expression for when to update the IP block list (e.g., 0 0 * * *)
TZ Timezone, optional

About

Docker container that blocks IPs from specified countries from accessing the host, by using `iptables`.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages