Goal: capture traffic from my mobile phone, even with ssl connection.
I set up a Laptop with a Ethernet connection. Turned on a hotspot to share this connection to my mobile phone. Followed the Documentation. Internet on the phone is working perfectly fine until I enable the PREROUTING rules.
iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables -t nat -A PREROUTING -i wlan0 -p tcp --dport 443 -j REDIRECT --to-port 8080
Why can't I access the Internet from the phone after applying these rules?
Thank you already for your help.