I'm trying to make SSL MITM attack but do not really understand how to configure my interfaces to preroute traffic.
I have a laptop, connected to a PC via Ethernet, the PC is connected to the rest of the network vie Ethernet as well.
The PC is running Linux. It has a bridge lets call it mimtbr, and I connected to the bridge the laptop's eth -
leth, and the PC's network -
Then I configure iptables:
sudo iptables -t nat -F sudo iptables -t nat -A PREROUTING -i leth -p tcp --dport 80 -j REDIRECT --to-ports 8080 sudo iptables -t nat -A PREROUTING -i leth -p tcp --dport 443 -j REDIRECT --to-ports 8443
localhost I have a running
sslsplit listening ports
PREROUTING doesn't work. The laptop can connect to any web-site directly.
Can someone suggest me what I'm doing wrong, please.