Okay, here we go.. I am using UFW on my Debian 8 server to block all incoming connections on ports 80 and 443, except for those that I have allowed. However, I need to redirect those dropped connections to another IP address (which hosts a website), letting those people know that their connection was denied. I know that there is not a way of doing that with UFW, but can it be done with iptables? (Or any other way for that matter.. I thought iptables could allow that) Note that I do not want to use squid poxy for authentication, mainly because it does not support SNI (for https connections), and is too complicated and extensive for the purpose I have (overkill).
Appreciate any help.