SlideShare una empresa de Scribd logo
1 de 4
Descargar para leer sin conexión
“RODITELJSKI NADZOR” PRISTUPA WEBU POMOĆU
                 DANSGUARDIANA I SQUIDA
                                        Oliver Buček, prof.

                                           OŠ Breg - Ptuj

                                    oliver.bucek@guest.arnes.si

                                          +386 40 751 872

                                               Sažetak
Danas postoji mnogo korisnih alata za filtriranje i nadzor koji mogu učinkovito spriječiti djeci pristup
do nepoželjnih web sadržaja. Filtriranje internet prometa se koristi u školama, knjižnicama i kod kuće
sa željom zaštite djece od neželjenih internet sadržaja. U članku želim pokazati primjer upotrebe
otvorenog/slobodnog koda na Linux sistemu upotrebom Dansguardiana in Squid proxy servera i
instalaciju Squida kao transparentnog proxy servera koji preusmjerava mrežni promet na novu
lokaciju bez znanja korisnika. Iz tog razloga, u pregledniku nije potrebno ručno konfigurirati proxy.
    1. O tako Dansguardianu i Squidu
Širenje interneta i upotreba novih tehnologija iz mjeseca u mjesec izrazito raste. Osim toga
postoje razne opasnosti i zloupotrebe informacijsko komunikacijske tehnologije gdje su
najviše ranjiva upravo djeca. Sve to omogućava pojavljivanje novih načina zloupotrebe. Za
bolje korištenje internetnih mogućnosti potrebne su mjere sigurnosti, koje potiču sigurnu
upotrebu i štite korisnike od neželjenih sadržaja.
Internet je postao neophodan alat kako na poslu, u školi i kod kuće. Opasnosti upotrebe nove
tehnologije nisu samo vezane za viruse i spam, već i na štetne i ilegalne sadržaje, kao što su,
na primjer dječja pornografija, govori mržnje, nasilni sadržaji, zloupotreba osobnih podataka
...
Osnovni korak zaštite je da u web-pregledniku konfiguriramo stupanj propusnosti za određene
sadržaje, kako bi se djeci spriječio pristup nepoželjnim web sadržajima (npr. pornografiji).
U članku je opisan postupak instalacije i konfiguracije paketa Dansguardian i Squid.
DansGuardian je sustav za “roditeljski nadzor” pristupa webu. Omogućuje antivirusno real-
time skeniranje internet prometa, a osim toga radi i kao content filter (filtriranje web stranica
sa pornografskim, drugs i ostalim nedozvoljenim sadržajem). Radi na Linux, FreeBSD,
OpenBSD, NetBSD, Mac OS X i Solaris. Filtrira stvarni sadržaj stranica na temelju mnogih
metoda, uključujući podudaranje izraza, filtriranje slika i URL filtriranje.
Squid Proxy Server je aplikacija koja prosljeđuje promet između zaštićene mreže i interneta.
    2. Postupak instalacije
Prevjerimo dali je „universe repository“ aktiviran na to moderniziramo pakete
sudo apt-get update

Namjestimo pakete dansguardian in squid.

sudo apt-get install dansguardian squid
Napravimo firewall skriptu.

sudo gedit /etc/init.d/firewall.sh

U firewall skriptu dodamo sljedeće linije.
# Allow port 8080 (Dansguardian) to receive connections
iptables -A INPUT -i $INTIF -p tcp --dport 8080 -j ACCEPT
# Redirect port 80 to Dansguardian (port 8080)
iptables -t nat -A PREROUTING -i $INTIF -p tcp 
 --dport 80 -j REDIRECT --to-ports 8080

Zamijenimo $ = INTIF (upišemo mrežnu karticu spojena na LAN, (npr. eth0)).
Uredimo squid.

sudo gedit /etc/squid/squid.conf

Dodamo ili uredimo slijedeću liniju.
http_port 127.0.0.1:3128

To ukazuje Squidu da sluša na portu 3128. S time smo onemogućili korisniku da bi zaobišao
zaobilaženje Dansguardian.
Da bi konfigurirali Squid kao transparentni proxy server dodamo slijedeće linije:
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

Na kraju prilagodimo Squid da radi kao korisnik »proxy« i ne »squid«.
cache_effective_user proxy
cache_effective_group proxy

Dodamo ili uredimo slijedeću liniju.
http_access allow localhost
Uredimo dansguardian.

sudo gedit /etc/dansguardian/dansguardian.conf

Ispred UNCONFIGURED napravimo #.
Sve postavke pustimo nepromijenjene. Dodamo ili uredimo slijedeću liniju.
daemonuser = 'dansguardian'
daemongroup = 'dansguardian'
Uređivanje transparentnog proxy servera i iptables
Otvorimo terminal i unesemo:

sudo iptables -t nat -A OUTPUT -p tcp --dport 80 -m owner --uid-owner proxy
-j ACCEPT
sudo iptables -t nat -A OUTPUT -p tcp --dport 3128 -m owner --uid-owner
dansguardian -j ACCEPT

Ako želimo da pojedini korisnici ne koriste filtriranje napišemo sljedeću naredbu
Zamijenimo EXEMPT_USER sa korisničkim imenom, kojega ne želimo filtrirati:

sudo iptables -t nat -A OUTPUT -p tcp --dport 80 -m owner --uid-owner
EXEMPT_USER -j ACCEPT

Poznavaoci informacijsko – komunikacijske tehnologije bi rekli da upotreba proxy severa nije
baš najbolje sigurnosno rješenje. Korisnik može u web pregledniku isključiti upotrebu proxyja
i s time onemogućiti zaštitu. Da se to ne bi događalo možemo na sigurnosnoj stijeni (firewall)
upotrijebiti transparentni proxy server. Na ta način onemogućimo korisniku izmicanje proxy
serveru.
To napravimo sa sljedećim ukazom:

sudo iptables -t nat -A OUTPUT -p tcp --dport 3128 -j REDIRECT --to-ports
8080

Ako želimo započeti filtriranje unesemo sljedeća dva ukaza.

sudo service squid restart
sudo service dansguardian restart

Provjerimo djelovanje filtara.




Kada korisnik unese neprimjernu riječ filtar ju blokira i pokaže stranicu koja nas obavijesti o
nedozvoljenom sadržaju.
Ako želimo promijeniti izgled obavijesti uredimo template.html, koji se nalazi u
/etc/dansguardian/languages.


   3. Zaključak
Budući da djeca često dobro ne znaju što je dopušteno, a što zabranjeno na internetu, vjerujem
da su roditelji i nastavnici dužni primijeniti preventivne mjere i osvijestiti djecu o sigurnoj
upotrebi interneta. Međutim, moram napomenuti da nijedna tehnička zaštita nije 100%
pouzdana i da nikakva zaštita ne može zamijeniti roditeljsku ulogu u educiranju djece. Znano
je, da sa odrastanjem djeca stječu vještine, kojima mogu brzo zaobići tehničke zaštite.
Stoga je potrebno kod roditelja, nastavnika i studenata razvijati digitalne vještine i stalno ih
podsjećati na opasnosti koje vrebaju na internetu.
    4. Literatura

Dansguardian - true web contentfiltering for all. (2009). Prevzeto svibanj 2010 iz
http://dansguardian.org/

DansGuardian - Web content filtering. (brez datuma). Prevzeto svibanj 2010 iz
http://www.nyetwork.org/wiki/DansGuardian

Dansguardian Internet Content Filtering. (2009). Prevzeto svibanj 2010 iz
https://help.ubuntu.com/community/DansGuardian

Install Dansguardian on a single desktop. (2006). Pridobljeno iz
http://ubuntuforums.org/showthread.php?t=207008

Más contenido relacionado

Destacado

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

“RODITELJSKI NADZOR” PRISTUPA WEBU POMOĆU DANSGUARDIANA I SQUIDA

  • 1. “RODITELJSKI NADZOR” PRISTUPA WEBU POMOĆU DANSGUARDIANA I SQUIDA Oliver Buček, prof. OŠ Breg - Ptuj oliver.bucek@guest.arnes.si +386 40 751 872 Sažetak Danas postoji mnogo korisnih alata za filtriranje i nadzor koji mogu učinkovito spriječiti djeci pristup do nepoželjnih web sadržaja. Filtriranje internet prometa se koristi u školama, knjižnicama i kod kuće sa željom zaštite djece od neželjenih internet sadržaja. U članku želim pokazati primjer upotrebe otvorenog/slobodnog koda na Linux sistemu upotrebom Dansguardiana in Squid proxy servera i instalaciju Squida kao transparentnog proxy servera koji preusmjerava mrežni promet na novu lokaciju bez znanja korisnika. Iz tog razloga, u pregledniku nije potrebno ručno konfigurirati proxy. 1. O tako Dansguardianu i Squidu Širenje interneta i upotreba novih tehnologija iz mjeseca u mjesec izrazito raste. Osim toga postoje razne opasnosti i zloupotrebe informacijsko komunikacijske tehnologije gdje su najviše ranjiva upravo djeca. Sve to omogućava pojavljivanje novih načina zloupotrebe. Za bolje korištenje internetnih mogućnosti potrebne su mjere sigurnosti, koje potiču sigurnu upotrebu i štite korisnike od neželjenih sadržaja. Internet je postao neophodan alat kako na poslu, u školi i kod kuće. Opasnosti upotrebe nove tehnologije nisu samo vezane za viruse i spam, već i na štetne i ilegalne sadržaje, kao što su, na primjer dječja pornografija, govori mržnje, nasilni sadržaji, zloupotreba osobnih podataka ... Osnovni korak zaštite je da u web-pregledniku konfiguriramo stupanj propusnosti za određene sadržaje, kako bi se djeci spriječio pristup nepoželjnim web sadržajima (npr. pornografiji). U članku je opisan postupak instalacije i konfiguracije paketa Dansguardian i Squid. DansGuardian je sustav za “roditeljski nadzor” pristupa webu. Omogućuje antivirusno real- time skeniranje internet prometa, a osim toga radi i kao content filter (filtriranje web stranica sa pornografskim, drugs i ostalim nedozvoljenim sadržajem). Radi na Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X i Solaris. Filtrira stvarni sadržaj stranica na temelju mnogih metoda, uključujući podudaranje izraza, filtriranje slika i URL filtriranje. Squid Proxy Server je aplikacija koja prosljeđuje promet između zaštićene mreže i interneta. 2. Postupak instalacije Prevjerimo dali je „universe repository“ aktiviran na to moderniziramo pakete sudo apt-get update Namjestimo pakete dansguardian in squid. sudo apt-get install dansguardian squid
  • 2. Napravimo firewall skriptu. sudo gedit /etc/init.d/firewall.sh U firewall skriptu dodamo sljedeće linije. # Allow port 8080 (Dansguardian) to receive connections iptables -A INPUT -i $INTIF -p tcp --dport 8080 -j ACCEPT # Redirect port 80 to Dansguardian (port 8080) iptables -t nat -A PREROUTING -i $INTIF -p tcp --dport 80 -j REDIRECT --to-ports 8080 Zamijenimo $ = INTIF (upišemo mrežnu karticu spojena na LAN, (npr. eth0)). Uredimo squid. sudo gedit /etc/squid/squid.conf Dodamo ili uredimo slijedeću liniju. http_port 127.0.0.1:3128 To ukazuje Squidu da sluša na portu 3128. S time smo onemogućili korisniku da bi zaobišao zaobilaženje Dansguardian. Da bi konfigurirali Squid kao transparentni proxy server dodamo slijedeće linije: httpd_accel_host virtual httpd_accel_port 80 httpd_accel_with_proxy on httpd_accel_uses_host_header on Na kraju prilagodimo Squid da radi kao korisnik »proxy« i ne »squid«. cache_effective_user proxy cache_effective_group proxy Dodamo ili uredimo slijedeću liniju. http_access allow localhost Uredimo dansguardian. sudo gedit /etc/dansguardian/dansguardian.conf Ispred UNCONFIGURED napravimo #. Sve postavke pustimo nepromijenjene. Dodamo ili uredimo slijedeću liniju. daemonuser = 'dansguardian' daemongroup = 'dansguardian' Uređivanje transparentnog proxy servera i iptables Otvorimo terminal i unesemo: sudo iptables -t nat -A OUTPUT -p tcp --dport 80 -m owner --uid-owner proxy -j ACCEPT
  • 3. sudo iptables -t nat -A OUTPUT -p tcp --dport 3128 -m owner --uid-owner dansguardian -j ACCEPT Ako želimo da pojedini korisnici ne koriste filtriranje napišemo sljedeću naredbu Zamijenimo EXEMPT_USER sa korisničkim imenom, kojega ne želimo filtrirati: sudo iptables -t nat -A OUTPUT -p tcp --dport 80 -m owner --uid-owner EXEMPT_USER -j ACCEPT Poznavaoci informacijsko – komunikacijske tehnologije bi rekli da upotreba proxy severa nije baš najbolje sigurnosno rješenje. Korisnik može u web pregledniku isključiti upotrebu proxyja i s time onemogućiti zaštitu. Da se to ne bi događalo možemo na sigurnosnoj stijeni (firewall) upotrijebiti transparentni proxy server. Na ta način onemogućimo korisniku izmicanje proxy serveru. To napravimo sa sljedećim ukazom: sudo iptables -t nat -A OUTPUT -p tcp --dport 3128 -j REDIRECT --to-ports 8080 Ako želimo započeti filtriranje unesemo sljedeća dva ukaza. sudo service squid restart sudo service dansguardian restart Provjerimo djelovanje filtara. Kada korisnik unese neprimjernu riječ filtar ju blokira i pokaže stranicu koja nas obavijesti o nedozvoljenom sadržaju. Ako želimo promijeniti izgled obavijesti uredimo template.html, koji se nalazi u /etc/dansguardian/languages. 3. Zaključak
  • 4. Budući da djeca često dobro ne znaju što je dopušteno, a što zabranjeno na internetu, vjerujem da su roditelji i nastavnici dužni primijeniti preventivne mjere i osvijestiti djecu o sigurnoj upotrebi interneta. Međutim, moram napomenuti da nijedna tehnička zaštita nije 100% pouzdana i da nikakva zaštita ne može zamijeniti roditeljsku ulogu u educiranju djece. Znano je, da sa odrastanjem djeca stječu vještine, kojima mogu brzo zaobići tehničke zaštite. Stoga je potrebno kod roditelja, nastavnika i studenata razvijati digitalne vještine i stalno ih podsjećati na opasnosti koje vrebaju na internetu. 4. Literatura Dansguardian - true web contentfiltering for all. (2009). Prevzeto svibanj 2010 iz http://dansguardian.org/ DansGuardian - Web content filtering. (brez datuma). Prevzeto svibanj 2010 iz http://www.nyetwork.org/wiki/DansGuardian Dansguardian Internet Content Filtering. (2009). Prevzeto svibanj 2010 iz https://help.ubuntu.com/community/DansGuardian Install Dansguardian on a single desktop. (2006). Pridobljeno iz http://ubuntuforums.org/showthread.php?t=207008