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
SemagluPharm Semaglu Pharm Rybelsus 3mg 7mg 14mg
LipiPharm: Lipi Pharm – Atorvastatin online pharmacy
Predni Pharm: PredniPharm – Predni Pharm
ordering prednisone: no prescription prednisone canadian pharmacy – PredniPharm
https://prednipharm.com/# 10mg prednisone daily
Crestor Pharm: what is the drug rosuvastatin used for – CrestorPharm
https://crestorpharm.shop/# Affordable cholesterol-lowering pills
SemagluPharm SemagluPharm semaglutide thyroid cancer
Lipi Pharm: FDA-approved generic statins online – Lipi Pharm
prednisone 1 mg for sale: 1 mg prednisone cost – PredniPharm
SemagluPharm: rybelsus to ozempic conversion – Semaglu Pharm
prednisone sale: prednisone 5084 – PredniPharm
can lipitor lower blood pressure Lipi Pharm Online statin drugs no doctor visit
SemagluPharm: how much weight can you lose on rybelsus in a month – SemagluPharm
CrestorPharm: No doctor visit required statins – Crestor Pharm
Crestor Pharm Crestor Pharm doxycycline and rosuvastatin
Predni Pharm: Predni Pharm – Predni Pharm
Predni Pharm prednisone 20 tablet prednisone 20mg capsule
can i drink coffee with rosuvastatin: CrestorPharm – Crestor Pharm
Order cholesterol medication online: can lipitor cause pancreatitis – atorvastatin and omeprazole
Affordable Lipitor alternatives USA: Lipi Pharm – cost of lipitor without insurance
Crestor Pharm Over-the-counter Crestor USA Crestor 10mg / 20mg / 40mg online
http://lipipharm.com/# best time to take atorvastatin and clopidogrel
Online pharmacy Rybelsus: Safe delivery in the US – semaglutide headache
prednisone 20 mg in india how much is prednisone 10 mg PredniPharm
prednisone 4 mg daily: PredniPharm – PredniPharm
Lipi Pharm: LipiPharm – LipiPharm
Lipi Pharm: LipiPharm – lipitor nursing interventions
Semaglu Pharm SemagluPharm SemagluPharm
PredniPharm: prednisone brand name canada – PredniPharm
Predni Pharm Predni Pharm prednisone 10mg tablet price
LipiPharm: lipitor vs crestor price – ?»?Buy Lipitor without prescription USA
Crestor Pharm: CrestorPharm – Crestor mail order USA
Crestor Pharm: CrestorPharm – Crestor Pharm
http://lipipharm.com/# Discreet shipping for Lipitor
Best price for Crestor online USA Order rosuvastatin online legally Buy cholesterol medicine online cheap
Lipi Pharm: Lipi Pharm – FDA-approved generic statins online
https://crestorpharm.com/# CrestorPharm
canadian pharmacy rybelsus how many mg is 20 units of semaglutide SemagluPharm
prednisone 40 mg tablet: 40 mg prednisone pill – prednisone brand name us
Affordable Rybelsus price: semaglutide oral dose for weight loss – SemagluPharm
PredniPharm: Predni Pharm – prednisone 20 mg
side effects of crestor vs lipitor: Lipi Pharm – plavix vs lipitor
Crestor Pharm: what are the side effects of taking crestor – how much is rosuvastatin without insurance
buy prednisone with paypal canada: Predni Pharm – Predni Pharm
prednisone over the counter uk prednisone online sale PredniPharm
CrestorPharm: does rosuvastatin cause hair loss – Crestor Pharm
https://semaglupharm.com/# Semaglu Pharm
?»?Buy Lipitor without prescription USA FDA-approved generic statins online Lipi Pharm
https://semaglupharm.com/# does semaglutide affect your period