Skip to content

Instantly share code, notes, and snippets.

@LuisPalacios
Created March 6, 2023 16: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/ad2a727e744f323f911f1a602da5b70e to your computer and use it in GitHub Desktop.
Save LuisPalacios/ad2a727e744f323f911f1a602da5b70e to your computer and use it in GitHub Desktop.
Sur: Instalar reglas iptables
# 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/sur_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