system

the Chamesle handbook, init, live ISO and install helpers
git clone https://github.com/tortr-rs/system
Log | Files | Refs | README | LICENSE

nftables (318B)


      1 #!/sbin/openrc-run
      2 # arch32's nftables ships only a systemd unit; this loads /etc/nftables.nft at boot
      3 description="the firewall"
      4 depend() {
      5 	before net
      6 	after sysctl
      7 }
      8 start() {
      9 	ebegin "Loading the firewall"
     10 	nft -f /etc/nftables.nft
     11 	eend $?
     12 }
     13 stop() {
     14 	ebegin "Flushing the firewall"
     15 	nft flush ruleset
     16 	eend $?
     17 }