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
- Cables de Network/ Ethernet Cat6 - December 9th, 2019
- Website de la Semana: TechBench (Baja Windows 10 ISO directo de Microsoft) - December 7th, 2019
- Laptop de la semana - December 7th, 2019
- Regresamos en el 2019! - December 31st, 2018
- Programa de la Semana: Windows 7 Recovery CD - January 9th, 2014
- Averigua la información de tu servidor Linux via web - January 7th, 2014
- Baja tus Torrents anónimamente - January 5th, 2014
- Como comprimir un archivo en Ubuntu atravez del Terminal (SSH) - January 5th, 2014
- Actualiza tus Programas de forma fácil. - March 3rd, 2011
- Desactiva tu disco C:\ de ser Compatido "Share" en Windows - March 1st, 2011
I’m not certain where you are getting your info, but good
topic. I must spend some time learning much more or understanding more.
Thanks for great info I used to be in search of this info for my mission. https://elev8live.blog/question/karin-herzog-vita-kombi-2-une-revolution-dans-les-soins-de-la-peau/
Fastidious answer back in return of this issue with firm arguments and explaining all regarding that. https://elev8Live.blog/question/lit-plateforme-en-bois-massif-allier-style-et-confort-pour-votre-chambre/
Hello there, I found your website via Google whilst searching
for a comparable subject, your web site got here up, it appears to be like great.
I’ve bookmarked it in my google bookmarks.
Hi there, simply changed into aware of your blog through
Google, and found that it is truly informative.
I’m going to watch out for brussels. I will appreciate if you
continue this in future. Many other folks will be benefited out of your writing.
Cheers! http://hatay.Ogo.org.tr/question/creme-visage-a-loxygene-de-karin-herzog-lelixir-de-jeunesse-par-une-peau-eclatante-7/
WOW just what I was searching for. Came here by searching for kids construction worker https://www.Ravanshena30.com/question/poussette-qui-monte-les-escaliers/
Hi, i think that i saw you visited my blog thus i came to “return the favor”.I am trying
to find things to improve my website!I suppose its ok to use some of your ideas!! https://Elev8live.blog/question/7-trucs-naturels-pour-soulager-la-douleur-au-nerf-sciatique-votre-chiropraticien-au-quebec-on-soccupe-de-vous-4/
Thanks for the auspicious writeup. It in reality was once a enjoyment
account it. Glance complicated to more added agreeable from you!
However, how could we communicate? https://porno-gallery.ru/user/GarrettLafferty/
It’s genuinely very complicated in this busy life
to listen news on TV, thus I just use world wide web for
that reason, and take the hottest information. https://Gratisafhalen.be/author/johnienoack/
Undeniably believe that which you stated.
Your favorite reason seemed to be on the web the easiest
thing to be aware of. I say to you, I definitely get irked while
people think about worries that they just don’t know about.
You managed to hit the nail upon the top and defined out the whole thing without having side effect ,
people could take a signal. Will probably be back to get more.
Thanks https://Seconddialog.com/question/exterminateur-de-rats-a-montreal-guide-pour-trouver-le-meilleur-service/
Hello! I’ve been reading your web site for some time now and finally
got the courage to go ahead and give you a shout out from Porter Texas!
Just wanted to say keep up the great job! https://elev8live.blog/question/g-mg-location-quadriporteur-wheelchair-rental/
If some one wants to be updated with most up-to-date technologies then he must be pay a visit this web site and be up to
date everyday. https://Www.debiesweide.be/index.php/item/27-gallery-2
https://biotpharm.com/# over the counter antibiotics
I feel this is one of the such a lot significant info
for me. And i’m satisfied studying your article. However want to commentary on few common issues,
The web site taste is perfect, the articles is truly
excellent : D. Just right job, cheers http://www.mobiset.ru/goto.asp?link=http://bcbweb.bai.ne.jp/~alh22101/cgi-bin/yybbs/yybbs.cgi%3Flist=thread
It’s difficult to find educated people about this subject, but you
seem like you know what you’re talking about! Thanks https://Porno-Gallery.ru/user/BMZAshly95546038/
Hey! I realize this is sort of off-topic but I
needed to ask. Does managing a well-established website like yours take a
large amount of work? I am brand new to running a blog however I do write in my
journal everyday. I’d like to start a blog so I can share my personal experience and
views online. Please let me know if you have any
ideas or tips for new aspiring bloggers. Appreciate
it! https://Elev8Live.blog/question/creme-bronzante-obtenez-un-teint-hale-et-naturel/
Asking questions are genuinely good thing if you are not understanding anything completely, but this paragraph presents fastidious understanding yet. https://Elev8live.blog/question/personal-lenders-in-canada-understanding-private-lending-options/
My relatives always say that I am killing my time here at web, but
I know I am getting knowledge daily by reading such
fastidious content. http://www.jic-magic.com/question/gym-carry-lessentiel-par-une-seance-de-sport-reussie-53/
get antibiotics without seeing a doctor: Biot Pharm – buy antibiotics online
antibiotic without presription: buy antibiotics online – buy antibiotics from india
cheapest ed pills: Ero Pharm Fast – Ero Pharm Fast
buy antibiotics from canada buy antibiotics online uk buy antibiotics for uti
cheapest online ed meds: Ero Pharm Fast – pills for ed online
best online doctor for antibiotics Biot Pharm over the counter antibiotics
Thanks for a marvelous posting! I really enjoyed reading it, you may be a great author.I will remember to bookmark your blog and may come back down the road.
I want to encourage continue your great job, have a nice afternoon! https://theblondnyc.com/__media__/js/netsoltrademark.php?d=R12imob.store%2Findex.php%3Fpage%3Duser%26action%3Dpub_profile%26id%3D275833
over the counter antibiotics: buy antibiotics online – Over the counter antibiotics for infection
cheapest antibiotics: BiotPharm – over the counter antibiotics
Online medication store Australia: pharmacy online australia – Pharm Au 24
Pharm Au24 Buy medicine online Australia pharmacy online australia
https://pharmau24.shop/# Buy medicine online Australia
what is the cheapest ed medication: where can i buy ed pills – Ero Pharm Fast
Ero Pharm Fast affordable ed medication Ero Pharm Fast
Ero Pharm Fast: where can i buy erectile dysfunction pills – ed meds online
Thanks a lot for sharing this with all people you actually understand what
you are speaking about! Bookmarked. Kindly additionally discuss
with my site =). We can have a link exchange arrangement between us https://co2budget.nl/forums/users/dennisppc8/
antibiotic without presription Over the counter antibiotics pills buy antibiotics online
Ero Pharm Fast: Ero Pharm Fast – Ero Pharm Fast
Meilleur Viagra sans ordonnance 24h Viagra sans ordonnance 24h Meilleur Viagra sans ordonnance 24h
I am regular visitor, how are you everybody? This article posted at this web site is really pleasant. http://Www.Water-For-Life.net/component/k2/item/12
pharmacie en ligne france pas cher: pharmacie en ligne avec ordonnance – pharmacie en ligne livraison europe
Acheter du Viagra sans ordonnance: Acheter du Viagra sans ordonnance – livraison rapide Viagra en France
kamagra gel: livraison discrete Kamagra – commander Kamagra en ligne
http://kampascher.com/# acheter Kamagra sans ordonnance
kamagra gel: commander Kamagra en ligne – acheter Kamagra sans ordonnance
cialis sans ordonnance: Pharmacie sans ordonnance – traitement ED discret en ligne
This article presents clear idea for the new visitors of blogging, that actually how
to do blogging and site-building. https://OKE.Zone/viewtopic.php?pid=1521804
achat kamagra [url=https://kampascher.shop/#]acheter Kamagra sans ordonnance[/url] acheter kamagra site fiable
Viagra generique en pharmacie: Viagra generique en pharmacie – Meilleur Viagra sans ordonnance 24h
Acheter Cialis 20 mg pas cher: commander Cialis en ligne sans prescription – Cialis pas cher livraison rapide
kamagra en ligne: acheter kamagra site fiable – pharmacie en ligne
Pharmacie Internationale en ligne commander Kamagra en ligne kamagra oral jelly
Acheter du Viagra sans ordonnance: Viagra sans ordonnance 24h – viagra sans ordonnance
http://ciasansordonnance.com/# acheter Cialis sans ordonnance