I'm currently trying to intercept all HTTP and HTTPS requests that go over my server and redirect them to Privoxy for filtering.
This works fine for HTTP requests with the following iptables rule:
iptables -A PREROUTING -p tcp -m tcp -i eth0 --dport 80 -j REDIRECT --to-ports 8118
However when I tried to redirect HTTPS requests as well via
iptables -A PREROUTING -p tcp -m tcp -i eth0 --dport 443 -j REDIRECT --to-ports 8118
I can't connect to any HTTPS website at all, not only those that I blocked (I understand from browsing through the reports that only the hostname can be blocked, not the path).
However when I enter the configuration in my client's browser(s) manually, it works fine (same browser that I used when testing the redirection).
Any ideas why this could fail?
I'm using Privoxy 3.0.19 on a Debian 7.2 system.
Help much appreciated!