Skip to main content
LinuxNetworkSeguridadShellSistemas OperativosTrucosUbuntu

Como configurar el firewall usando iptables (Ubuntu)

By 6 October 200736,345 Comments

Ya tienes Linux funcionando y puedes entrar a las paginas de internet pero….. alguien mas podrí­a entrar a mi maquina ….. aquí­ tenemos una forma simple de instalar un firewall.

Vamos a explicar la manera fácil y rápida de poder poner tu firewall a funcionar en tan solo 1 minuto.

Primero verifica si tienes {es:iptables} instalado, si no lo tienes usas este código para instalarlo abres el Terminal y escribes:

sudo apt-get install iptables

Después usando el editor de tu preferencia (nano, pico, vi, gedit etc.) harás un script y lo pondrás en “/opt/scripts” y lo vas a llamar “iptables.script”
por ejemplo:

sudo gedit /opt/scripts/iptables.script

El código que pondrás sera:

#!/bin/bash

# descarga todos los enlaces
iptables -F

# prepara las reglas de cada enlase pre-definido
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP

# permite coneccion establecidas por paquetes que vienen de otras computadoras
iptables -A INPUT -m state –state RELATED,ESTABLISHED -j ACCEPT

# no permite que nada mas entre
iptables -A INPUT -i eth+ -p udp -j DROP
iptables -A INPUT -i eth+ -p tcp -m tcp –syn -j DROP

# acepta todo de localhost
iptables -A INPUT -i lo -j ACCEPT

Después que este guardado activas el iptables y sabrás si esta funcionando usando:

sudo iptables -L -V

Después generas otro pequeño “init script” para poder activarlo en “/etc/init.d/firewall” este sera el comando que pondras:

sudo gedit /etc/init.d/firewall

Dentro de este archivo colocas el siguiente codigo:

#!/bin/bash
if [[ $1 == start ]] ; then
sudo /opt/scripts/iptables.script
else
sudo iptables -F
fi

Por ultimo lo sincronizas con /etc/rc.* usando las herramientas de “update-rc.d” para que el firewall se active antes que el network:

update-rc.d firewall start 20 2 3 4 5 . stop 99 0 1 6

Y aquí­ tendrás un firewall simple para que tu computadora este mas segura (no es recomendable para los servidores ya que no dejara que ningún paquete entre).

Ultimos 10 Temas Por Ernesto

36,345 Comments

  • With havin so much written content do you ever run into any problems of plagorism or copyright violation? My blog has a lot of
    completely unique content I’ve either authored myself or
    outsourced but it seems a lot of it is popping it up all over the web without my permission. Do you know any ways to help prevent content
    from being stolen? I’d really appreciate it.

  • I simply could not leave your web site prior to suggesting that I actually enjoyed the
    usual information an individual supply for your visitors?
    Is gonna be back often to inspect new posts

  • For those who love audiobooks, having the text as a companion is often helpful to check spelling of names or re-read complex passages. The prose is dense and sometimes requires a second look. An East of Eden PDF is the perfect companion to an audio narration. Our website provides a glossary of names and places, ensuring you can follow along accurately. We support multi-modal reading, ensuring you get the full benefit of Steinbeck’s complex narrative. https://eastofedenpdf.site/ The East Of Eden Letters Pdf

  • MichaelAbepe says:

    can you get generic clomid pills: can i order generic clomid tablets – how can i get clomid tablets

  • TravisJoymN says:

    ?????????????? ????? ????????? ???????????, ? ??????????? ????????????? ?????????? ???????? ??? ?????? ???????? ???????. ??????????? ??????????? ????????? ??????????? ?????????????? ??????? ??? ???????, ??? ????????? ? ???????????? ????????. ????????? ??????? ???????? ???????? ? ??????? ??????? ??? ????????????? ???????????? ??????????.

    ??????? ???????? — ???????? ???????? ??????????

    ??? ?????? ??????? ??????? ??????? ?????? ???????. ????????, ??????????????? ?? ????? ?????? ?????, ??? ??????, ???????? ??????????? ???????. ???????????? ? ?????? ???????? ????????????? ?? ??????????? ????????? ? ? ???????????? ??????????? ??????? ????????????

    ????????? ???????? ?? ?????? ?? ????????????? ????????????, ?? ? ?? ??, ??? ?????????? ??????????? ?? ??????? ? ????????? ??????? ???????. ???????????? ???????? ?? ?????????? ??????????? ???? ???????? ??????? ?????????? ??????. ??????? ?????????? ???? ?? ??? ?? ????? — ????????? ????????? ?????????????? ??????? ??????????????? ?????????.

    ?????? ? ?????????? ????????????

    ???????????????? ?????? ????????? ??????????? ???????????? ???????? ??? ?????????? ????????. ??? ???????? ????? ???????? ?? ???-??????? ????????? ??? ????????? ? ??????????? ?????????. ?????????? ??????????? ???????? ? ????????? ? ?????????? ???????, ??? ?????? ???????? ??? ???????????? ? ???????? ???????.

    ????????, ? ????? ???? ?????? ????????? ????????? ????????. ????????? ????? 60 ????? ??? ???????? ????????? ?????? ???????????. ?????????? ????????? ????????? ??????? ???????? ?? 10-30 ?????.

    ????? ? ??????? — ????????? ?????? ? ??????????

    ????????? ?????????? ????? ????? ????????? ????????. ?????? ??????? ?????????? ????????????? ???????????? ????????, ? ????? ?????????? ??????? ??? ????????? ????????. ???????? ????? ????????? ???????? — ?????????? ?????????? ????????? 1-2% ?? ??????????? ????.

    ??????? ??????? ????????. ??? ??????? ??????????? ????????? ??????, ?? ???????? ?????????????? ??????? ?? ???????? ??????. ??????? ? ???????? ??????????? — ??????? ???????? ???????.

    ??????????????? ??????

    ????????? ? ??????????? SSL-????????? ?? ???-??????? ?????????. ?????????? ?????????? — ??????????????? ?????? ??????. ???????? ?? ??????????? ????????????? ??????????? ??? ???????, ???? ????? ??????????? ????????.

    ????????, ??? ?????????? ??????? ????????. ?????????? ???????? ?????????? ????????????? ????????? ??? ???????? ??????, ?????? ????????? ??? ????????????? ????????? ??????? ???????????????.

    ????????????? ? ?????? ??????

    ????????? ???????? ????????? ????? ????????? ???????. ???????? ????????????? ???????? ???????????? ? ???????????? ?????????? ??? ?????? ????????. ?????? ??????? ?????? ???? ????????? ? ???????? ??????? ??????.

    ???? ???????? ?????? ?????????? ????? ???????? ??? ?????????????? ????????, ??? ????????? ?????????????. ???????????? ? ??????????? ?????????????????? — ???????? ????? ????? ?????????, ??? ?????????????? ? ??????????? ?????????? ????????.

    ?????? ?????????

    ???????????????? ?????? ?????? ????????????? 24/7 ? ????????? ?? ????????? ? ???????? ???? ?????. ?? ?????? ??????? ??????????? ??????? ?????? ??????????? ????????? ? ????????????, ????? ??????? ???????? ? ??????? ????????. ??????????? ?????????? ??????? ???????? — ??????-????, email, ?????????? ??? ??????? — ??????????????? ? ????????? ??????? ? ?????????????? ? ??????????????.

    ?????? ????????? ??? ??????????? ??????????? ????? ???????????? ?????????? ???????????? ???? ????????. ?? ???????????????? ? ????????, ???????? ???? ???????? ?????????????? ???????????? ????????. ?????????? ? ?????????????? ?????????, ????? ?????????????? ?????? ??????? ?? ????????. ???????: ?????? ????? ??????? ??????????? ???????????? ????? ?? ???????????? ?????????? ? ????????? ???????.

  • WalterGlode says:

    https://amitrip.us.com/# Generic Elavil

  • For anyone who has ever loved a rom-com, this book is a homage and a challenge. It asks us to find the romance in our own lives. A Better Than the Movies PDF is a tool to help you find that perspective. It is a narrative that ends with a feeling of hope and the certainty that real life is the best show in town. https://betterthanthemoviespdf.site/ Better Than The Movies Online Free Pdf?

  • MarcusMiC says:

    AmiTrip Relief Store: Elavil – AmiTrip

  • WalterGlode says:

    https://follicle.us.com/# Follicle Insight

  • The timeless appeal of the novel lies in its honesty. Austen portrays people as they are, with all their vanity and virtue. If you appreciate realistic fiction, this book is for you. A digital copy ensures that this truth is always with you. Many readers look for a Pride and Prejudice PDF to keep the book close. Our site celebrates this authenticity. Read the novel that tells the truth about human nature with a smile. https://prideandprejudicepdf.site/ Pride And Prejudice Manga Epub

  • MichaelAbepe says:

    Elavil: Amitriptyline – AmiTrip Relief Store

  • MarcusMiC says:

    buy stromectol pills: ivermectin 1 cream generic – Iver Protocols Guide

  • TravisJoymN says:

    ?????????????? ????? ?????????? ?????????????, ? ?????? ? ??? ?????? ????? ???????? ??? ?????? ???????????. ??????????? ??????????? ????????? ???????? ???????? ??????? ??? ???????, ??? ???????? ? ????????? ????????. ????????? ????? ?????? ? ?????? ???????? ??? ????????? ?????? ??????.

    ??????? ????????? — ??????? ????????? ????????????

    ??? ?????? ????? ??????????? ???? ???????????????? ???????. ???????, ?????????? ?? ????? ??????????????? ??????, ??? ? ??????????? ???????, ???????? ??????????? ???????????. ???????????? ? ?????? ????????? ???????? ?? ??????????? ??????? ? ? ???????????? ??????? ??????? ????????????

    ???????????? ?? ???? ?? ??????? ???????????, ?? ? ?? ??, ??? ????????????? ??????????? ?? ??????? ? ????????? ??????? ???????. ???????????? ?????????? ?? ???????????? ???????????? ?????? ??????? ????? ??????????? ????????? ?????????? ?????. ??? ?? ????? ???????????? ?????? ?? ??? ?? ????? — ????????? ????????? ???????????? ?????????? ?????????????? ?????????.

    ?????? ? ???????????

    ???????????????? ?????? ?????? ???????? ???????????? ???????? ??? ?????????? ????????. ??? ?????? ??????? ????? ?? ????? ??????? ??? ???????? ? ??????????? ?????????. ???????? ????????? ??????? ????? ? ?????????? ? ????????? ??????, ??? ?????? ??????????? ??? ????????? ? ???????? ????????????.

    ????????, ????????? ????? ???????? ????????? ??????????. ??????????? ????? 60 ????? ??? ??????????? ????????? ?????? ??????? ????????. ?????????? ??????? ???????? ??????? ?????? ?? 10-25 ?????.

    ????????? ? ???????? — ?????????? ???????????? ? ????????????

    ????????? ?????????? ????????? ????? ????????? ????????. ???????? ????? ?????????? ???????? ??????????? ????????, ? ????? ???????????? ????????? ??? ?????? ???????. ???????? ???????? ????????? ???????? — ?????????? ?????? ????? 1-3% ?? ?????????????? ?????????.

    ??????????????? ??????? ????????. ??? ???????? ????????? ?????? ?????, ?? ????????? ??????? ??????? ?? ???????? ?????. ???????????? ? ???????? ??????????? — ????????? ???????? ???????.

    ???????? ????????????

    ????????? ? ??????????? SSL-?????????? ?? ???-??????? ?????????. ?????????? ????? ????? — ??????????????? ????????? ??????. ?????????? ?? ??????????? ????????????? ?????????????? ??? ????????, ???? ?????? ??????? ?????????????.

    ???????, ??? ??????????? ???????? ??????. ?????????? ??????? ????????????? ???????? ??????????? ??? ??????? ????????, ?????? ????????? ??? ????????? ?????????? ???????.

    ??????????? ? ??????????????????

    ??????????????? ????????? ????????? ????? ????????? ?????????????. ??????? ???????? ???????? ???????????? ? ??????????? ?????? ??? ????????? ????????. ??? ???? ??????? ?????? ???? ????????????? ? ??????????????? ?????? ????????.

    ???? ???????? ?????? ?????????? ????? ????? ??? ????????? ????????, ??? ????? ??????????. ??????? ? ????????? ??????????? — ???????? ??????????? ????? ?????????, ??? ??????????? ? ?????????? ?????????? ????????.

    ????????????

    ??????????? ??????????? ????????? ???????? ????????????? ? ???????? ?? ????????? ? ??????????? ????????? ?????. ?? ?????? ??????? ??????????? ????? ????? ?????? ??????????? ?????? ? ?????? ?????????, ????? ??????? ????????????? ? ??????? ???????. ??????????? ????????? ??????? ????? — ??????-????, email, ???-????? — ??????????????? ? ????????? ??????? ? ?????????????? ? ???????????.

    ????? ????????? ???????? ??????? ??????? ??????????? ??????? ????????? ?????????. ?? ??????? ? ????????????, ? ??????????? ???? ??????????? ????????? ???????????? ??????????. ?????????? ? ?????????????? ????, ????? ?????????????? ?????? ??????? ?? ????????. ?????? ? ????: ???????????? ????? ??????? ??????????? ???????????????? ????? ?? ?????? ?????????? ? ????????? ???????.

  • MichaelAbepe says:

    how can i get generic clomid without insurance: buy generic clomid without dr prescription – fertility pct guide

  • WalterGlode says:

    https://iver.us.com/# stromectol ivermectin buy

  • StevenGuash says:

    https://follicle.us.com/# Follicle Insight

  • StevenGuash says:

    https://iver.us.com/# buy liquid ivermectin

  • Steinbeck himself considered East of Eden to be his magnum opus, the work that all his previous novels had been practicing for. The story is a brutal yet beautiful examination of human nature, destiny, and the power of choice. For those currently studying the novel, locating a reliable text is the first step toward understanding its magnitude. Whether you are using a paperback or searching for an East of Eden PDF to read on your laptop, the words hold the same power. We provide in-depth analysis and chapter summaries that assist readers in decoding the rich allegories presented in the text, making your journey through the novel much clearer.

  • For a quick reference during book club discussions, nothing beats a searchable Wuthering Heights PDF. You can instantly find that specific quote about souls or the description of the moors without flipping through hundreds of pages. The novel is dense with memorable lines that spark conversation. Having the text on your phone or tablet ensures you are always prepared to share your insights. Whether discussing the reliability of the narrators or the symbolism of the weather, a digital copy is a convenient companion for any literary debate.

  • There is a special charm in reading about a girl who thinks her life should be a movie, only to find out reality is far more interesting. Lynn Painter writes with a voice that is both humorous and poignant, making you root for the couple from chapter one. If you are trying to find a version to read tonight, looking for a PDF or digital copy is a quick solution. This story of fake dating and hidden feelings is perfect for anyone who wants a lighthearted yet meaningful escape into the world of YA romance.

  • Jane Austen’s work is a testament to the power of observation. She wrote about what she knew: three or four families in a country village. Yet, her work is universal. To see the world through her eyes, read her book. A digital version is a convenient lens. If you are looking for a Pride and Prejudice PDF, you appreciate her vision. Our site is a tribute to her talent, offering access to her most famous work. Observe the human condition through the pages of this classic.

  • MarcusMiC says:

    can you get generic clomid online: cost clomid price – can i get cheap clomid without prescription

  • MichaelAbepe says:

    fertility pct guide: can i order cheap clomid tablets – can i get cheap clomid without prescription

  • ???? says:

    Having read this I believed it was very enlightening. I appreciate you taking the time and energy to put this content together.

    I once again find myself spending a lot of time both reading and
    posting comments. But so what, it was still worthwhile!

  • Singapore’s education emphasizes secondary school math tuition ?s vital
    fo? Secondary 1 conceptual depth.

    Y?u see ?ia, Singapore’s math ranking worldwide ?s
    alwa?s supreme!

    Moms and dads, stability morally ?ith Singapore
    math tuition’s promotion. Secondary math tuition ?orks honestly.
    ?ith secondary 1 math tuition, quadratics fundamental.

    ?he outdoor secondary 2 math tuition sessions ?se math to nature.
    Secondary 2 math tuition measures real-?orld angles.
    Adventurous secondary 2 math tuition revitalizes minds.
    Secondary 2 math tuition connects t? environments.

    Secondary 3 math exams hold t?e essential to O-Level ?elf-confidence,
    making excellence non-optional. Strong outcomes prevent burnout ?n th? ?ast ye?r.
    They promote environmental awareness t?rough data analysis in math.

    Secondary 4 exams promote wholeness ?n Singapore’? sy?t?m.
    Secondary 4 math tuition examines attitudes.
    ?his comprehensive vie? strengthens O-Level development.

    Secondary 4 math tuition worths completeness.

    ?hile exams test aptitude, math serves ?s a key talent in the AI boom,
    driving advancements ?n translation software.

    Build ? love for math ?nd us? its principles ?n daily
    life to achieve excellence.

    ? core ?mportance ?s that it promotes healthy competition b? comparing
    t?mes wit? hypothetical peers ?n exams.

    Online math tuition ?-learning in Singapore boosts ?esults
    b? integrating parental involvement tools li?e shared dashboards.

    Wah ?ia, don’t fret ah, secondary school fun ?ne, noo need to pressure
    ?our kid unduly.

    Check out my web ?age – Kaizenaire Math Tuition Centres Singapore

  • MarcusMiC says:

    buy Elavil: AmiTrip – Elavil

  • The theme of revenge is the engine that drives the plot forward. Heathcliff’s calculated plan to destroy two families is mapped out in the pages of a Wuthering Heights PDF. It is a chilling look at how bitterness can fester over a lifetime. The digital book allows you to follow the steps of his vengeance, from his departure as a boy to his return as a wealthy man. It is a gripping narrative of retribution that questions the cost of holding onto a grudge. The story serves as a dark warning about the corrosive nature of hate.

  • MichaelAbepe says:

    Follicle Insight: cost generic propecia without dr prescription – cheap propecia

  • This book is a delightful romp through the ups and downs of high school romance. Lynn Painter has a gift for writing dialogue that sounds authentic and incredibly funny. For those who prefer screen reading, finding a Better Than the Movies PDF is the key to unlocking this gem. The story of Liz and Wes is a reminder that sometimes the person you are looking for has been right there all along, waiting for the script to change.

  • The enduring legacy of Jane Austen is built on this novel. It is the cornerstone of her reputation. To understand why she is a literary giant, this is the book to read. A Pride and Prejudice PDF connects you with literary history. Our site is a tribute to her genius. We ensure that her most famous work remains available to all. Witness the talent that defined an era.

  • There is a spiritual quality to the book that transcends specific religion. It is about the soul. It asks what it means to be a human being. Spiritual seekers often find great comfort in its pages. An East of Eden PDF allows you to keep this spiritual guide with you. Our website explores the spiritual dimensions of the text, discussing how it addresses the universal search for meaning. We provide a space for the soul-searching that the book inevitably triggers.

  • MarcusMiC says:

    Follicle Insight: buying generic propecia price – buying cheap propecia online

  • MichaelAbepe says:

    propecia without insurance: get propecia without rx – buy generic propecia without a prescription

Leave a Reply