* remove likely invalid iat DEPs
[t2sde.git] / package / network / nftables / nftables.init
blob91ab34e8f57510ab7353cf41eae916fd57630246
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/nftables/nftables.init
3 # Copyright (C) 2023 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 # Desc: Firewall based on nftables
13 # Runlevel: 16 rc3 rc4 rc5 rcX
16 main_begin
17         block_begin(start, `Starting nftables firewall')
18                 check(`D_sbindir/nft -f D_sysconfdir/nftables.conf')
19         block_end
21         block_begin(stop, `Stopping firewall')
22                 check(`D_sbindir/nft flush ruleset')
23         block_end
25         block_begin(restart, `Reloading firewall rules')
26                 check(`D_sbindir/nft flush ruleset')
27                 check(`D_sbindir/nft -f D_sysconfdir/nftables.conf')
28         block_end
30         block_begin(status, `Displaying currently loaded firewall rules')
31                 check(`D_sbindir/nft list ruleset')
32         block_end
33 main_end