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
Semaglu Pharm: semaglutide dosage calculator – Semaglu Pharm
Semaglu Pharm: how long does rybelsus stay in your system – Semaglu Pharm
http://prednipharm.com/# Predni Pharm
Predni Pharm: prednisone 10 mg price – otc prednisone cream
Crestor Pharm Crestor Pharm Crestor Pharm
https://prednipharm.shop/# Predni Pharm
PredniPharm: Predni Pharm – Predni Pharm
?? ?????? ??????? ??????? ? ???????? ?? ???? ?? ?????? ?????? ? ?????????.
? ????? ?????????? ???? ????!
https://semaglupharm.com/# Semaglu Pharm
https://semaglupharm.com/# SemagluPharm
prednisone 20 mg pill: PredniPharm – PredniPharm
CrestorPharm: CrestorPharm – crestor cause leg cramps
semaglutide ozempic: SemagluPharm – semaglutide results
https://semaglupharm.com/# SemagluPharm
Semaglu Pharm: Rybelsus side effects and dosage – Semaglu Pharm
https://semaglupharm.shop/# SemagluPharm
SemagluPharm: Order Rybelsus discreetly – rybelsus bottle
FDA-approved Rybelsus alternative: semaglutide missed dose side effects – SemagluPharm
Predni Pharm: 10 mg prednisone – Predni Pharm
http://prednipharm.com/# prednisone 5084
https://semaglupharm.shop/# SemagluPharm
https://semaglupharm.shop/# SemagluPharm
PredniPharm: can i buy prednisone over the counter in usa – average cost of prednisone 20 mg
buying prednisone from canada where can i get prednisone PredniPharm
https://semaglupharm.com/# semaglutide alcohol
what does compounded semaglutide mean Rybelsus online pharmacy reviews does rybelsus cause hair loss
Lipi Pharm: LipiPharm – LipiPharm
Lipi Pharm: LipiPharm – LipiPharm
Rybelsus online pharmacy reviews: Semaglu Pharm – SemagluPharm
https://semaglupharm.com/# Rybelsus side effects and dosage
https://semaglupharm.com/# Semaglu Pharm
Crestor home delivery USA: Crestor home delivery USA – CrestorPharm
rybelsus 14 mg price in india semaglutide peptides what is the difference between ozempic and semaglutide
LipiPharm LipiPharm Lipi Pharm
https://semaglupharm.shop/# SemagluPharm
SemagluPharm: Rybelsus side effects and dosage – SemagluPharm
SemagluPharm: SemagluPharm – SemagluPharm
https://semaglupharm.com/# Buy Rybelsus online USA
rybelsus semaglutide tablets: SemagluPharm – semaglutide pancreatitis
https://lipipharm.shop/# can lipitor cause high blood pressure
PredniPharm: Predni Pharm – Predni Pharm
prednisone 15 mg tablet cheap prednisone 20 mg prednisone canada
https://lipipharm.shop/# lipitor side effects in females
Semaglu Pharm rybelsus costco mexico Rybelsus side effects and dosage
https://semaglupharm.com/# Semaglu Pharm
https://semaglupharm.com/# SemagluPharm
Crestor Pharm: CrestorPharm – Best price for Crestor online USA
Atorvastatin online pharmacy: FDA-approved generic statins online – LipiPharm
CrestorPharm: CrestorPharm – Generic Crestor for high cholesterol
Semaglu Pharm: Semaglu Pharm – semaglutide joint pain