Skip to content

tianguyin/webproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

轻量反向代理服务器

Commands:
  proxy      Run the proxy server
       --server_port  设置监听端口(必须,否则无法启动)
       --proxy_port   设置代理端口(必须,否则无法启动)
       --proxy_ip     设置代理ip(非必须,默认为127.0.0.1)
       --log_mode     设置日志模式默认 cli(仅仅控制台打印) save(保存到指定路径文件)
       --log_path     设置日志文件路径(如果log_mode为save则必须要填,反之则一定不要填写)
       --waf_rules    设置waf规则文件路径(非必须,不填写则不启动waf功能)
  -V, --version   Show the CLI version
  -h, --help      Show this help message

waf_rules

low:
  allow:
    agent:
      - ".*"
    body:
      - ".*"
    url:
      - ".*"
  disallow:
    agent:
      - "curl"
    body:
      - "test"
      - "malicious"
    url:
      - "/api/restricted"
high:
  disallow:
    agent:
    body:
    url:
  allow:
    agent:
    url:
    body:
      - "testhight"

waf高级规则

当low中disallow 关键词时 但是high中allow包含包含关键词的规则按照high中allow

log日志规则

cli模式仅打印日志,save模式一定要指定log_path的路径

About

轻量级反向代理服务器

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages