Entries Tagged as ''

Como configurar iptables para nat

Tal vez a alguien les sirva esto. Si tienen una conexion a internet, y quieren compartirla a una red, con linux, se puede hacer con iptables. En mi caso, tengo una maquina con SuSE como firewall (iptables, o el susefirewall), con dos tarjetas de red. La eth0 esta conectada a la red externa ( internet ) y la eth1 a la red interna ( lan ). Solo hay que hacer la siguiente configuracion:

#para habilitar el nat
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

y configurar las maquinas dentro de la lan con la IP que tenga eth1 como router. Por ejemplo, si la eth1 le asignas 192.168.0.1, … entonces las maquinas dentro de la red las configuras como

ifconfig ethX 192.168.0.100  netmask NETMASK
route add default gw 192.168.0.1

Otra opcion es configurar un DHCP server ( fue lo que hice en mi caso ) para que pueda dar los DNS y el router a los clientes de DHCP.

Ah! Y si tienes IPs publicas extras, que le quieras asignar a maquinas dentro de la lan, se puede hacer: suponiendo que tienes una ip publica extra configura usando ifconfig para darle un alias a la tarjeta de red que tengas en la red publica, o la herramienta que tengas en tu distro ( dentro del yast en suse, o netconfig o lo que sea ). Despues, necesitas crear dos reglas:

iptables -t nat -A PREROUTING -p tcp -d 64.233.167.99 -j DNAT --to-destination 192.168.0.100
iptables -A FORWARD -i eth0 -d 192.168.0.100  -j ACCEPT

( suponiendo que tu ip local sea 192.168.0.100 y tu ip externa sea 64.233.167.99 … y si, esta ip es de google.com jaja )

Las reglas de arriba se pueden usar con –dport para direccionar solamente un puerto, en lugar de la IP completa.

Suerte.

Back

Ora si…

Despues de un buen de configuracion, iptables y otras chacharas, este blog esta de vuelta online. :D

Ohne Dich

Lyrics ©2004 Rammstein.

Ich werde in die Tannen gehen
Dahin wo ich sie zuletzt gesehen
Doch der Abend wirft ein Tuch aufs Land
und auf die Wege hinterm Waldesrand
Und der Wald er steht so schwarz und leer
Weh mir, oh weh
Und die Vögel singen nicht mehr

Ohne dich kann ich nicht sein
Ohne dich
Mit dir bin ich auch allein
Ohne dich
Ohne dich zähl ich die Stunden ohne dich
Mit dir stehen die Sekunden
Lohnen nicht

Auf den Ästen in den Gräben
ist es nun still und ohne Leben
Und das Atmen fällt mir ach so schwer
Weh mir, oh weh
Und die Vögel singen nicht mehr

Ohne dich kann ich nicht sein
Ohne dich
Mit dir bin ich auch allein
Ohne dich
Ohne dich zähl ich die Stunden ohne dich
Mit dir stehen die Sekunden
Lohnen nicht ohne dich

Unofficial Translation

I’m going to go into the fir trees
There where I last saw her
But the evening is throwing a cloth upon the land
and upon the ways behind the edge of the forest
And the forest it is so black and empty
Woe is me, oh woe
And the birds sing no more

Without you I cannot be
Without you
With you I am alone too
Without you
Without you I count the hours without you
With you the seconds stand still
They aren’t worth it

On the branches in the ditches
it’s now silent and without life
And breathing becomes oh so hard for me
Woe is me, oh woe
And the birds sing no more

Without you I cannot be
Without you
With you I am alone too
Without you
Without you I count the hours without you
With you the seconds stand still
They aren’t worth it without you
[Read more →]

Strange Days

Nunca me gustó contar historias, pero estar aquí es demasiado solitario, y en veces me tienen tan drogado que pienso que algún dia no regresaré a la lucidez.
[Read more →]

Time

Onsta? :(

Jack’s day

Si. Hoy es un dia Jack.
[Read more →]

Como quemar un iso de DVD en linux

La verdad, no me acordaba.   Busqué por google, y .. Dios … encontraba respuestas a cómo quemar un DVD diciendo “usa el k3b” o “usa una interface gráfica”.  Si claro, también es válido decir que si estas en windows, usa el Nero Burning Rom.  En mi caso, tengo gentoo, y tengo activados los flags para que compile e instale aplicaciones directamente de cvs en algunos casos ( instalé el E DR17 ), y los fuentes para el k3b no funcionan.  Pero por ahi me encontre una simple linea que era lo que estaba buscando:

growisofs -dvd-compat -Z /dev/dvd=openSUSE-10.3-GM-DVD-x86_64.iso

donde /dev/dvd es tu dispositivo de dvd ( en gentoo y creo suse asi es /dev/dvd )  :) asi de simple.  No clicks. No esperar que cargue todo lo “grafiquito”.  En la terminal vas viendo el progreso.

Claro, hay otras opciones, si alguien se sabe otras asi de simples, como dvdrecord, se vale ponerlo

Jueves

Alguien gusta? Beer

The Next 25 Years of Video Games

Let
’s just say it right now: Video games are going to dominate the freaking future. You’ll see it in your own lifetime.

We’re warning you, though, it’s going to get weird. Beginning with …

read more | digg story

La explicación de Windows ME

ballmer_peak.png