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
https://steadymedspharmacy.com/# SteadyMeds pharmacy
https://formulinepharmacy.shop/# trustworthy online pharmacy
mostbet O?zbekistonda kazino mostbet O?zbekistonda kazino
1win casino new slots https://www.1win21894.help
order medicine from mexico: AccessBridge – AccessBridge
best mail order pharmacy: world pharmacy india – overseas online pharmacy
https://accessbridgepharmacy.com/# AccessBridge Pharmacy
1win ??????? ??????? https://1win31864.help/
??????? ??????? apk ????????? ??????? ??????? apk ?????????
1win ??????? ?????????? https://www.1win38047.help
1win ?????? 404 https://1win31864.help/
SteadyMeds pharmacy: SteadyMeds pharmacy – the canadian drugstore
AccessBridge Pharmacy los algodones pharmacy online AccessBridge
https://steadymedspharmacy.shop/# SteadyMeds
canadian pharmacy meds reviews: SteadyMeds – canadapharmacyonline legit
Now I am going to do my breakfast, after having my breakfast coming yet
again to read further news.
my mexican pharmacy: AccessBridge Pharmacy – AccessBridge
I know this if off topic but I’m looking into starting my own blog and was curious what all is needed to
get setup? I’m assuming having a blog like yours would cost a pretty penny?
I’m not very web savvy so I’m not 100% sure. Any tips or advice would be greatly appreciated.
Cheers
mostbet demo slotlar http://mostbet20814.help/
1win sms not received 1win21894.help
?????? Zona-Novinki — ??? ???? ????? ??????? ????? ??? ???????
?????? ??? ???????, ????? ????? ??????? ??? ????????, ???? ?????, ?????? ?????? ??????? ? ????????, ? ???????, ??? ??????????, ??? ? ?? ????? ? ????? ??????? ??? ?? ?????????, ?????????? ?????????? ??? ? ????????? ??? ?????? ??????, ??????? ????? ??? ??? ??????. ???????? ?? ? Zona-Novinki ??????, ??? ? ???? ???? ?????????? ??????? ??????? ???????? ?????? ?????????
?? ??????? ???? ?????? ?? ??? ????, ????? ???????? ???? ??????????? ?????. ???? ?????? — ????????? ???? ?????. ?? ?????, ??? ?? ?????? ? ????????: ?????????? ?????, ????? ??????? ??? ???????? «?????????» ???? ? ??????, ?? ???????? ?? ????? ?????. ??????? ?? ???????? ???? ?????? ??, ??? ??????? «????????»: ?????? ??????? 2026 ????, ??????? ????????? ? Instagram ? Telegram, ????, ?? ??????? ?? ????? ????????? ????, ? ???????, ??????? ?? ?? ??????? ?? ?????? ?? ???????? ?????????? ??-?? ??????????????? ??????.
aviator 1??? http://1win31864.help
https://steadymedspharmacy.shop/# SteadyMeds pharmacy
top-rated online pharmacies: FormuLine Pharmacy – buy online medicine
?????? JetX ? ??????????? ?????????? crash?????
?????? ? ????? JetX ?????? ????? ??????????? ????? ???????, ??????? ????? ?????????? ? ??????? ???????????. ????????? JetX ????????? ? ????????? crash????, ??? ????????? ??????? ?? ?????????, ??????? ?????? ?? ?????????? ??????? ?????????. ?????? ?????? — ?????? ??????? ??????? ?? ????, ??? ????? ??????????.
????????????? ????????? ???????? Smartsoft Games. ????????? ??????? ???????? ???? ?????? ??????? ???????????? ? ?????? ?????????????.
???????? JetX
??????? ??????? ? ??????? ???????? JetX ???????? ?????. ????? ??????? ?????? ????? ?????? ??????. ????? ????? ?? ?????? ?????????? ???????, ??????? ???????? ???????????, ? ??????????? ???????? ?????????? ?????????????.
???????? ?????? — ??????? ?????? ?????? ??????. ???? ????? ???????? ??? ??????? ?? ???????, ????? ????? ?????????, ?????? ?????????? ?? ??????? ???????????. ???? ??? — ????? ???????????.
?????? ?????? ???????? JetX
JetX ?????? ?????????? ??? ???????????, ????????? ??????? ???? ????? ??????????:
– ??????? ???????
– ??????? ??????
– ?????????????? ????? ????????
– ??????? ????????????? ?????????
????? ????, ?????? JetX ???????????? ??????? ??????????, ??????? ????????? ?????? ????????? ? ???????????????? ??????.
????????? ???? ? JetX
???????? ?? ??, ??? ???? ???????? ?? ???????????, ?????? ?????? ?????????? ?????? ???????.
?????? ??????
????? ???????? ??????? ?? ?????? ?????????. ????? ?????? ????????? ???? ?????? ??????.
???? ?? ??????? ?????????????
????????? ?????? ???? ??????? ?????????. ????? ????? ????? ???????? ???????????? ???????, ?? ? ???? ??????? ??????????? ???? jetx
???????? ??????????? JetX
?????? ????????????? ?????????? ????????? ????? ??? ???? ? JetX ??????. ????? ???????? ????????????????:
– ????????? ?????
– ???????? ??? ???????? ??????
– ??????? ??????????
????? ??????????? ???????? ????????? ??????? ?????? ??? ??????.
?????????? JetX
???? JetX ???????? ?? ?????? ?????????? ????????? ?????. ??? ????????, ??? ????? ??????????? ????????.
? ??????????? ????????????? ????? ???? ???????? ???????? ?????????.
????? ? JetX
?????? ? JetX ?????????? ??????? ??????? ???????. ????????? ??????? ???????? ???? ???????? ??? ????????, ??? ? ??????? ???????
worldwide pharmacy: world pharmacy india – reliable online pharmacy
AccessBridge AccessBridge AccessBridge
https://accessbridgepharmacy.shop/# good online mexican pharmacy
worldwide pharmacy: indian pharmacy online – online pharmacy
http://steadymedspharmacy.com/# canadianpharmacyworld
http://steadymedspharmacy.com/# SteadyMeds pharmacy
1win setare limba romana 1win setare limba romana
AccessBridge Pharmacy: AccessBridge Pharmacy – mexican rx
1win ????? ???????? https://www.1win31864.help
1win ??????? https://www.1win31864.help
Hi there all, here every one is sharing these kinds of familiarity, therefore it’s good
to read this blog, and I used to pay a visit this website everyday.
1win oglinda MD https://www.1win14578.help
http://steadymedspharmacy.com/# canadian pharmacy drugs online
https://accessbridgepharmacy.shop/# pharmacy delivery
SteadyMeds pharmacy: SteadyMeds pharmacy – SteadyMeds
lucky jet 1win Moldova lucky jet 1win Moldova
melbet aviator ?? ?????? melbet aviator ?? ??????
https://formulinepharmacy.shop/# legal online pharmacy
SteadyMeds SteadyMeds SteadyMeds pharmacy
1win nu pot retrage 1win26495.help
SteadyMeds: reliable canadian online pharmacy – SteadyMeds
1win ????? ???? [url=www.1win31864.help]www.1win31864.help[/url]
pharmacy in canada: canadian pharmacy mall – SteadyMeds
https://steadymedspharmacy.com/# SteadyMeds
mostbet promo kod 2026 mostbet promo kod 2026