Skip to content

Instantly share code, notes, and snippets.

@LuisPalacios
Created March 6, 2023 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LuisPalacios/caa9d72bcdc44ec1727452e9c6660074 to your computer and use it in GitHub Desktop.
Save LuisPalacios/caa9d72bcdc44ec1727452e9c6660074 to your computer and use it in GitHub Desktop.
Norte: Servicio para la activación del firewall. Parte 1
# Este servicio activa reglas con iptables llamando a un script
#
# Instalar con:
# systemctl enable firewall_1_pre_network.service
#
[Unit]
Description=Activar reglas iptables antes que la red
Wants=network-pre.target
Before=network-pre.target
[Service]
Type=oneshot
ExecStart=/bin/bash /root/firewall/norte_firewall_1_pre_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