Si instalamos elastix 4 y la particion /home nos quedo muy grande,
Backup Servidores Asterisk
Se realizan los siguientes pasos
Para que funcione el Play de las Grabaciones desde el estaqueue
Se deben seguir los siguientes pasos:
Primero debemos ver la version del apache antes de continuar
|
1 2 3 |
apachectl -v Server version: Apache/2.2.3 Server built: Sep 16 2014 11:05:09 |
Si el comando anterior no nos funciona debemos utilizar:
|
1 |
apache2ctl -v |
Seguir leyendo Para que funcione el Play de las Grabaciones desde el estaqueue
Configurar Sendmail para el envio a Gmail
1. Install prerequisites
|
1 |
yum install sendmail mailutils sendmail-bin |
2. Create Gmail Authentication file
|
1 2 |
mkdir -m 700 /etc/mail/authinfo/ cd /etc/mail/authinfo/ |
nano gmail-auth
|
1 |
AuthInfo: "U:root" "I:YOUR GMAIL EMAIL ADDRESS" "P:YOUR PASSWORD" |
Replace the above email with your gmail or google apps email.
In the next step we will need to create a hash map for the above authentication file:
|
1 |
makemap hash gmail-auth < gmail-auth |
3. Configure your sendmail
Put bellow lines into your sendmail.mc configuration file right above first «MAILER» definition line:
|
1 2 3 4 5 6 7 |
define(`SMART_HOST',`[smtp.gmail.com]')dnl define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl define(`confAUTH_OPTIONS', `A p')dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl FEATURE(`authinfo',`hash -o /etc/mail/authinfo/gmail-auth.db')dnl |
Do not put the above lines on the top of your sendmail.mc configuration file !
In the next step we will need to re-build sendmail’s configuration. To do that execute:
|
1 |
make -C /etc/mail |
Reload sendmail service:
|
1 |
/etc/init.d/sendmail reload |
and you are done.
4. Configuration test
Now you can send an email from your command line using mail command:
|
1 |
$ echo "Just testing my sendmail gmail relay" | mail -s "Sendmail gmail Relay" my-email@my-domain.com |
If you will experience substitutional delays after executing the above command to most likely cause is that you have not configured your host with FQDN. Check your logs for a warning:
Arreglar Squid al actualizar a pfsense 2.3
Entrar al servidor por ssh y borrar la configuracion anterior:
|
1 2 3 4 5 6 7 |
rm -rf /usr/local/etc/c-icap rm -rf /usr/local/include/c_icap rm -rf /usr/local/share/c_icap rm -rf /usr/local/lib/c_icap rm -rf /usr/local/etc/c-icap rm -rf /var/log/squid rm -rf /var/squid/ |
Volver a instalar el squid
Optimizar servidor apache con muchos time wait
Para ver cuantas conexiones tenemos activas
|
1 |
netstat -nat | awk '{print $6}' | sort | uniq -c | sort -n |
Se imprime algo asi:
Para mirar la configuracion actual:
|
1 2 3 |
cat /proc/sys/net/ipv4/tcp_fin_timeout cat /proc/sys/net/ipv4/tcp_tw_recycle cat /proc/sys/net/ipv4/tcp_tw_reuse |
Los valores por defecto son: 60, 0 and 0. Los cambiaremos por: 30, 1, 1.
|
1 2 |
echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse |
|
1 2 |
#Este parametro tiene problemas cuando hay NAT echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle |
Para que los cambies queden persistentes, debemos cambiar /etc/sysctl.conf colocando las siguientes lineas al final
|
1 2 3 4 5 6 |
# Decrease TIME_WAIT seconds net.ipv4.tcp_fin_timeout = 30 # Recycle and Reuse TIME_WAIT sockets faster net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_tw_reuse = 1 |
Para incrementar los limites de los puertos que pueden ser usados:
|
1 2 3 4 5 6 |
echo 1024 65535 > /proc/sys/net/ipv4/ip_local_port_range nano /etc/sysctl.conf # increase system IP port limits net.ipv4.ip_local_port_range = 1024 65535 |
Listo.
Actualizar version de Openfire – Necesario para grabar las conversaciones
|
1 |
yum install glibc.i686 |
Bajar e instalar rpm de openfire
|
1 2 3 4 5 6 7 |
service openfire stop wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-4.0.2-1.i386.rpm rpm -Uvf openfire-4.0.2-1.i386.rpm service openfire start |
|
1 |
tail -f nohup.out |
service openfire status
|
1 |
/opt/openfire/jre/bin/java |
NOTA: Se debe configurar que solo grabe 2 meses las conversaciones
Si el openfire no sube despues de un tiempo, es porque esta lleno el archivo de grabaciones, para dejarlo en 0 se hace lo siguiente:
|
1 2 3 4 5 |
cd /opt/openfire/embedded-db/ cat openfire.script | grep -v ARCHIVE >openfire-mini.script cp openfire.script /root/ mv openfire-mini.script openfire.script service openfire restart |
Editar el archivo openfire.script y añadir despues de todos los CREATE las siguientes lineas:
|
1 2 |
CREATE MEMORY TABLE OFMESSAGEARCHIVE(MESSAGEID BIGINT,CONVERSATIONID BIGINT NOT NULL,FROMJID VARCHAR(1024) NOT NULL,FROMJIDRESOURCE VARCHAR(255),TOJID VARCHAR(1024) NOT NULL,TOJIDRESOURCE VARCHAR(255),SENTDATE BIGINT NOT NULL,STANZA LONGVARCHAR,BODY LONGVARCHAR) CREATE INDEX OFMESSAGEARCHIVE_CON_IDX ON OFMESSAGEARCHIVE(CONVERSATIONID) |
Como saber la ip publica desde la linea de comandos
Se queremos saber cual es mi ip (externa).
Ejecutamos los siguiente:
|
1 2 |
wget -qO- ifconfig.me/ip wget -qO- http://ipecho.net/plain |
Otra forma
|
1 2 |
curl ifconfig.me curl -s http://ipecho.net/plain |
Esto nos reemplaza el sitio cualesmiip
Tambien podemos realizarlo se esta manera
|
1 |
curl https://ipinfo.io/ip |
Recordar añadir la ruta al servidor, si este no tiene default gateway
|
1 |
route add -host 216.239.32.21 gw 192.168.1.254 |
Listo.
Setup Samba Domain Controller with LDAP Backend in Ubuntu 13.04 | Unixmen
Setup Samba Domain Controller with LDAP Backend in Ubuntu 13.04 | Unixmen
Origen: Setup Samba Domain Controller with LDAP Backend in Ubuntu 13.04 | Unixmen
Otro enlace