Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iptables管理程序

License GitHub go.mod Go version

iptables-web是一个轻量级的iptables web管理界面程序,支持二进制文件直接运行及docker快速部署安装;整个程序打包完成后只有一个二进制文件,适合日常运维使用。

web

目录

直接编译

git clone https://github.com/iCloudBot/iptables-web.git
or
git clone https://gitee.com/CloudBot/iptables-web.git

方式1

cd iptables-web

docker run --rm -it -v $(pwd):/build golang:1.17.8 \
	bash -c "cd /build && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o iptables-server ."

方式2

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 &

镜像一键制作

docker build -t iptables-web .

安装

docker部署安装(推荐)

以docker形式部署注意要加两个参数--privileged=true,--net=host以特权模式运行,可以管理宿主机iptables规则

  • IPT_WEB_USERNAME: 网页认证用户名,默认:admin
  • IPT_WEB_PASSWORD: 网页认证密码,默认:admin
  • IPT_WEB_ADDRESS: 程序监听地址地址,默认:10001
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

License

iptables-web is under the Apache 2.0 license. See the LICENSE directory for details.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages