Sunteți pe pagina 1din 14

MANUAL PASO A PASO INSTALACION DE SERVIDOR LINUX ELASTIX 2.3.

EN UNA PC CON WINDOWS USANDO UNA MAQUINA VIRTUAL

Requisitos para la instalacin: Vmware Workstation 8 o superior Archivo ISO del instalador de Elastix 2.3.0 Paciencia

Septiembre 2012 Ing. Jose Miguel Cabrera

Ing. Jose Miguel Cabrera Septiembre 2012

Ing. Jose Miguel Cabrera Septiembre 2012

Ing. Jose Miguel Cabrera Septiembre 2012

Ing. Jose Miguel Cabrera Septiembre 2012

Ing. Jose Miguel Cabrera Septiembre 2012

Ing. Jose Miguel Cabrera Septiembre 2012

Ing. Jose Miguel Cabrera Septiembre 2012

Este paso puede tardar entre 20 a 60 minutos dependiendo de la memoria ram y procesador del equipo. Al concluir se reiniciara el equipo de manera automtica y debe dejarse que inicie desde el disco duro

Ing. Jose Miguel Cabrera Septiembre 2012

Ing. Jose Miguel Cabrera Septiembre 2012

Ing. Jose Miguel Cabrera Septiembre 2012

EJECUTAR LOS SIGUIENTES COMANDOS


chkconfig --list | grep 5:activo | awk '{ print $1 }' > servicios.txt cat servicios.txt for i in $(cat servicios.txt); do chkconfig $i off; done chkconfig network on chkconfig sshd on chkconfig crond on chkconfig syslog on chkconfig haldaemon on chkconfig messagebus on chkconfig asterisk on chkconfig dahdi on chkconfig elastix-firstboot on chkconfig elastix-updaterd on chkconfig httpd on chkconfig dhcpd on chkconfig mysqld on mkdir -p {bin,conf,targz,rpms} cd /root/bin vi tailm tail -n 30 -f /var/log/messages chmod +x /root/bin/tailm vi /etc/bashrc alias l='ls -lhF' vi /etc/sysconfig/network VLAN=yes Ing. Jose Miguel Cabrera Septiembre 2012

vi /etc/asterisk/modules.conf ; Don't load skinny (tcp port 2000) noload => chan_skinny.so ; Don't load MGCP (udp port 2727) noload => chan_mgcp.so ; Don't load dundi (udp port 4520) noload => pbx_dundi.so ; Don't load Unistim (udp port 5000) noload => chan_unistim.so ; Don't load IAX2 (udp port 4569) noload => chan_iax2.so vi /etc/httpd/conf/httpd.conf Listen 192.168.77.254:80 vi /etc/httpd/conf.d/ssl.conf Listen 192.168.77.254:443 vi /etc/my.cnf bind-address = 127.0.0.1 vi /etc/asterisk/manager.conf bindaddr = 127.0.0.1 vi /etc/asterisk/sip.conf [general] localnet=192.168.77.0/24 bindaddr=192.168.77.254 vi /etc/ssh/sshd_config ListenAddress 192.168.77.254 vi /var/www/html/panel/op_server.cfg listen_addr=127.0.0.1 amportal restart service service service service sshd restart httpd restart asterisk restart mysqld restart

netstat -lnp | grep asterisk netstat -lnp | grep httpd Ing. Jose Miguel Cabrera Septiembre 2012

vi /etc/rc.d/rc.firewall
#!/bin/sh echo ## SCRIPT de IPTABLES ##Declaramos una variable $IPT para utlizarla mas adelante IPT="/sbin/iptables" echo -n Aplicando Reglas de Firewall... ## FLUSH de reglas $IPT -F $IPT -X $IPT -Z $IPT -t nat -F echo -n Estableciendo politica por defecto.... ## Establecemos politica por defecto $IPT -P INPUT ACCEPT $IPT -P OUTPUT ACCEPT $IPT -P FORWARD ACCEPT $IPT -t nat -P PREROUTING ACCEPT $IPT -t nat -P POSTROUTING ACCEPT

############################################## ########### PREROUTUING ############## ############################################## ############################################## ########### INPUT ############## ############################################## $IPT -A INPUT -i lo -j ACCEPT $IPT -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT ############################################## ########### OUTPUT ############## ############################################## ############################################## ########### FORWARD ############## ############################################## $IPT -A FORWARD -m state --state RELATED,ESTABLISHED $IPT -A FORWARD -p icmp ############################################## ########### POSTROUTUING ############## ############################################## echo " OK" # Fin del script service iptables save echo

-j ACCEPT -j ACCEPT

Ing. Jose Miguel Cabrera Septiembre 2012

Dar permiso de ejecucion chmod +x /etc/rc.d/rc.firewall Ejecutar el firewall sh /etc/rc.d/rc.firewall Que el servicio se inicie al levantar el Servidor chkconfig iptables on

Ing. Jose Miguel Cabrera Septiembre 2012

S-ar putea să vă placă și