Debian iptables startup script

Per prima cosa occorre salvare la configurazione del firewall con il comando iptables-save > /etc/firewall.conf Poi occorre andare creare un file in /etc/network/if-up.d cd /etc/network/if-up.d touch iptables chmod 755 iptables e al suo interno occorre scrivere #!/bin/sh iptables-restore < /etc/firewall.conf
Read more...Installare un server Rsync in debian

Per prima cosa installiamo i pacchetti necessari apt-get install rsync openbsd-inetd Poi creiamo il file /etc/rsyncd.conf (in questo esempio andremo a sincronizzare l cartella /home/prova per l’utente pippo) max connections = 10 log file = /var/log/rsync.log timeout = 300 pid file=/var/run/rsyncd.pid [prova] comment = Rsync prova path = /home/prova read only = no list = yes uid = pippo gid = root auth users=pippo list = yes hosts allow =…
Read more...CentOS 6 network install

Per prima cosa occorre scaricare il cd “network install” da: http://isoredirect.centos.org/centos/6/isos/ Poi occorre mettere il mirror in base alla versione scelta (32 bit o 64 bit): 32 bit: http://mirror.centos.org/centos/6/os/i386/ 64 bit: http://mirror.centos.org/centos/6/os/x86_64/
Read more...Configurare l’account Eutelia con FreePBX

Per prima cosa creaiamo un fascio SIP e poi inseriamo i seguenti parametri: identificativo chiamata: numero_eutelia nome fascio: numero_eutelia allow=ulaw&alaw&gsm&g723&g729&h261&h263&h263p callerid=numero_eutelia context=from-pstn defaultexpirey=1800 disallow=all dtmfmode=inband externip=il_proprio_ip_esterno fromuser=numero_eutelia host=voip.eutelia.it insecure=very language=it nat=yes port=5060 qualify=yes secret=password srvlookup=yes type=friend useragent=Asterisk_Eut username=numero_eutelia contesto_utente: in_numero_eutelia allow=ulaw&alaw&gsm&g723&g729&h261&h263&h263p callerid=numero_eutelia disallow=all dtmfmode=inband externip=il_proprio_ip_esterno fromuser=numero_eutelia host=voip.eutelia.it insecure=very language=it nat=yes qualify=yes realm=voip.eutelia.it secret=password srvlookup=yes type=friend username=numero_eutelia context=from-pstn registrazione: numero_eutelia:password@voip.eutelia.it:5060/numero_eutelia
Read more...TrixBox 2.8.x problema sessioni php

Se avete installato anche voi una TrixBox 2.8.x e quando andate ad accere al pannello Ari oppure al CDR e ricevete degli errori e nel file log di httpd ricevete un errore simile PHP Notice: session_start() [<a href='function.session-start'>function.session-start</a>]: Server localhost (tcp 11211) failed with: Connessione rifiutata (111) ecco come fare: aprite una shell come rotto ed eseguite cd /etc/php.d/ editate il file con nano memcache.ini mettete un punto e virgola…
Read more...