Skip to content

Instantly share code, notes, and snippets.

@LuisPalacios
Created March 6, 2023 16:58
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/9d7131feb3503d327341065e93e01f18 to your computer and use it in GitHub Desktop.
Save LuisPalacios/9d7131feb3503d327341065e93e01f18 to your computer and use it in GitHub Desktop.
Sur: segunda para de la activación de reglas iptables durante el boot
# Este servicio activa reglas con iptables llamando a un script
#
# Instalar con:
# systemctl enable firewall_2_pre_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/sur_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