How to redirect https to http with iptables command
<p>There is a captive portal, named nodogsplash, running on my OpenWrt router. When a preauthenticated user visit a http url, browser will popup a webpage lead user to authenticate. But when user visit a https url, nothing happend.</p>

<p>I want the browser always pop up the autheticate webpage both visiting http and https urls.</p>

<p>I tried the following command, but only worked on http requests. When I visit a https domain name, it won't redirect to 192.168.88.210.</p>

<pre><code>iptables -t nat -I PREROUTING -p tcp -m multiport --dport 80,443 -j DNAT --to-destination 192.168.88.210:80
iptables -t nat -I POSTROUTING -p tcp -m multiport --dport 80,443 -j MASQUERADE
</code></pre>

<p>I read the <a href="https://github.com/nodogsplash/nodogsplash/issues/3" rel="nofollow noreferrer">github discussion</a>, but still don't know how to resolve this. Anyone can help me with iptables?</p>