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
melbet kg https://melbet53498.help
mostbet retragere pe card http://mostbet75302.help
mostbet aviator bonusu https://www.mostbet2011.help
VeritasCare: VeritasCare – Cialis 20mg price in USA
mostbet instalare f?r? google play https://mostbet54831.help
https://corebluehealth.shop/# Sildenafil Citrate Tablets 100mg
sildenafil online CoreBlue Health CoreBlue Health
Cialis over the counter VeritasCare Buy Tadalafil 20mg
http://veritascarepharm.com/# Generic Tadalafil 20mg price
certified canadian pharmacy: CivicMeds – web pharmacy
CoreBlue Health: Cheap Sildenafil 100mg – CoreBlue Health
discount pharmacy: CivicMeds – medical pharmacy
??? ?????????? ??????? apk http://mostbet26809.help
mostbet o‘zbekcha http://www.mostbet68214.help
mostbet kazino bölm?si https://mostbet2011.help
?????? ????? ?? ??????? http://melbet53498.help
cum m? loghez pe mostbet cum m? loghez pe mostbet
http://veritascarepharm.com/# VeritasCare
mostbet hesab tarixç?si http://mostbet87216.help/
indian pharmacy CivicMeds online pharmacy without prescription
https://corebluehealth.com/# CoreBlue Health
Buy generic 100mg Viagra online: CoreBlue Health – CoreBlue Health
mostbet metode plat? Moldova https://mostbet54831.help
mostbet retragere in siguranta https://mostbet54831.help/
online canadian pharmacy canadian pharmacy king reviews reddit canadian pharmacy
sildenafil online: Cheap generic Viagra – CoreBlue Health
Hello there! I could have sworn I’ve visited this blog before but after browsing through many of the posts I realized it’s new to me.
Anyways, I’m certainly delighted I came across it and I’ll be bookmarking it and checking back
frequently!
top online pharmacy 247: CivicMeds – tadalafil canadian pharmacy
https://civicmeds.shop/# no prescription needed pharmacy
mostbet notificari rezultate http://www.mostbet54831.help
CoreBlue Health CoreBlue Health Cheapest Sildenafil online
CoreBlue Health CoreBlue Health Viagra without a doctor prescription Canada
http://veritascarepharm.com/# cheapest cialis
CoreBlue Health: CoreBlue Health – cheap viagra
CoreBlue Health: CoreBlue Health – CoreBlue Health
mostbet saytda slotlar mostbet saytda slotlar
canada pharmacy reviews: canadian pharmacy coupon code – online pharmacy indonesia
VeritasCare: Buy Tadalafil 20mg – VeritasCare
melbet plinko ?????? http://melbet53498.help/
mostbet poker mostbet poker
aviator ??????? http://mostbet26809.help/
mostbet crash t?limat http://www.mostbet2011.help
mostbet oferta bonus mostbet oferta bonus
CoreBlue Health viagra canada CoreBlue Health
http://civicmeds.com/# canadian 24 hour pharmacy
VeritasCare: Buy Tadalafil 10mg – Tadalafil Tablet
mostbet android qura?m?r https://mostbet87216.help
mostbet bonus nu se acord? http://www.mostbet54831.help
mostbet cashback hesablanm?r http://www.mostbet87216.help
http://civicmeds.com/# viagra canadian pharmacy vipps approved