package
0.6.4
Repository: https://github.com/teaoslab/edgenode.git
Documentation: pkg.go.dev

# README

IPList

List Check Order:

Global List --> Node List--> Server List --> WAF List --> Bind List

# Functions

AllowIP 检查IP是否被允许访问 如果一个IP不在任何名单中,则允许访问.
AllowIPStrings 检查一组IP是否被允许访问.
No description provided by the author
IsInWhiteList 检查IP是否在白名单中.
NewActionManager 获取动作管理对象.
No description provided by the author
No description provided by the author
NewHTMLAction 获取新对象.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

所有IP.
IPv4.
IPv6.
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ActionManager 动作管理器定义.
No description provided by the author
FataError 是否是致命错误.
FirewalldAction Firewalld动作管理 常用命令: - 查询列表: firewall-cmd --list-all - 添加IP:firewall-cmd --add-rich-rule="rule family='ipv4' source address='192.168.2.32' reject" --timeout=30s - 删除IP:firewall-cmd --remove-rich-rule="rule family='ipv4' source address='192.168.2.32' reject" --timeout=30s.
HTMLAction HTML动作.
No description provided by the author
IPItem IP条目.
IPList IP名单 TODO IP名单可以分片关闭,这样让每一片的数据量减少,查询更快.
No description provided by the author
IPListManager IP名单管理.
IPSetAction IPSet动作 相关命令: - 利用Firewalld管理set: - 添加:firewall-cmd --permanent --new-ipset=edge_ip_list --type=hash:ip --option="timeout=0" - 删除:firewall-cmd --permanent --delete-ipset=edge_ip_list - 重载:firewall-cmd --reload - firewalld+ipset: firewall-cmd --permanent --add-rich-rule="rule source ipset='edge_ip_list' reject" - 利用IPTables管理set: - 添加:iptables -A INPUT -m set --match-set edge_ip_list src -j REJECT - 添加Item:ipset add edge_ip_list 192.168.2.32 timeout 30 - 删除Item: ipset del edge_ip_list 192.168.2.32 - 创建set:ipset create edge_ip_list hash:ip timeout 0 - 查看统计:ipset -t list edge_black_list - 删除set:ipset destroy edge_black_list.
IPTablesAction IPTables动作 相关命令: iptables -A INPUT -s "192.168.2.32" -j ACCEPT iptables -A INPUT -s "192.168.2.32" -j REJECT iptables -D INPUT ..
No description provided by the author
ScriptAction 脚本命令动作.
ServerListManager 服务相关名单.

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author