Skip to content

Instantly share code, notes, and snippets.

@CanadianJeff
CanadianJeff / firewall.user
Last active March 7, 2022 03:42
NEW FIREWALL
#!/bin/sh
# This file is interpreted as shell script.
# Put your custom iptables rules here, they will
# be executed with each firewall (re-)start.
# Internal uci firewall chains are flushed and recreated on reload, so
# put custom rules into the root chains e.g. INPUT or FORWARD or into the
# special user chains, e.g. input_wan_rule or postrouting_lan_rule.
. /lib/functions/network.sh