Compare commits
No commits in common. "master" and "v1.0.4" have entirely different histories.
1 changed files with 0 additions and 40 deletions
40
README.md
40
README.md
|
|
@ -1,40 +0,0 @@
|
|||
|
||||
このプロジェクトは、iptablesのルールを編集するためのスクリプトです。以下が使用方法とライセンス情報です。
|
||||
|
||||
---
|
||||
|
||||
### 概要
|
||||
このツールは、`iptables`のルールを編集する際のスクリプトであり、一時ファイルを作成し、エディタでルールを編集する処理を含みます。
|
||||
|
||||
---
|
||||
|
||||
### 使用方法
|
||||
1. **ルールの編集**
|
||||
```bash
|
||||
ipf 11434:10.1.1.2:11434 # Forward local port 11434 to 10.1.1.2:11434
|
||||
ipf -L # List all rules with numbers
|
||||
ipf -d 1 # Delete rule number 1
|
||||
ipf -d 1 -q # Delete rule number 1 (quiet mode)
|
||||
ipf -v # Show current iptables rules by iptables-save
|
||||
ipf -e # Edit all rules in editor and restore
|
||||
```
|
||||
ipf -e で一時ファイルが作成され、エディタ(例: `nano`)でルールを編集できます。編集が完了した後、一時ファイルは自動的に削除されます [1]。
|
||||
|
||||
2. **バージョン情報の表示**
|
||||
```bash
|
||||
ipf --version # Show version information
|
||||
```
|
||||
これにより、ソフトウェアのバージョンとライセンス情報が表示されます [1]。
|
||||
|
||||
---
|
||||
|
||||
### ライセンス
|
||||
MIT License に基づくライセンスです。
|
||||
**権利者**: krasherjoe
|
||||
**日付**: 2025-10-26
|
||||
|
||||
---
|
||||
|
||||
### 補足
|
||||
このスクリプトは、`qwen3/gpt-oss/gemini-2.5-pro`と`krasherjoe`によって作成されました。
|
||||
AIにリファクタさせたら原型を留めないのが良いのか悪いのか謎。
|
||||
Loading…
Reference in a new issue