waf icon indicating copy to clipboard operation
waf copied to clipboard

一些小疑问

Open stars-is-flying opened this issue 4 months ago • 0 comments

我注意到了你写的 WAF框架,是一个很不错, 很完整的框架, 我个人很喜欢,谢谢你把项目开源出来。 但是我有一些疑问。 1)HttpAPIAddress 这个部分的应该还没有实现, 还是说我的配置文件有问题。 2) UpstreamList = [ "127.0.0.1:8081", "127.0.0.1:8082" ] 这个部分的话案例来说应该是一个域名对应一个upstram吗, 不然的话, 你把请求轮流发给一个upstram 这个网站也只能支持一个功能的网站, 不能接入, 多类型网站, 因为每一个网站的接口都不一样的吧, 要是加一个 反向代理话可能会更好!

----------------------------------GATE---------------------------------------------------------- [gate]

Gate HTTP Listen Address

GateHttpAddress = "0.0.0.0:80"

Upstream Address, RoundRobin

UpstreamList = [ "127.0.0.1:8081", "127.0.0.1:8082" ]

WAF detection items

[wafrpc]

Detection switch: if false, all content is forwarded directly to upstream without sending to waf-server for monitoring;

true: process according to the Checklist rules;

CheckSwitch = true

[wafrpc.CheckList] # Hosts to be checked Include = [ "127.0.0.1:8081", "127.0.0.1:8082" ]

# Excluded Hosts
Exclude = []

# Whether to check hosts other than those in Include and Exclude
CheckDefault = true

[wafrpc.ServerAddr] # List of waf-server addresses; if there are multiple waf-servers, requests are load-balanced in a round-robin manner Address = ["127.0.0.1:8000"]

-----------------------------------------------------------WAF---------------------------------------------- [server]

WafServer Listen Address

WafServerAddress = "127.0.0.1:8000"

WafServer API Address

HttpAPIAddress = "127.0.0.1:8001"

stars-is-flying avatar Sep 05 '25 05:09 stars-is-flying