User Tools

Site Tools


wiki:geoblock_country_bash_script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:geoblock_country_bash_script [2020/12/04 16:11] – created antisawiki:geoblock_country_bash_script [2021/07/15 15:35] (current) – add setup shorewall antisa
Line 1: Line 1:
-{{tag>[bash scripts networking]}}+{{tag>bash scripts networking firewall}}
  
 ====== Geoblock country bash script ====== ====== Geoblock country bash script ======
 ===== Install prerequisites ===== ===== Install prerequisites =====
-  apt install ipset aggregate+  apt install ipset aggregate shorewall 
 + 
 +===== Setup shorewall ===== 
 +Simple interface tutorial https://shorewall.org/standalone.htm
  
 ===== Install and start ipset script ===== ===== Install and start ipset script =====
Line 55: Line 58:
   cat <<EOF >/etc/shorewall/started   cat <<EOF >/etc/shorewall/started
   #!/bin/bash   #!/bin/bash
 +  
   /usr/local/sbin/ipset-geoblock-country.sh &   /usr/local/sbin/ipset-geoblock-country.sh &
   EOF   EOF
wiki/geoblock_country_bash_script.1607094695.txt.gz · Last modified: 2020/12/04 16:11 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki