Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pretty66/iptables-web
golang开发的iptables web 管理程序
https://github.com/pretty66/iptables-web
go go-iptables iptables iptables-go iptables-management iptables-ui iptables-web
Last synced: 20 days ago
JSON representation
golang开发的iptables web 管理程序
- Host: GitHub
- URL: https://github.com/pretty66/iptables-web
- Owner: pretty66
- License: apache-2.0
- Created: 2022-04-03T11:52:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-22T04:12:20.000Z (8 months ago)
- Last Synced: 2024-11-14T12:03:02.632Z (29 days ago)
- Topics: go, go-iptables, iptables, iptables-go, iptables-management, iptables-ui, iptables-web
- Language: Go
- Homepage:
- Size: 738 KB
- Stars: 538
- Watchers: 15
- Forks: 91
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - pretty66/iptables-web - golang开发的iptables web 管理程序 (Go)
- awesome-ops - pretty66/iptables-web - 2.0|528|2022-04-03|2024-04-22 | 一个轻量级的 iptables Web 管理界面程序,支持二进制文件直接运行及 Docker 快速部署安装 | (iptables)
README
# iptables管理程序
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/pretty66/iptables-web)](https://github.com/pretty66/iptables-web/blob/master/go.mod)
### iptables-web是一个轻量级的iptables web管理界面程序,支持二进制文件直接运行及docker快速部署安装;整个程序打包完成后只有一个二进制文件,适合日常运维使用。
![web](./docs/iptables-web.png)## 目录
- [安装](#安装)
- [License](#License)## 安装
### docker部署安装(推荐)
以docker形式部署注意要加两个参数`--privileged=true`,`--net=host`以特权模式运行,可以管理宿主机iptables规则
```shell
docker run -d \
--name iptables-web \
--privileged=true \
--net=host \
-e "IPT_WEB_USERNAME=admin" \
-e "IPT_WEB_PASSWORD=admin" \
-e "IPT_WEB_ADDRESS=:10001" \
-p 10001:10001 \
pretty66/iptables-web:1.1.1
```
- `IPT_WEB_USERNAME`: 网页认证用户名,默认:admin
- `IPT_WEB_PASSWORD`: 网页认证密码,默认:admin
- `IPT_WEB_ADDRESS`: 程序监听地址地址,默认:10001### 直接安装
```shell
git clone https://github.com/pretty66/iptables-web.git
cd iptables-web
make
# 直接运行
./iptables-server -a :10001 -u admin -p admin
# 后台运行
nohup ./iptables-server -a :10001 -u admin -p admin > /dev/null 2>&1 &
```### License
iptables-web is under the Apache 2.0 license. See the [LICENSE](./LICENSE) directory for details.