Add switch to only block web ports

Đang mở
#16 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ả

asn-to-ipset-script.sh cc-to-ipset-script.sh enhancement good first issue help wanted ip-to-ipset-script.sh

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TechnologyClassroom/firewallblockgen

Tất cả issue của TechnologyClassroom/firewallblockgen

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.