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

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:geoblock_country_bash_script [2021/01/11 14:10] – add firewall tag antisawiki:geoblock_country_bash_script [2021/07/15 15:35] (current) – add setup shorewall antisa
Line 3: Line 3:
 ====== 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.1610370634.txt.gz · Last modified: 2021/01/11 14:10 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