Tim Lee | ae01a46 | 2020-06-18 10:28:18 +0800 | [diff] [blame] | 1 | [Unit] |
2 | Description=Save iptable rules | ||||
3 | DefaultDependencies=no | ||||
4 | After=shutdown.target | ||||
5 | |||||
6 | [Service] | ||||
7 | Type=oneshot | ||||
8 | RemainAfterExit=true | ||||
9 | ExecStart=/bin/sh -c "iptables-save > /etc/iptables/iptables.rules" | ||||
10 | |||||
11 | [Install] | ||||
12 | WantedBy=shutdown.target |