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
http://liraglutideglp1.com/# generic liraglutide
legal online pharmacy Victo Pharm overseas online pharmacy
what is the highest dose of semaglutide glp-1 semaglutide depression
https://semaglutideglp1.shop/# can you take metformin jardiance and rybelsus together
new pharmacy online top-rated online pharmacies medicine online
Today, I went to the beach front with my children.
I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She
placed the shell to her ear and screamed. There was a hermit crab inside and it
pinched her ear. She never wants to go back!
LoL I know this is totally off topic but I had to tell someone!
buy liraglutide online LiraglutideGlp1 liraglutide otc
http://liraglutideglp1.com/# buy victoza online
?»?international drug mart Victo Pharm online pharmacy without prescription
victoza delivery glp-1 generic liraglutide
trusted online pharmacy Victo Pharm buy drugs online
https://semaglutideglp1.shop/# farxiga and rybelsus together
how long does semaglutide last in fridge glp-1 drugs over the counter difference between semaglutide and ozempic
http://semaglutideglp1.com/# how does rybelsus help you lose weight
medicine online order trustworthy online pharmacy best rx pharmacy online
buy liraglutide online buy victoza online victoza weight loss
buy victoza liraglutide otc victoza
https://semaglutideglp1.shop/# how long do rybelsus side effects last
http://victopharm.com/# buy online medicine
victoza weight loss liraglutide pharmacy buy victoza online
shop medicine online Victo Pharm reputable overseas online pharmacies
glp 1 LiraglutideGlp1 liraglutide online
http://victopharm.com/# us pharmacy no prescription
3mg rybelsus novo nordisk rybelsus coupon starting semaglutide
peptide sciences semaglutide glp-1 drugs over the counter rybelsus 7 mg uses
buy victoza online glp 1 liraglutide fast delivery
semaglutide tablets for weight loss glp-1 drugs for weight loss reddit rybelsus
http://victopharm.com/# online drugs order
https://semaglutideglp1.shop/# is rybelsus a glp-1
generic liraglutide LiraglutideGlp1 victoza delivery
generic liraglutide buy victoza online liraglutide online
https://victopharm.com/# online pharmacy no prescription needed
rybelsus what is it used for glp-1 drugs over the counter semaglutide compounding pharmacy
top online pharmacy Victo Pharm pharmacy online
https://semaglutideglp1.shop/# weight loss drug semaglutide
rybelsus 9mg glp-1 drugs over the counter can you take rybelsus and mounjaro together
top online pharmacy Victo Pharm pharmacy no prescription required
no prescription pharmacy paypal secure medical online pharmacy overseas pharmacy no prescription
liraglutide otc victoza cheap liraglutide
reputable online pharmacy no prescription online pharmacy without prescription best online pharmacy
http://liraglutideglp1.com/# cheap victoza
https://semaglutideglp1.com/# do you need a prescription for semaglutide
victoza delivery LiraglutideGlp1 liraglutide
safe online pharmacies online pharmacy without scripts medicine online
online pharmacy without scripts Victo Pharm pharmacy websites
no script pharmacy trustworthy online pharmacy best online pharmacy no prescription
http://liraglutideglp1.com/# liraglutide online
rybelsus discount card semaglutide glp1 semaglutide las vegas
victoza generic glp 1 generic liraglutide
liraglutide online LiraglutideGlp1 liraglutide price