特殊:Badtitle/NS100:Servers/DansGuardian:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Wikibot留言 | 贡献
无编辑摘要
Wikibot留言 | 贡献
无编辑摘要
 
第1行: 第1行:
{{From|https://help.ubuntu.com/community/Servers/DansGuardian}}
{{From|https://help.ubuntu.com/community/Servers/DansGuardian}}
{{Languages|UbuntuHelp:Servers/DansGuardian}}
{{Languages|UbuntuHelp:Servers/DansGuardian}}
DansGuardian Internet Content Filter Installation
[[UbuntuHelp:DansGuardian|DansGuardian]] Internet Content Filter Installation
== Introduction ==
== Introduction ==
This document describes the steps necessary to install and configure the DansGuardian Internet Content Filter system on Ubuntu Linux.  The goal of this document is to use GUI tools wherever possible.
This document describes the steps necessary to install and configure the [[UbuntuHelp:DansGuardian|DansGuardian]] Internet Content Filter system on Ubuntu Linux.  The goal of this document is to use GUI tools wherever possible.
== Install Tinyproxy ==
== Install Tinyproxy ==
DansGuardian relies on a separate web proxy server such as squid or tinyproxy to fetch webpages.  First we need to install the proxy.
[[UbuntuHelp:DansGuardian|DansGuardian]] relies on a separate web proxy server such as squid or tinyproxy to fetch webpages.  First we need to install the proxy.
Launch the Synaptic Package Manager from the "System" -> "Administration" menu.
Launch the Synaptic Package Manager from the "System" -> "Administration" menu.
We need to make sure that community open source packages are available. To do that under the menu "Settings" select "Repositories".  Make sure "Community maintained Open Source software (universe)" is selected.
We need to make sure that community open source packages are available. To do that under the menu "Settings" select "Repositories".  Make sure "Community maintained Open Source software (universe)" is selected.
第11行: 第11行:
Tinyproxy should now be installed.
Tinyproxy should now be installed.
== Install DansGuardian ==
== Install DansGuardian ==
Now we can install DansGuardian, again click "Search" from the tool menu and type "dansguardian".  Right-click on "dansguardian" and select "Mark for Installation".  Now click "Apply" on the tool menu. The installation will error because DansGuardian is not yet configured.
Now we can install [[UbuntuHelp:DansGuardian|DansGuardian]], again click "Search" from the tool menu and type "dansguardian".  Right-click on "dansguardian" and select "Mark for Installation".  Now click "Apply" on the tool menu. The installation will error because [[UbuntuHelp:DansGuardian|DansGuardian]] is not yet configured.
To configure DansGuardian, open a Terminal and type:
To configure [[UbuntuHelp:DansGuardian|DansGuardian]], open a Terminal and type:
<pre><nowiki>
<pre><nowiki>
gksudo gedit /etc/dansguardian/dansguardian.conf
gksudo gedit /etc/dansguardian/dansguardian.conf

2009年11月17日 (二) 20:35的最新版本

{{#ifexist: :Servers/DansGuardian/zh | | {{#ifexist: Servers/DansGuardian/zh | | {{#ifeq: {{#titleparts:Servers/DansGuardian|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Servers/DansGuardian|1|-1|}} | zh | | }}

DansGuardian Internet Content Filter Installation

Introduction

This document describes the steps necessary to install and configure the DansGuardian Internet Content Filter system on Ubuntu Linux. The goal of this document is to use GUI tools wherever possible.

Install Tinyproxy

DansGuardian relies on a separate web proxy server such as squid or tinyproxy to fetch webpages. First we need to install the proxy. Launch the Synaptic Package Manager from the "System" -> "Administration" menu. We need to make sure that community open source packages are available. To do that under the menu "Settings" select "Repositories". Make sure "Community maintained Open Source software (universe)" is selected. Now on the tool menu click Search and type "tinyproxy". Right-click on "tinyproxy" and select "Mark for Installation". Now click Apply on the tool menu. Tinyproxy should now be installed.

Install DansGuardian

Now we can install DansGuardian, again click "Search" from the tool menu and type "dansguardian". Right-click on "dansguardian" and select "Mark for Installation". Now click "Apply" on the tool menu. The installation will error because DansGuardian is not yet configured. To configure DansGuardian, open a Terminal and type:

gksudo gedit /etc/dansguardian/dansguardian.conf

Now comment out the line that says "UNCONFIGURED" by placing a '#' at the beginning of that line. Find the line that says "proxyport" and change the proxyport value to Tinyproxy's default port#, which is 8888. Note: the port is originally set to 3128 which is the default proxy port for squid proxy. An alternative to Tinyproxy. Instructions for setting this up are also in the Wiki, here https://help.ubuntu.com/community/SquidGuard, and it may be more suitable for network proxying Save the file and exit. Right-click on dansguardian in the Synaptic Package Manager again and select "Mark for Reinstallation". Click "Apply". Congratulations! Your machine should now be running a fully functional Internet Content Filter on port 8080. To test your filter, open your web browser and tell it to use localhost port 8080 as its HTTP proxy.