Add switch to only block web ports

オープン
#16 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
bash

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Shell
スター
7
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TechnologyClassroom/firewallblockgen のほかの issue

TechnologyClassroom/firewallblockgen の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。