Hardrain
V2EX  ›  问与答

GeoIP+Firewall(IPTABLES, ufw, etc)的可行性

  •  
  •   Hardrain · Nov 8, 2017 · 3383 views
    This topic created in 3287 days ago, the information mentioned may be changed or developed.
    要屏蔽来自几个国家的访问。
    最初情况是暴力破解网站密码,然后用 mod_geoip 提供的环境变量判断,如果是那几个国家,就返回 403
    后来又开始暴力破解 SSH(尽管我设置了只能使用私钥登录)

    所以,可以不可以做到 GeoIP+防火墙?
    3 replies  •  2017-11-08 13:31:42 +08:00
    huangunic0rn
    huangunic0rn
    Nov 8, 2017 via Android
    1
    还不如设置 /etc/hosts.allow 和 deny
    julyclyde
    julyclyde
    Nov 8, 2017
    2
    iptables -I INPUT -j QUEUE
    然后你写一个处理 QUEUE 的程序就可以了
    faicker
    faicker
    Nov 8, 2017
    3
    iptables 有 geoip 模块
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   544 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 19:48 · PVG 03:48 · LAX 11:48 · JFK 14:48
    ♥ Do have faith in what you're doing.