9394952

导航

随笔分类 -  nginx

centos里的openrestry笔记
摘要:参考文档:https://www.cnblogs.com/cheyunhua/p/13395745.html 1、openrestry配置 功能控制在:/usr/local/openrestry/nginx/conf/waf/config.lua 过滤参数在:/usr/local/openrestr 阅读全文

posted @ 2023-06-27 16:30 9394952 阅读(156) 评论(0) 推荐(0)

使用开源WAF软件openresty笔记
摘要:先记号参考文档: https://www.cnblogs.com/cheyunhua/p/13395745.html https://blog.csdn.net/chuanxincui/article/details/86089763 阅读全文

posted @ 2023-03-09 09:52 9394952 阅读(28) 评论(0) 推荐(0)

给NGINX添加几个常用的安全选项
摘要:add_header X-XSS-Protection 1; add_header X-Frame-Options SAMEORIGIN always; add_header X-Content-Type-Options 'nosniff'; add_header Referrer-Policy " 阅读全文

posted @ 2022-10-10 10:58 9394952 阅读(3653) 评论(0) 推荐(0)

稍为改写了下DropBrute用于IPV6检测nginx的access_log
摘要:#!/bin/sh # # DropBrute.sh @20130516 # # minimalist OpenWRT/dropbear ssh brute force attack banning script # # Installation steps: # # 1) Optionally e 阅读全文

posted @ 2020-12-16 13:59 9394952 阅读(141) 评论(0) 推荐(0)

懒人安装nginx-all-modules
摘要:本想测试一下开源WAF,看了文章要用到nginx-lua模块,一般情况下nginx加模块需要手工编译源代码,对于懒人来说,手工编译是什麻烦事,所以就放狗找现在nginx-all-modules的rpm去了 找到一篇参考文章: https://centos.pkgs.org/7/epel-armhfp 阅读全文

posted @ 2020-12-15 11:14 9394952 阅读(2091) 评论(0) 推荐(0)

nginx笔记
摘要:1、直接返回来访IP location /ip { default_type text/plain; return 200 $remote_addr; } 2、流转发及写日志、开启websocket: log_format stream '$remote_addr ($remote_user) $t 阅读全文

posted @ 2019-12-13 10:56 9394952 阅读(85) 评论(0) 推荐(0)

把nginx当完全tcp端口转发器
摘要:在nginx.conf里加入stream { server { listen 18443; proxy_pass 58.xxx.xxx.xxx:8443; }}centos7中yum安装的ngixn其实是带stream模块的,但... 阅读全文

posted @ 2019-03-09 21:45 9394952 阅读(362) 评论(0) 推荐(0)