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
https://fleximedsindia.shop/# cheapest online pharmacy india
canadian pharmacy world reviews pharmacy in canada canadian pharmacy drugs online
MexiCare Direct: phentermine in mexico pharmacy – MexiCare Direct
Search promotions galore ?n Kaizenaire.?om, Singapore’? premier shopping site.
Singaporeans’ flair f?r detecting promotions ?s developed in Singapore, th? be?t sanctuary f?r consumers
seeking ?arge amounts.
Singaporeans delight ?n journaling to review their day-to-day
experiences, and keep in mind t? stay upgraded ?n Singapore’? most recent promotions and shopping deals.
Starhub ?rovides telecommunications ?nd TV services with bundled plans, preferred b? Singaporeans f?r the?r amusement options and high-speed net.
Guardian ?ives drug store and personal treatment items leh, appreciated ?y Singaporeans for the?r practical wellness solutions ?nd promotions ?ne.
Aalst Chocolate crafts Belgian-inspired delicious
chocolates,enjoyed f?r smooth, indulgent bars and regional innovations.
Wah, ?? g?od leh, promotions ?n Kaizenaire.?om
?aiting one.
my web ?age singapore Discount
Hey there! Do you know if they make any plugins to assist
with Search Engine Optimization? I’m trying to get my
blog to rank for some targeted keywords but I’m not seeing
very good success. If you know of any please share.
Many thanks!
online shopping pharmacy india: Flexi Meds India – worldwide pharmacy online
http://fleximedsindia.com/# Online medicine home delivery
Easy North RX: canadadrugpharmacy com – my canadian pharmacy rx
buy medicines online in india: best india pharmacy – legitimate online pharmacy
https://fleximedsindia.com/# top 10 pharmacies in india
Easy North RX: Easy North RX – canadian pharmacy victoza
https://mexicaredirect.shop/# MexiCare Direct
best india pharmacy: Flexi Meds India – no rx needed pharmacy
Easy North RX Easy North RX canadianpharmacy com
indian pharmacy paypal: reputable indian online pharmacy – reliable online pharmacy
http://easynorthrxs.com/# Easy North RX
I enjoy what you guys are usually up too. Such clever work
and exposure! Keep up the good works guys I’ve added you guys to my own blogroll.
https://easynorthrxs.shop/# Easy North RX
medicine mexico MexiCare Direct MexiCare Direct
indian pharmacies safe Flexi Meds India online pharmacy without prescription
Easy North RX: canadian pharmacy in canada – canadian pharmacies that deliver to the us
MexiCare Direct: MexiCare Direct – MexiCare Direct
https://mexicaredirect.com/# MexiCare Direct
purple pharmacy online ordering: mexico meds – MexiCare Direct
mexican drug store: meds from mexico – mexican online pharmacies
https://mexicaredirect.com/# MexiCare Direct
http://fleximedsindia.com/# indian pharmacy
MexiCare Direct: mexico prescriptions – MexiCare Direct
http://fleximedsindia.com/# top online pharmacy india
Easy North RX: Easy North RX – canadian pharmacy world
Really interesting perspective.
http://fleximedsindia.com/# world pharmacy india
http://easynorthrxs.com/# Easy North RX
canadian pharmacy ed medications: pharmacy rx world canada – Easy North RX
?»?legitimate online pharmacies india reputable indian pharmacies no prescription pharmacy paypal
Very good blog! Do you have any tips for aspiring writers?
I’m hoping to start my own website soon but I’m a little lost on everything.
Would you propose starting with a free platform like WordPress or go for a paid option? There are so many options out
there that I’m completely overwhelmed .. Any recommendations?
Appreciate it!
Thanks for every other informative blog. Where else may
I am getting that kind of information written in such an ideal method?
I’ve a project that I’m just now running on, and I have been at the glance out for such information.
Excellent way of describing, and fastidious piece
of writing to obtain facts on the topic of my
presentation subject matter, which i am going to deliver in university.
An intriguing discussion is definitely worth comment.
I think that you ought to write more about this issue, it may not be a
taboo matter but usually folks don’t talk about such issues.
To the next! Kind regards!!
hydrocodone mexico pharmacy: MexiCare Direct – MexiCare Direct
When someone writes an paragraph he/she keeps the plan of a user in his/her brain that how a
user can understand it. Therefore that’s why
this piece of writing is great. Thanks!
best online mexican pharmacy: MexiCare Direct – MexiCare Direct
Easy North RX: medications canada – Easy North RX
https://fleximedsindia.com/# indian pharmacies safe
best canadian pharmacy to buy from: canadian pharmacy review – canadian pharmacy world reviews
ordering drugs from canada: Easy North RX – online canadian pharmacy reviews
https://easynorthrxs.shop/# Easy North RX
online pharmacy india: indian pharmacies safe – pharmacy websites
Definitely imagine that that you said. Your favorite reason seemed to be at the internet the easiest thing to take into accout of.
I say to you, I certainly get annoyed while people consider concerns that they plainly do not realize about.
You managed to hit the nail upon the highest and defined out the entire
thing without having side-effects , folks could take a signal.
Will likely be again to get more. Thank you
https://mexicaredirect.com/# MexiCare Direct