Willow: Instalasi
Jump to navigation
Jump to search
Catatan
- Willow tergantung paket python 2.4 multiverse.
- Webinterface bekerja dengan menggunakan user yang dikonfigurasi di willow.conf dan password hardcoded pada baris 1607 dari willow.py
- Dokumentasinya sedikit langka. Anda memerlukan pengalaman linux untuk menyiapkannya.
- Halaman yang muncul jika Anda mengunjungi situs yang diblokir adalah hardcoded dalam beberapa skrip python. Bukan masalah besar tapi tidak benar-benar convienant.
Persiapan
sudo su add-apt-repository ppa:fkrull/deadsnakes apt update apt install python2.4
Download
- https://sourceforge.net/projects/willow-proxy/?source=directory
- https://sourceforge.net/projects/willow-proxy/files/?source=directory
- http://willow-proxy.sourceforge.net/
- https://sourceforge.net/projects/willow-proxy/
cd /usr/local/src wget https://sourceforge.net/projects/willow-proxy/files/willow-4.0.1.tar.gz tar zxvf willow-4.0.1.tar.gz mv /usr/local/src/home/willow/ /home/ chown -Rf root.root /home/willow/ cp /home/willow/logrotate.d/willow /etc/logrotate.d/ mkdir -p /var/log/willow cp /home/willow/redhatrcscript.willow /etc/init.d/willow cd /home/willow
Edit
vi /home/willow/willow.py
Pastikan
#!/usr/bin/python2.4
Konfigurasi
Edit
vi /home/willow/willow.conf
Contoh willow.conf
syspath = ['/home/willow'] port = 3128 interface = '192.168.0.100' filters = ['domainfilter','contentfilter','urlfilter'] domainfilterpath = '/home/willow/filters/domain' contentfilterpath = '/home/willow/filters/content' urlfilterpath = '/home/willow/filters/url'
Client
Set proxy ke
- IP address proxy
- port 3128
Run
/home/willow/willow.py --config=/home/willow/willow.conf
Test dari Client
Browse ke
http://ads.web.aol.com
Harusnya keluar halaman berwarna kuning, dengan tulisan
The resource requested has been determined to be innappropriate.
Web Admin
Browse ke
http://www.proxy.admin
- Username root
- Password willowadmin
Catatan Source Code
contentfilter.py - bayesian filter & training.