Coder Social home page Coder Social logo

pretty66 / iptables-web Goto Github PK

View Code? Open in Web Editor NEW
496.0 15.0 79.0 756 KB

golang开发的iptables web 管理程序

License: Apache License 2.0

Dockerfile 0.72% Makefile 1.04% Go 50.85% HTML 47.40%
iptables iptables-ui iptables-web go iptables-management iptables-go go-iptables

iptables-web's Introduction

iptables管理程序

License GitHub go.mod Go version

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

web

目录

安装

docker部署安装(推荐)

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

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

直接安装

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 directory for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.