资 源 简 介
The aim of this script is to provide an easy and effective way to quickly implement iptables rules on your computer. The idea is to use a small set of high-level functions which can handle 90% of your needs. If you need more advanced configuration I advise you to look at more complete solutions such as Firewall Builder or even this.
The following functions are currently available:
INPUT([bpf_filter]) -- authorize an incoming flow
OUTPUT([bpf_filter]) -- authorize an outgoing flow
FORWARD([bpf_filter]) -- forward a flow
DNAT(bpf_filter, to_addr) -- modify the destination of a flow
REDIRECT(bpf_filter, to_ports) -- redirect a flow to a local port
<