We have OpenVPN Server installed on linux ec2 instance and on same instance mitmproxy is running.
As per our requirement, I want to use mitmproxy to log all the access logs which was browse by making connection with VPN.
It means that User connected to the VPN and if he browse a link either http/https these request will go the mitmproxy and then to internet.
I have tried to configuration iptable rules as well but no any log is getting captured. Both VPN and mitm on same server.
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080"