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
Mexican Pharm: mexico online pharmacy – Mexican Pharm
https://indianmedsdelivery.xyz/# buy medicines online in india
???? ?????? – ?????? ??????? ???????????? ??????? ????????
???????? ???????? Kraken – ???? ?? ?????????? ????????? ? ????????, ??? ????????? ?????? ????????????? ????????, ????????? ????????? ? ??????, ????? ????????? ?? ????? ?????? ? ?????? ??????????.
??????? ??????.
??????????? ????????????? ???????????? ??????????????????, ? ?????????? ????????? ????????? ?????????????.
?????? ? ?????? ?? ???????
?? ????? ??????????? ????? ?????? ? ??????:
• ??????? ??????????? ?????????? – ?? ????????? ? ???????????? ?? ??????? ? ????????????.
• ????????????? Bitcoin.
• ??????? ???????? VPN.
• ?????? ???????.
• ????????, ?????????????, ???????????? ?????.
• ?????????? ? SIM ?????.
• ?????????? ???????? – ? ????????, 1000, 2000 ? 5000 ???..
• ??????? ? ?????????? – ?? ??????? ????? ? ?????? ?? ?????? ??? ??????.
online pharmacy india: indian pharmacy paypal – online drugs order
https://indianmedsdelivery.xyz/# Online medicine order
mostbet Az?rbaycan aviator http://mostbet2015.help
pinup akkauntga kirish https://pinup39174.help
mostbet email ünvan? http://mostbet2015.help/
1 win ???????????? ??????? ??????????? ???? https://1winkg.in.net
mexico drug store: Mexican Pharm – mexican pharmacy near me
https://canadiantabs.com/# canadian pharmacy sarasota
mostbet vklad usdt mostbet vklad usdt
1win boks m?rc 1win boks m?rc
mostbet depunere Republica Moldova https://mostbet40596.help
??????????? ?????????????? ? ?????? 7 (499) 638-25-37 ???????????? ???????? ?????????? ??????? ? ??????? ?????? ?????????????? ??????????.
?????????????? — ??? ????? ????? ? ????????????? ???????? ? ???????? ????.
canadian pharmacies comparison: Canadian Tabs – Canadian Tabs
https://indianmedsdelivery.xyz/# india pharmacy mail order
https://indianmedsdelivery.xyz/# indian pharmacy online
??????????? ?????????????? ??? ???? ???? ???????? ????? ???????? ????????? ???????????? ???????? ?????????? ??????? ? ??????? ?????? ?????????????? ??????????.
??????????? ?????? ???????????? ?????????? ????? ????? ??? ?????????????????? ??????? ?????? ????.
melbet intrare site oficial melbet intrare site oficial
mostbet fiók ios mostbet2022.help
farmacia mexicana en linea: Mexican Pharm – mexi pharmacy
mostbet ç?xar?? tarixi https://mostbet2015.help/
world pharmacy india: Indian Meds Delivery – no rx needed pharmacy
Online medicine home delivery: top online pharmacy india – best online pharmacy no prescription
1??? ?????? https://www.1winkg.in.net
http://vetpharmfirst.com/# pet rx
mostbet app nélkül https://mostbet2022.help/
melbet slots http://melbet07892.help/
medstore online pharmacy express scripts mail order pharmacy overseas online pharmacy
mostbet lakcím módosítás http://mostbet2022.help/
instalare melbet apk instalare melbet apk
???? Kraken – ?????? ???????? ???????? ????????
?????? Kraken – ?????? ??????? ? ????????, ??? ???? ????? ????? ???, ?????????? ????????, ???????? ? ?????????????, ???????????? ????? ?????? ? ?????? ??????????.
?????? ??????? ??????.
??????????? ????????????? ???????????? ??????????????????, ? ?????????? ????????? ????????? ?????????????.
??? ????? ?????? ? ???????? ?? ????? Kraken
? ????????? ??????? ??????????? ????? ?????? ? ??????:
• ??????? ??????????? ????????????? ??????? – ?? ?????? ? ???? ?? ??? ? ???????.
• ????????????? ?????????.
• ?????????? ???????? VPN-????????.
• ?????? ???????.
• ?????? ???? ??????????.
• ?????????? ? ?????????? ?????.
• ????????? ?????? – ? ????????, 1000, 2000 ? 5000 ???..
• ???????????? ? ??????? – ?? ??????? ????? ? ?????? ?? ?????? ??? ??????.
discount pet meds: Vet Pharm First – Vet Pharm First
Vet Pharm First: vet pharmacy online – online vet pharmacy
pet prescriptions online: dog medicine – Vet Pharm First
https://ivermectinfirst.com/# buy liquid ivermectin
?????? Kraken – ?????? ???????? ???????? ? Darknet
?????? ?????? – ???? ?? ?????????? ????????? ????????, ??? ???? ????? ????? ???, ????????? ????????? ? ??????, ???????????? ?????? ? ????? ?????? ?????? ? ?????????.
?????? ???? ?? ????.
??????????? ????????????? ???????????? ??????????????????, ? ????? ????????? ??? ????? ??????.
??????? ?? ????? Kraken
?? ????? ????? ????? ????? ?????? ? ??????:
• ????????? ????? ?????????? – ?? ????????? ? ???????????? ?? ??????? ? ????????????.
• ????????? ???????????.
• ??????? ???????? ???.
• ???????? ??????.
• ?????? ???? ??????????.
• ?????????? ? ?????????? ?????.
• ????????? ?????? – ? ????????, 1000, 2000 ? 5000 ???..
• ???????????? ? ??????? – ?? ??????? ????? ? ?????? ?? ?????? ??? ??????.
I’m really impressed with your writing skills and also with the
layout on your weblog. Is this a paid theme or did you modify it yourself?
Anyway keep up the excellent quality writing, it is rare to see
a great blog like this one nowadays.
Vet Pharm First: Vet Pharm First – Vet Pharm First
mostbet kupon kodunu nec? aktiv etm?k http://mostbet2015.help/
I am regular reader, how are you everybody?
This post posted at this web page is actually nice.
vet pharmacy: Vet Pharm First – pet prescriptions online
melbet mize mari https://melbet07892.help/
mostbet lucky jet tippek https://mostbet2022.help
mostbet google play http://mostbet32570.help
cum func?ioneaz? cashout pe mostbet http://mostbet40596.help
https://ivermectinfirst.shop/# Ivermectin First
1win pul yat?rma üsullar? 1win pul yat?rma üsullar?
pet rx pet prescriptions online dog medicine