Add switch to output as NGINX rule
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
The issue gives a working pipeline: it greps the generated ipset/*-ipset-*.sh scripts for lines containing -A, takes field 4 (the CIDR), and formats each as deny <cidr>;. Start by reading one generated ipset script to confirm that layout, then find the generator that writes those scripts. Done means the scripts can emit the same NGINX deny lines through a switch, with no separate grep/awk/sed step. The issue does not name the switch or the output file, so check the maintainers' preference before choosing either.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I can convert the output of the ipset scripts into the format of an NGINX deny rule with this command:
cat ipset/*-ipset-20260628.sh | grep " -A" | awk '{ print $4 }' | sed 's/^/deny /g;s/$/;/g'
Adding the output of that command to part of the NGINX config would deny traffic to those CIDR addresses from the web server layer.
It would be nice if the user could easily modify the script to provide that output without needing to run a secondary command.
- Ngôn ngữ chính
- Shell
- Star
- 7
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TechnologyClassroom/firewallblockgen
-
asn-to-ipset-script.sh enhancement help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
TechnologyClassroom/firewallblockgen#17 · 1 bình luận ·
-
documentation enhancement ua-s-a-d.sh
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 55/100
-
Refactor similar scripts.Đang mởenhancement help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
-
Add support for nftablesĐang mởenhancement help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
-
asn-to-ipset-script.sh cc-to-ipset-script.sh enhancement help wanted ip-to-ipset-script.sh
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 35/100
Tất cả issue của TechnologyClassroom/firewallblockgen
Issue tương tự
-
security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
btclib-org/portanode#985 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
omarchy-restart-shell fails with "notification service did not become ready" on slow CPUs (2s wait)Có thể đã có người làm @stevederico đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
omacom/omarchy#19627 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
source-control: ExitWorktree remove no longer deletes another running session's worktree (2.1.330)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
melodic-software/claude-code-plugins#17829 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bench/api.sh exec test fails with curl exit 52, and --ignore-failure still records the timingsĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
libracoder/kiri#669 ·
Maintainer thường phản hồi trong vòng 1 ngày