mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
12 lines
568 B
Plaintext
12 lines
568 B
Plaintext
# 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.
|
|
|
|
ipset create gfwlist hash:ip
|
|
iptables -t nat -I PREROUTING -p tcp -m set --match-set gfwlist dst -j REDIRECT --to-port 8989
|
|
iptables -t nat -I OUTPUT -p tcp -m set --match-set gfwlist dst -j REDIRECT --to-port 8989
|