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
Tadalafil price: Tadalafil Tablet – Tadalafil Tablet
http://precisioncarepharm.com/# Buy Vardenafil online
BlueLine: BlueLine Pharmacy – BlueLine
https://flexdosepharmacy.shop/# Purchase Cenforce Online
https://precisioncarepharm.shop/# Levitra 10 mg buy online
The US president raged at NATO allies over defense spending in meeting with the German chancellor, as Israel ordered its military to ‘advance’ in Lebanon
https://lifeflowpharmacy.shop/# LifeFlow Pharmacy
cheap ed: ChoiceRx Pharmacy – buy erectile dysfunction pills
https://lifeflowpharmacy.com/# LifeFlow
Buy Vardenafil 20mg: Levitra 20 mg for sale – Buy Levitra 20mg online
BlueLine: BlueLine – BlueLine
Purchase Cenforce Online Purchase Cenforce Online buy cenforce
ed medicine online: ChoiceRx – ed drugs online
https://bluelinepharmacy.com/# cheap viagra
FlexDose Pharmacy buy cenforce cheapest cenforce
BlueLine Pharmacy: BlueLine Pharmacy – BlueLine Pharmacy
Hi my family member! I want to say that this post is awesome, nice
written and include approximately all important infos.
I’d like to see more posts like this .
LifeFlow: Cheap Cialis – Buy Tadalafil 20mg
Amazing! Its in fact awesome paragraph, I have got much clear idea concerning from this paragraph.
http://lifeflowpharmacy.com/# buy cialis pill
Cheapest Sildenafil online generic sildenafil BlueLine
buy cialis pill: Buy Tadalafil 10mg – LifeFlow Pharmacy
https://precisioncarepharm.com/# Levitra 10 mg buy online
https://bluelinepharmacy.shop/# BlueLine Pharmacy
https://lifeflowpharmacy.com/# Generic Tadalafil 20mg price
http://lifeflowpharmacy.com/# Cialis 20mg price in USA
BlueLine: best price for viagra 100mg – BlueLine Pharmacy
https://lifeflowpharmacy.shop/# LifeFlow
LifeFlow: LifeFlow Pharmacy – LifeFlow
BlueLine: BlueLine – BlueLine Pharmacy
For newest news you have to pay a quick visit world-wide-web and on internet I found this website as a finest
website for latest updates.
https://lifeflowpharmacy.shop/# LifeFlow
LifeFlow LifeFlow Pharmacy LifeFlow
order cenforce: cheapest cenforce – Cenforce 150 mg online
order cenforce: buy cenforce – Cenforce 150 mg online
LifeFlow Pharmacy: LifeFlow – LifeFlow
https://choicerxpharmacy.shop/# erectile dysfunction drugs online
Hi Dear, are you truly visiting this website on a regular basis,
if so afterward you will without doubt take pleasant knowledge.
Cheap Levitra online: PrecisionCare – Vardenafil price
http://precisioncarepharm.com/# Buy Levitra 20mg online