Add switch to only block web ports
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- bash
- Lĩnh vực
- networking, security
Hướng nghiên cứu
Start in cc-to-ipset-script.sh, where the issue says a commented-out section already contains the iptables rule syntax for blocking. Read how the script parses its arguments, then see how the active block rule is built. The change is an optional -w flag that switches the rule to match only TCP ports 80 and 443. Done means that running the script with -w produces rules limited to those ports, and running it without the flag behaves as before. No tests are mentioned, so verify by inspecting the generated rules.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
A commented out section of cc-to-ipset-script.sh has the iptables syntax. Ideally a switch such as -w could be added to these scripts to optionally change them from completely blocking a group of IPs to only blocking them from hitting the common web ports 80 and 443.
This would not disrupt mail or other ports from being used.
Example of how it could be run:
bash cc-to-ipset-script.sh -w
- 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