国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Linux > 正文

linux中編譯Nginx支持Tcp_wrappers方法介紹

2024-08-27 23:55:31
字體:
來源:轉載
供稿:網友
  linux中編譯Nginx支持Tcp_wrappers的配置方法不簡單,自己測試了很久沒有成功,后來看到此文章后得己解決了,下面整理一下與各位參考.
 
  Tcp wrappers:Transmission Control Protocol (TCP) Wrappers 為由 inetd 生成的服務提供了增強的安全性。TCP Wrappers 是一種對使用 /etc/inetd.sec 的替換方法。TCP Wrappers 提供防止主機名和主機地址欺騙的保護。欺騙是一種偽裝成有效用戶或主機以獲得對系統進行未經授權的訪問的方法。
 
  1、重新編譯Nginx,代碼如下:
 
  [root@ipython nginx-1.6.1]# tar zxf ../ngx_tcpwrappers.tar.gz -C ./
  [root@ipython nginx-1.6.1]# ./configure --prefix=/software/nginx --user=nginx --group=nginx --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --with-http_gzip_static_module --with-google_perftools_module --with-debug --http-client-body-temp-path=/var/tmp/nginx/client --http-proxy-temp-path=/var/tmp/nginx/proxy --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi --http-scgi-temp-path=/var/tmp/nginx/scgi --with-pcre=/root/pcre-8.35 --with-openssl=/root/openssl-1.0.1i --with-zlib=/root/zlib-1.2.8 --add-module=./ngx_tcpwrappers  --phpfensi.com
  [root@ipython nginx-1.6.1]# sed -i s'#CFLAGS =  -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror#CFLAGS =  -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -g#' objs/Makefile  
  ####不要make install 哦,編譯好即可####
  [root@ipython nginx-1.6.1]# make
  
  2、Tcp_warppers 模塊指令:
 
  ###ngx_Tcp_wrappers 配置指令###
 
  1、tcpwrappers_daemon
 
  語法:tcpwrappers_daemon name
 
  默認值:tcpwrappers_daemon nginx
 
  作用域:http,server,location,limit_except
 
  描述:該名字的定義用于在/etc/hosts.[allow|deny]識別

  2、tcpwrappers
 
  語法:tcpwrappers [on|off]
 
  默認值:tcpwrappers off
 
  作用域:http,server,location,limit_except
 
  描述:模塊的開關,開啟則使用TCP Wrappers 進行訪問控制,關閉以避免浪費性能.

  3、tcpwrappers_thorough
 
  語法:tcpwrappers_thorough [on|off]
 
  默認值:tcpwrappers_thorough off
 
  作用域:http,server,location,limit_except
 
  描述:基于hosts.ctl以檢查使用IP地址、用戶名、反向DNS解析,模塊的開發者也未提供詳細的使用說明.
 
 

(編輯:武林網)

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 古丈县| 昌图县| 邛崃市| 德庆县| 武定县| 阳谷县| 天峻县| 朝阳市| 龙井市| 依安县| 卓资县| 松桃| 菏泽市| 大兴区| 四川省| 望都县| 遵义县| 宁城县| 抚州市| 洛南县| 阳曲县| 山东省| 海丰县| 凌云县| 平顺县| 大丰市| 武夷山市| 临邑县| 临泉县| 萝北县| 遂宁市| 内乡县| 新民市| 新竹市| 抚宁县| 辽中县| 贺兰县| 醴陵市| 平南县| 临汾市| 库尔勒市|