Ciao a tutti,
volevo impostare un server Debian con i 3 Software citati nel titolo:
1. Squid
2. DansGaurdian
3. ClamAV
Per ora ho installato squid, ho attivato le opzioni base citate sul sito di squid.
Codice:
cache_dir ufs /var/spool/squid 100 16 256
http_port 3128
http_access allow all
cache_effective_user proxy
cache_effective_group proxy
visto che funzionava sono andato oltre, ho agiunto anche:
Codice:
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
ho dato
Codice:
iptables -t nat -A PREROUTING -i eth1 -d ! 10.10.10.77 -p tcp --dport 80 -j REDIRECT --to-ports 3128
questa stringa l'ho trovata in rete tra le varie documentazioni..

..se non ho capito male dovrebbe reindirizzare le richieste che arrivano alla porta 80 alla porta 3128 e quindi a squid, infatti funziona anche se non ho impostato nessun proxy nei browsers windows.
Fin qui pare tutto ok.
Il mio problema è: DansGuardian, come lo setto? Ho cercato parecchio su google ma ognuno fa come vuole lui e dice una cosa diversa e la cosa mi ha creato solo confunsione.
Ho installato DansGuardian con apt-get install dansguardian, e mi dice che devo impostare il file dansguardian.conf.
Lo ho aperto e ho trovato nelle prime righe :
Codice:
# Comment this line out once you have modified this file to suit your needs
UNCONFIGURED
e l'ho commentato ottenendo:
Codice:
# Comment this line out once you have modified this file to suit your needs
#UNCONFIGURED
ho impostato anche:
language = 'italian'
filterip = 192.168.0.10 (ip della scheda di rete su cui è attacata la lan)
filterport = 8080
proxyport = 3128
una volta salvato tutto do:
/etc/init-d/dansguardian start
il problema è che mi rimane su questa scritta:
Starting DansGuardian:
Se partisse, se non ho capito male, dovrei reimpostare il comando iptables con:
Codice:
iptables -t nat -A PREROUTING -i eth1 -d ! 10.10.10.77 -p tcp --dport 80 -j REDIRECT --to-ports 8080
in modo che possa arrivare prima a dansguardian che poi lo rigira a squid...Giusto?
Secondo voi perché non mi sia avvia dansguardian? cosa mi è sfuggito?