#! /nix/store/4nmqxajzaf60yjribkgvj5j54x9yvr1r-bash-5.1-p12/bin/bash -e
# Helper command to manipulate both the IPv4 and IPv6 tables.
ip46tables() {
  iptables -w "$@"
  ip6tables -w "$@"

}


# Clean up in case reload fails
ip46tables -D INPUT -j nixos-drop 2>/dev/null || true

# Clean up after added ruleset
ip46tables -D INPUT -j nixos-fw 2>/dev/null || true

ip46tables -t raw -D PREROUTING -j nixos-fw-rpfilter 2>/dev/null || true




