成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

Linux服務器中DansGuardian的安裝配置方法-創(chuàng)新互聯(lián)

這篇文章主要介紹“Linux服務器中DansGuardian的安裝配置方法”,在日常操作中,相信很多人在Linux服務器中DansGuardian的安裝配置方法問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”Linux服務器中DansGuardian的安裝配置方法”的疑惑有所幫助!接下來,請跟著小編一起來學習吧!

網(wǎng)站建設哪家好,找成都創(chuàng)新互聯(lián)!專注于網(wǎng)頁設計、網(wǎng)站建設、微信開發(fā)、成都小程序開發(fā)、集團企業(yè)網(wǎng)站建設等服務項目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了閩清免費建站歡迎大家使用!

DansGuardian

DansGuardian可以限制客戶端的訪問,通過這個軟件,我們可以限制哪些網(wǎng)站不可以訪問、哪些內(nèi)容不能下載。

1、下載DansGuardian,提供一個網(wǎng)址http://www.rpmfind.net/linux/RPM/dag/redhat/el5/i386/dansguardian-2.8.0.6-1.2.el5.rf.i386.html

2、安裝

[root@localhost   wj]# rpm -ivh   dansguardian-2.8.0.6-1.2.el5.rf.i386.rpm

warning:   dansguardian-2.8.0.6-1.2.el5.rf.i386.rpm: Header V3 DSA/SHA1 Signature, key   ID 6b8d79e6: NOKEY

Preparing...                  ########################################### [100%]

   1:dansguardian             ########################################### [100%]

3、修改配置文件“/etc/dansguardian/dansguardian.conf”,搜索“filterport”將端口改為8088。默認是8080,和tomcat沖突。關于proxyport端口,使用的是proxy服務器端口,默認3128,如果你修改了proxy的端口,那么這里也要改成對應的端口。

[root@localhost   wj]# gedit   /etc/dansguardian/dansguardian.conf

# the port that   DansGuardian listens to.

filterport = 8088

4、配置防火墻,打開tcp的8088端口

[root@localhost   wj]# gedit /etc/sysconfig/iptables

 -A INPUT -m state --state NEW   -m tcp -p tcp --dport 8088 -j ACCEPT

[root@localhost   wj]# service iptables restart

iptables:將鏈設置為政策   ACCEPTfilter nat                [確定]

iptables:清除防火墻規(guī)則:                                 [確定]

iptables:正在卸載模塊:                                   [確定]

iptables:應用防火墻規(guī)則:                                 [確定]

iptables:載入額外模塊:nf_conntrack_ftp                   [確定]

5、啟動服務

[root@localhost   wj]# service dansguardian start

正在關閉 Web   Content Filter (dansguardian)               [確定]

啟動 Web   Content Filter (dansguardian)                   [確定]

6、修改客戶端的代理設置,將代理端口改成dansguardian的端口8088,然后去百度一些內(nèi)容,不良的網(wǎng)站就被屏蔽了。注意,這里端口必須修改,不可以使用3128. 

     Linux服務器中DansGuardian的安裝配置方法

     Linux服務器中DansGuardian的安裝配置方法

7、增加過濾網(wǎng)址。

1)修改配置文件“/etc/dansguardian/bannedsitelist”,在后面追加要過濾的網(wǎng)址。重啟服務

[root@localhost   wj]# gedit   /etc/dansguardian/bannedsitelist

# You will need   to edit to add and remove categories you want

news.baidu.com

 

[root@localhost   wj]# service dansguardian restart

正在關閉 Web   Content Filter (dansguardian)               [確定]

啟動 Web   Content Filter (dansguardian)                   [確定]

2)客戶端訪問百度新聞

Linux服務器中DansGuardian的安裝配置方法

8、過濾關鍵字

1)修改配置文件“/etc/dansguardian/bannedphraselist”,在后面追加要過濾的網(wǎng)址。重啟服務

[root@localhost   wj]# gedit   /etc/dansguardian/bannedphraselist

# To block any   page with words that contain the string "sex". (ie. sexual)

<sex>

 

[root@localhost   wj]# service dansguardian restart

正在關閉 Web   Content Filter (dansguardian)               [確定]

啟動 Web   Content Filter (dansguardian)                   [確定]

2)使用客戶端瀏覽器搜索sex,發(fā)現(xiàn)網(wǎng)頁打不開

Linux服務器中DansGuardian的安裝配置方法

Linux服務器中DansGuardian的安裝配置方法

9、過濾下載內(nèi)容

1)修改配置文件“/etc/dansguardian/bannedextentsionlist”,里面默認已經(jīng)有很多被禁止下載的格式了,如果要去掉某個限制,在前面加#

[root@localhost   wj]# gedit /etc/dansguardian/bannedextentsionlist

#Banned extension   list

.ade  # Microsoft Access project extension

.adp  # Microsoft Access project

.asx  # Windows Media Audio / Video

.bas  # Microsoft Visual Basic class module

.bat  # Batch file

.cab  # Windows setup file

.chm  # Compiled HTML Help file

.cmd  # Microsoft Windows NT Command script

 

[root@localhost   wj]# service dansguardian restart

正在關閉 Web   Content Filter (dansguardian)               [確定]

啟動 Web   Content Filter (dansguardian)                   [確定]

2)使用客戶端瀏覽器下載一個文件

      Linux服務器中DansGuardian的安裝配置方法

10、查看日志??梢酝ㄟ^日志文件“/var/log/dansguardian/access.log”來分析當前哪些內(nèi)容被攔截了。

[root@localhost   wj]# gedit   /var/log/dansguardian/access.log

Sella&utm_term=wkjxxx0913   *DENIED* 禁止的文件擴展名: .exe GET 0

2018.8.15   16:29:07 - 192.168.0.112 http://xiazai.mindmanager.cc/favicon.ico  GET 345

2018.8.15 16:30:28   192.168.0.112 

http://trackercdn.kugou.com/i/v2/?cmd=26&pid=4&authType=1&hash=1319C71BC5CBF32EF1495CECDA23AF24&key=b1e358948cb6ce56a6c37cc88f408419&behavior=play&

module=&appid=1155&mid=bc7ba9731b77d3e10d329f751e774f1c&userid=0&token=&version=2.6.4&vipType=0&album_id=517209  GET 318

到此,關于“Linux服務器中DansGuardian的安裝配置方法”的學習就結束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學習,快去試試吧!若想繼續(xù)學習更多相關知識,請繼續(xù)關注創(chuàng)新互聯(lián)-成都網(wǎng)站建設公司網(wǎng)站,小編會繼續(xù)努力為大家?guī)砀鄬嵱玫奈恼拢?/p>

網(wǎng)頁標題:Linux服務器中DansGuardian的安裝配置方法-創(chuàng)新互聯(lián)
瀏覽路徑:http://jinyejixie.com/article22/dehijc.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供軟件開發(fā)、電子商務、網(wǎng)站營銷、企業(yè)網(wǎng)站制作響應式網(wǎng)站微信小程序

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

外貿(mào)網(wǎng)站建設
江城| 昂仁县| 纳雍县| 乌兰县| 迭部县| 江门市| 股票| 南充市| 满城县| 天门市| 宁明县| 博湖县| 新源县| 滦南县| 礼泉县| 栾城县| 林芝县| 连州市| 洞头县| 蒙自县| 樟树市| 石家庄市| 和龙市| 正镶白旗| 绥滨县| 二手房| 成武县| 台安县| 白水县| 通榆县| 余干县| 师宗县| 马公市| 厦门市| 秭归县| 江达县| 尉犁县| 西青区| 育儿| 农安县| 固镇县|