Contar extensiones que se desconectan

Con este comando podemos ver las extensiones que tienen problemas en el full, ya sean porque estan Lagged o porque estan UNREACHABLE

Las caidas

Solo para las de pings altos

 

Cliente VPN en Centos 7

Se crean los certificados

 

Se instala el servicio openvpn

Copiar los certificados a la carpeta openvpn

Para que el servicio inicie se debe ejecutar

Para subir el servicio

Si sale que el certificado no es valido «not yet valid» verificar la fecha del servidor y arreglarla.

No package openvpn available

Si te sale este error, debes activar el siguiente repositorio

 

 

Configurar Sendmail para el envio a Gmail

1. Install prerequisites

2. Create Gmail Authentication file

nano gmail-auth

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:

3. Configure your sendmail

Put bellow lines into your sendmail.mc configuration file right above first «MAILER» definition line:

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:

Reload sendmail service:

and you are done.

4. Configuration test

Now you can send an email from your command line using mail command:

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:

Optimizar servidor apache con muchos time wait

Para ver cuantas conexiones tenemos activas

Para mirar la configuracion actual:

Los valores por defecto son: 60, 0 and 0. Los cambiaremos por: 30, 1, 1.

Para que los cambies queden persistentes, debemos cambiar /etc/sysctl.conf colocando las siguientes lineas al final

Listo.

 

 

Como saber la ip publica desde la linea de comandos

Se queremos saber cual es mi ip (externa).

Ejecutamos los siguiente:

Otra forma

Esto nos reemplaza el sitio cualesmiip

Tambien podemos realizarlo se esta manera

Recordar añadir la ruta al servidor, si este no tiene default gateway

 

Listo.