Skip to content

Instantly share code, notes, and snippets.

@LuisPalacios
Last active June 3, 2025 20:10
Show Gist options
  • Save LuisPalacios/1d5865d8bd59da1d2c077014a6485c3a to your computer and use it in GitHub Desktop.
Save LuisPalacios/1d5865d8bd59da1d2c077014a6485c3a to your computer and use it in GitHub Desktop.
Norte: Servicio para la activación del firewall. Parte 2
# Este servicio activa reglas con iptables llamando a un script
#
# Instalar con:
# systemctl enable firewall_2_post_network.service
#
[Unit]
Description=Activar reglas iptables despues de la red
Wants=network-online.target internet_wait.service
After=network-online.target internet_wait.service
[Service]
Type=oneshot
ExecStart=/bin/bash /root/firewall/norte_firewall_2_post_network.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment