<?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>Nideaderedes &#187; firewall</title>
	<atom:link href="http://nideaderedes.urlansoft.com/tag/firewall/feed/" rel="self" type="application/rss+xml" />
	<link>http://nideaderedes.urlansoft.com</link>
	<description>Un blog hecho por mí y para mí</description>
	<lastBuildDate>Thu, 10 Jun 2010 18:46:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Problema con Firestarter &#8211; el interfaz eth0 no está preparado</title>
		<link>http://nideaderedes.urlansoft.com/2008/01/16/problema-con-firestarter-el-interfaz-eth0-no-esta-preparado/</link>
		<comments>http://nideaderedes.urlansoft.com/2008/01/16/problema-con-firestarter-el-interfaz-eth0-no-esta-preparado/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 17:56:34 +0000</pubDate>
		<dc:creator>gorkau</dc:creator>
				<category><![CDATA[privacidad-y-seguridad]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[firestarter]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[seguridad]]></category>

		<guid isPermaLink="false">http://nideaderedes.urlansoft.com/2008/01/16/problema-con-firestarter-el-interfaz-eth0-no-esta-preparado/</guid>
		<description><![CDATA[Recientemente me he encontrado con este problema y, después de darle muchas vueltas he encontrado el problema. La causa está en el script firestarter.sh. Abre el dichoso script:
gksudo gedit /etc/firestarter/firestarter.sh
y modifica la línea:
MASK=`/sbin/ifconfig $IF &#124; grep Mas &#124; cut -d : -f 4`
por:
MASK=`/sbin/ifconfig $IF &#124; grep Más &#124; cut -d : -f 4`
Explicación paso a [...]]]></description>
			<content:encoded><![CDATA[<p>Recientemente me he encontrado con este problema y, después de darle muchas vueltas he encontrado el problema. La causa está en el script firestarter.sh. Abre el dichoso script:</p>
<pre>gksudo gedit /etc/firestarter/firestarter.sh</pre>
<p>y modifica la línea:</p>
<pre>MASK=`/sbin/ifconfig $IF | grep Mas | cut -d : -f 4`</pre>
<p>por:</p>
<pre>MASK=`/sbin/ifconfig $IF | grep Más | cut -d : -f 4`</pre>
<h2>Explicación paso a paso</h2>
<p>Por si a alguien le interesa saber cómo dí con el problema he aquí un pequeño e instructivo rollete.</p>
<p>El mensaje de error que me aparece al intentar arrarcar el firestarter es:</p>
<pre>External network device $IF is not ready. Aborting..</pre>
<p>ese mensaje de error se muestra aquí (en este caso $IF es eth0):</p>
<pre>if [ "$MASK" = "" -a "$1" != "stop" ]; then
	echo "External network device $IF is not ready. Aborting.."
	exit 2
fi</pre>
<p>comprobé que la variable $MASK estaba en blanco (era la razón de que no arrancara el firestarter) así que busqué dónde se definía:</p>
<pre>MASK=`/sbin/ifconfig $IF | grep Más | cut -d : -f 4`</pre>
<p>El comando /sbin/ifconfi eth0 muestra un mensaje parecido a éste:</p>
<pre>eth0      Link encap:Ethernet  HWaddr 00:13:8F:4C:47:59
          inet dirección:192.168.1.2  Bcast:192.168.1.255  Máscara:255.255.255.0
          dirección inet6: fe80::213:8fff:fe4c:4759/64 Alcance:Vínculo
          ARRIBA BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:221627 errors:0 dropped:0 overruns:0 frame:0
          TX packets:226060 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:159080113 (151.7 MiB)  TX bytes:105193874 (100.3 MiB)
          Interrupción:23 Base address:0xe400
</pre>
<p>y el comando:</p>
<pre>/sbin/ifconfig $IF | grep Mas | cut -d : -f 4</pre>
<p>Lo que hace es buscar la línea donde esté el texto Mas (de Mask) y, claro, al estar mi Ubuntu en castellano en lugar de Mask poner Máscara:</p>
<pre>eth0      Link encap:Ethernet  HWaddr 00:13:8F:4C:47:59
          inet dirección:192.168.1.2  Bcast:192.168.1.255  <strong><em>Máscara:</em></strong>255.255.255.0
          dirección inet6: fe80::213:8fff:fe4c:4759/64 Alcance:Vínculo
          ARRIBA BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:221627 errors:0 dropped:0 overruns:0 frame:0
          TX packets:226060 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:159080113 (151.7 MiB)  TX bytes:105193874 (100.3 MiB)
          Interrupción:23 Base address:0xe400
</pre>
<p>Como resultado de este pequeño detalle $MASK se queda en blanco. Por tanto, la solución consiste en modificar el script y dejarlo como:</p>
<pre>MASK=`/sbin/ifconfig $IF | grep Más | cut -d : -f 4`</pre>
]]></content:encoded>
			<wfw:commentRss>http://nideaderedes.urlansoft.com/2008/01/16/problema-con-firestarter-el-interfaz-eth0-no-esta-preparado/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>
