Project

General

Profile

Segnalazione #88

Autoconfigurazione proxy

Added by Christopher R. Gabriel over 7 years ago. Updated over 7 years ago.

Status:
Chiuso
Priority:
Normale
Start date:
11/23/2016
Due date:
% Done:

0%

Estimated time:

Description

Per la nuova versione del server, facciamo deployment della autoconfigurazione del proxy.

Servono:

  • nel template dhcpd, l'url del file di configurazione
option local-pac-server code 252 = text;
option local-pac-server “http://URL_DEL_SERVER:80/wpad.dat”;
  • aggiungiamo un file in /etc/apache2/conf.d/ con le seguenti indicazioni:
AddType application/x-ns-proxy-autoconfig .dat
Alias /proxy.pac /wpad.dat
  • nella document root, generiamo (tramite template) il file wpad.dat, questo il contenuto
    function FindProxyForURL(url, host) {
         if (isInNet(myIpAddress(), "<RETE LAN>", "255.255.255.0"))
            return "PROXY <IP SERVER SULLA LAN>:8080";
        if (isInNet(myIpAddress(), "<RETE CAPTIVE PORTAL>", "255.255.255.0"))
            return "DIRECT";
    }
    
    

"<RETE LAN>" qualcosa tipo "192.168.10.0"

<IP SERVER SULLA LAN> tipo 192.168.10.1 (senza http:// come prefisso)

Associated revisions

Revision e7ff0807 (diff)
Added by Simone Piccardi over 7 years ago

Create an apache2 roles for apache related configurations (WPAD proxy
autoconf, refs #88 and webpasswd, refs #123). Recover octonet main
task (removed by accident, refs #103)

Revision 2aaab473 (diff)
Added by Simone Piccardi over 7 years ago

Adding wpad.dat to Aliases for proxy autoconf (refs #88) and add
restart handler for octofussd (refs #125).

History

#1

Updated by Christopher R. Gabriel over 7 years ago

  • Description updated (diff)
#2

Updated by Simone Piccardi over 7 years ago

  • Assignee set to Elena Grandi
#3

Updated by Elena Grandi over 7 years ago

  • Status changed from Nuovo to Commenti
  • Assignee changed from Elena Grandi to Christopher R. Gabriel

Fatto, ma testato poco, sarebbe da provare un po' meglio assieme a tutto il resto prima di darlo per funzionante.

#4

Updated by Christopher R. Gabriel over 7 years ago

  • Assignee changed from Christopher R. Gabriel to Elena Grandi

Cosa devo fare esattamente? Quale e' il resto a cui ti riferisci?

#5

Updated by Elena Grandi over 7 years ago

  • Assignee changed from Elena Grandi to Christopher R. Gabriel

fuss-server create, tutto quanto e non solo il task che è stato modificato.

#6

Updated by Christopher R. Gabriel over 7 years ago

  • Assignee changed from Christopher R. Gabriel to Simone Piccardi

Sembra tutto ok, pero' quando il browser accede all'indirizzo fornito, nel mio caso "http://proxy.scuola.bz:80/wpad.dat", riceve un 404.

#7

Updated by Christopher R. Gabriel over 7 years ago

Magari mettiamo il file generato non in /var/www, ma altrove, e poi aggiungiamo l'alias in /etc/apache2/conf-available, installato da fuss-server

#8

Updated by Simone Piccardi over 7 years ago

  • Assignee changed from Simone Piccardi to Christopher R. Gabriel

Ho spostato il file in /usr/share/fuss-server/wpad/, ed introdotto /etc/apache2/conf-available/proxy.conf, il tutto viene eseguito nel nuovo ruolo apache2 che fa questa ed altre configurazioni di base di apache.

#9

Updated by Christopher R. Gabriel over 7 years ago

  • Assignee changed from Christopher R. Gabriel to Simone Piccardi

/wpad.dat da ancora 404.

#10

Updated by Simone Piccardi over 7 years ago

  • Assignee changed from Simone Piccardi to Christopher R. Gabriel

Ho aggiunto un secondo alias anche per wpad.dat, su macchina installata da netinst vanno sia links http://proxy/wpad.dat che http://proxy/proxy.pac (si scarica il relativo file).

#11

Updated by Christopher R. Gabriel over 7 years ago

  • Status changed from Commenti to Chiuso

Verificato, ok

Also available in: Atom PDF