?????Linux???????????????????
???????????? ???????[ 2016/1/4 10:50:25 ] ?????????????? Linux
???????????????????????????
???????xt_geoip????GeoIP????????????????????????iptables?????е?geoip?????
????$ sudo iptables -m geoip --src-cc country[??country...] --dst-cc country[??country...]
????????????????????????ISO3166????????????????US(????)??CN(?й?)??IN(???)??FR(????)??
????????????????????????????(YE)???????(ZM)??????????????????iptables??????????
????$ sudo iptables -I INPUT -m geoip --src-cc YE??ZM -j DROP
???????????????????й?(CN)??????????????????????????
????$ sudo iptables -A OUTPUT -m geoip --dst-cc CN -j DROP
?????????????????“????”??????“!”????“–src-cc”??“–dst-cc”????檔???????
??????????????????????????з???????????????????????????????
????$ sudo iptables -I INPUT -m geoip ! --src-cc US -j DROP
???????Firewall-cmd???
??????CentOS/RHEL 7??Fedora???Щ???а????iptables????firewalld????????????????????????????????????????????xt_geoip?????firewall-cmd??????????????????????????firewall-cmd????д???????????
????$ sudo firewall-cmd --direct --add-rule ipv4 filter INPUT 0 -m geoip --src-cc YE??ZM -j DROP
????$ sudo firewall-cmd --direct --add-rule ipv4 filter OUTPUT 0 -m geoip --dst-cc CN -j DROP
????$ sudo firewall-cmd --direct --add-rule ipv4 filter INPUT 0 -m geoip ! --src-cc US -j DROP
??????????
?????????????н?????iptables/xt_geoip??????????????????????????/???????????????????й??????????????????????????????????????????????С???????????????????????GeoIP??????????????????????????????Щ???????????????GeoIP?????????????/??????????????VPN??Tor???κ????Σ?????м???????????????????/???????????????????????????????????????????????????????????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11