nexryai / lance-light

Yet another human-friendly firewall
https://lance.sda1.net/
MIT License
12 stars 0 forks source link

ipのリストを扱えるようにする #10

Closed nexryai closed 1 year ago

nexryai commented 1 year ago
ipset:
   hoge:
        - 0.0.0.0
        - 1.1.1.1
   fuge:
        - 2.2.2.2
        - 3.3.3.3

みたいに設定してルールを簡素化できるようにする

nexryai commented 1 year ago

現状内部的にCloudflareのIPをipsetとして扱っているが、render.GenIpDefineRules()を拡張してカスタムipリスト、AbuseIPDBや国別IPのリストもipsetとして扱うようにすれば

し良さそう。