To use iptable and ipset created black and while list.
iptables -I FORWARD -m set --match-set blacklist src,dst -j DROP
iptables -I FORWARD -m set --match-set whitelist src,dst -j ACCEPT
How to redirect to another ip destination host if this host not in black or white list?
Example what I mean: user trying to open example.com but example.com not in blacklist or whitelist the firewall has to tredirect destination host to another server and user will see in browser typed url and information text: This site not in white list.
Thank you for your asnwers.