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
mensv?¤rk gravid v 30: Svenska Pharma – billigt nagellack
Viagra pas cher livraison rapide france: Viagra homme sans ordonnance belgique – Viagra pas cher livraison rapide france
https://meximedsexpress.icu/# mexico medication
apotek 24 fullmakt apotek barn Svenska Pharma
mexi pharmacy: mexican pharmacy menu – mexican rx
Svenska Pharma bl?? tabletter Svenska Pharma
Prix du Viagra en pharmacie en France: Prix du Viagra 100mg en France – Viagra g?©n?©rique pas cher livraison rapide
LifeFlow Pharmacy: buy cialis pill – Cialis 20mg price in USA
order cenforce buy cenforce cheapest cenforce
http://lifeflowpharmacy.com/# LifeFlow
Buy Vardenafil 20mg online: PrecisionCare Pharm – ?»?Levitra price
Generic Viagra for sale: BlueLine – BlueLine
https://precisioncarepharm.com/# Generic Levitra 20mg
ed meds cheap: erectile dysfunction medications online – ed medication online
http://lifeflowpharmacy.com/# Cheap Cialis
BlueLine Pharmacy: BlueLine – best price for viagra 100mg
What i don’t understood is in fact how you are not actually much more well-favored than you may be now.
You’re so intelligent. You realize therefore considerably when it comes to
this subject, made me personally imagine it from a lot of varied angles.
Its like men and women aren’t interested except it’s something to accomplish with Lady gaga!
Your personal stuffs nice. Always handle it up!
BlueLine: order viagra – BlueLine Pharmacy
LifeFlow Pharmacy LifeFlow Pharmacy LifeFlow Pharmacy
Cenforce 100mg tablets for sale: cheapest cenforce – Buy Cenforce 100mg Online
https://bluelinepharmacy.com/# Order Viagra 50 mg online
online ed drugs: ChoiceRx Pharmacy – buy ed meds
sildenafil over the counter: Viagra tablet online – Cheap generic Viagra
http://lifeflowpharmacy.com/# LifeFlow
pills for erectile dysfunction online: cheap ed – cheap ed
https://choicerxpharmacy.shop/# order ed pills online
https://bluelinepharmacy.shop/# BlueLine Pharmacy
https://bluelinepharmacy.shop/# Sildenafil Citrate Tablets 100mg
Hello my loved one! I wish to say that this article is amazing, great written and come with approximately all important infos.
I would like to look extra posts like this .
LifeFlow Pharmacy LifeFlow Buy Cialis online
Generic Tadalafil 20mg price: Cialis over the counter – cialis for sale
Buy Cialis online: LifeFlow Pharmacy – LifeFlow Pharmacy
buy cenforce: Cenforce 150 mg online – Purchase Cenforce Online
where to buy erectile dysfunction pills order ed pills how to get ed meds online
order cenforce: order cenforce – Purchase Cenforce Online
http://precisioncarepharm.com/# Cheap Levitra online
BlueLine: BlueLine – BlueLine Pharmacy
?»?Levitra price: PrecisionCare – Levitra tablet price
Cenforce 100mg tablets for sale Buy Cenforce 100mg Online Cenforce 150 mg online
https://flexdosepharmacy.com/# Purchase Cenforce Online
https://flexdosepharmacy.com/# cheapest cenforce
https://bluelinepharmacy.shop/# BlueLine Pharmacy
https://flexdosepharmacy.com/# Cenforce 100mg tablets for sale
Levitra online USA fast: PrecisionCare Pharm – Levitra online USA fast
LifeFlow Pharmacy: Buy Tadalafil 5mg – Buy Tadalafil 5mg
Buy Cenforce 100mg Online: Purchase Cenforce Online – buy cenforce
https://bluelinepharmacy.com/# BlueLine
Buy Cenforce 100mg Online buy cenforce Purchase Cenforce Online
LifeFlow Pharmacy: LifeFlow – LifeFlow
http://lifeflowpharmacy.com/# LifeFlow