Установка PRIVOXY на маршрутизатор с DD-WRT для резки рекламы, нежелательных пользователей итп

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 12:36, 8 May 2010 (edit)
Glenn (Talk | contribs)
(+cat)
← Previous diff
Revision as of 22:19, 4 January 2019 (edit) (undo)
Ian5142 (Talk | contribs)
(Moved old page to language linked page. Russian. Not quite the same, but close.)
Next diff →
Line 123: Line 123:
[[Category:Categories/ru]] [[Category:Categories/ru]]
 +[[Category:Русская документация]]

Revision as of 22:19, 4 January 2019

Доброго времени суток товарищи! ;) собственно что из себя представляет данная софтина можно узнать более подробно на сайте http://privoxy.org.ru/. Основным преимуществом данной проги является избавление от ненужной рекламы с сайтов, удаление пупов итп.


дополнительно

http://privoxy.org.ru/user-manual/index.html Дока в русском переводе http://privoxy.org.ru/uploads/1241420351041583.htm Фильтры для спама и рекламы


Пошагово опишем в кратце установку PRIVOXY на маршрутизатор с DDWRT.

1) У вас уже должен стоять Lighthttpd вебсервер т.к. privoxy пользуется библиотеками из проинсталенного набора. установить можно его из портов командами


 /opt/bin/ipkg-opt update 
 /opt/bin/ipkg-opt install lighttpd

2)инсталлим

/opt/bin/ipkg-opt update 
/opt/bin/ipkg-opt install privoxy

3)конфигурируем. Программа по умолчанию ломиться в рутовский каталог, поэтому ей надо задать. в стартап скрипте. (optware.startup) см. в документации по установки SAMBA

/opt/sbin/privoxy /opt/etc/privoxy/config 

4) Сам конфигурационный файл


user-manual /opt/share/doc/privoxy/user-manual/ 
trust-info-url http://192.168.0.1:8081/index.html 
proxy-info-url http://192.168.0.1:8081/index.html 
confdir /opt/etc/privoxy 
# 
logdir /opt/var/log/privoxy 
# Actions files contain all the per site and per URL configuration 
# for ad blocking, cookie management, privacy considerations, 
# etc. There is no point in using Privoxy without at least one 
# actions file. 
# 
# Note that since Privoxy 3.0.7, the complete filename, including 
# the ".action" extension has to be specified. The syntax change 
# was necessary to be consistent with the other file options and 
# to allow previously forbidden characters. 
# 
actionsfile match-all.action # Actions that are applied to all sites and maybe overruled later on. 
actionsfile default.action # Main actions file 
actionsfile user.action # User customizations 
filterfile default.filter 
#filterfile user.filter # User customizations 
logfile logfile 
# 
#debug 1 # Log the destination for each request Privoxy let through. 
#debug 1024 # Log the destination for requests Privoxy didn't let through, and the reason why. 
#debug 4096 # Startup banner and warnings 
debug 8192 # Non-fatal errors 
# 
listen-address 192.168.0.1:8118  
#ТУТ УКАЗЫВАЙТЕ свой адрес прокся не пашет если указать более 1го интерфейса
# listen-address 192.168.0.1:8888 
#listen-address 192.168.0.1:9999 
# 
# 
#listen-address 127.0.0.1:8118 
# 
# 
toggle 1  
enable-remote-toggle 0
enable-remote-http-toggle 0
enable-edit-actions 0 
enforce-blocks 0 
# 4.7. ACLs: permit-access and deny-access 
# ========================================= 

# 
permit-access 192.168.0.0/24 www.privoxy.org/24 
# Разрешаем ломиться с сети на адрес privoxy.org 
# 
# Allow access from any host on the 26-bit subnet 192.168.45.64 to 
# anywhere, with the exception that 192.168.45.73 may not access 
# the IP address behind www.dirty-stuff.example.com: 
deny-access 192.168.0.0/24
#Запрешайем ломиться куда либо с локальный адресов
permit-access 192.168.0.0/24 www.ng.ru
permit-access 192.168.0.0/24 google.ru
permit-access 192.168.0.0/24 www.d-j.ru
#Запрещенным разрешаем через проксю слушать радио ))) и читать свежие новости , а также    пользоваться гуглей 
permit-access 192.168.0.102 
permit-access 192.168.0.100 
#Разрешаем юзать прокси с 2 локальных аресов
#deny-access 192.168.45.73 www.dirty-stuff.example.com 
# 
buffer-limit 4096 
# 
forward 192.168.*.*/ . 
#  forward 10.*.*.*/ . 
# forward 127.*.*.*/ . 
forwarded-connect-retries 0 
accept-intercepted-requests 0 
split-large-forms 0 
keep-alive-timeout 300 
socket-timeout 300 
log-messages 1 
log-buffer-size 1 
log-max-lines 200 
log-highlight-messages 1 
log-font-name Comic Sans MS 
log-font-size 8 
----

5) в итоге получаем рабучую проксю с правилами доступа для зверей в случае того если они будут ломиться не туда прокся кидает их на свою страницу которую в свою очередь можно отредактировать по вашему желанию...

Удачи!!!!!!!!!!!!!!!

зы... до этого вам следует установить хттпд сервер и весь траф по 80 порту завернуть на него... так же следует дропнуть все пакеты в ван.