特殊:Badtitle/NS100:Servers/DansGuardian:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第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的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Servers/DansGuardian }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/af | • {{#if: UbuntuHelp:Servers/DansGuardian|Afrikaans| [[::Servers/DansGuardian/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/ar | • {{#if: UbuntuHelp:Servers/DansGuardian|العربية| [[::Servers/DansGuardian/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/az | • {{#if: UbuntuHelp:Servers/DansGuardian|azərbaycanca| [[::Servers/DansGuardian/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/bcc | • {{#if: UbuntuHelp:Servers/DansGuardian|جهلسری بلوچی| [[::Servers/DansGuardian/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/bg | • {{#if: UbuntuHelp:Servers/DansGuardian|български| [[::Servers/DansGuardian/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/br | • {{#if: UbuntuHelp:Servers/DansGuardian|brezhoneg| [[::Servers/DansGuardian/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/ca | • {{#if: UbuntuHelp:Servers/DansGuardian|català| [[::Servers/DansGuardian/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/cs | • {{#if: UbuntuHelp:Servers/DansGuardian|čeština| [[::Servers/DansGuardian/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/de | • {{#if: UbuntuHelp:Servers/DansGuardian|Deutsch| [[::Servers/DansGuardian/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/el | • {{#if: UbuntuHelp:Servers/DansGuardian|Ελληνικά| [[::Servers/DansGuardian/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/es | • {{#if: UbuntuHelp:Servers/DansGuardian|español| [[::Servers/DansGuardian/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/fa | • {{#if: UbuntuHelp:Servers/DansGuardian|فارسی| [[::Servers/DansGuardian/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/fi | • {{#if: UbuntuHelp:Servers/DansGuardian|suomi| [[::Servers/DansGuardian/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/fr | • {{#if: UbuntuHelp:Servers/DansGuardian|français| [[::Servers/DansGuardian/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/gu | • {{#if: UbuntuHelp:Servers/DansGuardian|ગુજરાતી| [[::Servers/DansGuardian/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/he | • {{#if: UbuntuHelp:Servers/DansGuardian|עברית| [[::Servers/DansGuardian/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/hu | • {{#if: UbuntuHelp:Servers/DansGuardian|magyar| [[::Servers/DansGuardian/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/id | • {{#if: UbuntuHelp:Servers/DansGuardian|Bahasa Indonesia| [[::Servers/DansGuardian/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/it | • {{#if: UbuntuHelp:Servers/DansGuardian|italiano| [[::Servers/DansGuardian/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/ja | • {{#if: UbuntuHelp:Servers/DansGuardian|日本語| [[::Servers/DansGuardian/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/ko | • {{#if: UbuntuHelp:Servers/DansGuardian|한국어| [[::Servers/DansGuardian/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/ksh | • {{#if: UbuntuHelp:Servers/DansGuardian|Ripoarisch| [[::Servers/DansGuardian/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/mr | • {{#if: UbuntuHelp:Servers/DansGuardian|मराठी| [[::Servers/DansGuardian/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/ms | • {{#if: UbuntuHelp:Servers/DansGuardian|Bahasa Melayu| [[::Servers/DansGuardian/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/nl | • {{#if: UbuntuHelp:Servers/DansGuardian|Nederlands| [[::Servers/DansGuardian/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/no | • {{#if: UbuntuHelp:Servers/DansGuardian|norsk| [[::Servers/DansGuardian/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/oc | • {{#if: UbuntuHelp:Servers/DansGuardian|occitan| [[::Servers/DansGuardian/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/pl | • {{#if: UbuntuHelp:Servers/DansGuardian|polski| [[::Servers/DansGuardian/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/pt | • {{#if: UbuntuHelp:Servers/DansGuardian|português| [[::Servers/DansGuardian/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/ro | • {{#if: UbuntuHelp:Servers/DansGuardian|română| [[::Servers/DansGuardian/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/ru | • {{#if: UbuntuHelp:Servers/DansGuardian|русский| [[::Servers/DansGuardian/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/si | • {{#if: UbuntuHelp:Servers/DansGuardian|සිංහල| [[::Servers/DansGuardian/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/sq | • {{#if: UbuntuHelp:Servers/DansGuardian|shqip| [[::Servers/DansGuardian/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/sr | • {{#if: UbuntuHelp:Servers/DansGuardian|српски / srpski| [[::Servers/DansGuardian/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/sv | • {{#if: UbuntuHelp:Servers/DansGuardian|svenska| [[::Servers/DansGuardian/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/th | • {{#if: UbuntuHelp:Servers/DansGuardian|ไทย| [[::Servers/DansGuardian/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/tr | • {{#if: UbuntuHelp:Servers/DansGuardian|Türkçe| [[::Servers/DansGuardian/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/vi | • {{#if: UbuntuHelp:Servers/DansGuardian|Tiếng Việt| [[::Servers/DansGuardian/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/yue | • {{#if: UbuntuHelp:Servers/DansGuardian|粵語| [[::Servers/DansGuardian/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/zh | • {{#if: UbuntuHelp:Servers/DansGuardian|中文| [[::Servers/DansGuardian/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/zh-hans | • {{#if: UbuntuHelp:Servers/DansGuardian|中文(简体)| [[::Servers/DansGuardian/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Servers/DansGuardian | UbuntuHelp:Servers/DansGuardian | {{#if: | :}}Servers/DansGuardian}}/zh-hant | • {{#if: UbuntuHelp:Servers/DansGuardian|中文(繁體)| [[::Servers/DansGuardian/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Servers/DansGuardian|:Servers/DansGuardian|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#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.