blob: 9c340bd486a4c1c946a195ba9f3bfe9ee1623a81 [file] [log] [blame]
Tim Leeae01a462020-06-18 10:28:18 +08001[Unit]
2Description=Save iptable rules
3DefaultDependencies=no
4After=shutdown.target
5
6[Service]
7Type=oneshot
8RemainAfterExit=true
9ExecStart=/bin/sh -c "iptables-save > /etc/iptables/iptables.rules"
10
11[Install]
12WantedBy=shutdown.target