Im trying to setup a transparent proxy using IPtables but im not having much luck.
What I was hoping to do was forward all outgoing traffic to port 9040 and block everything else. Any ideas?
iptables -t nat -A OUTPUT ! -o lo -p tcp -m owner --uid-owner Mark -m tcp -j REDIRECT --to-ports 9040 iptables -A OUTPUT -m --uid-owner Mark -j DROP
I receive the following error -
(WARNING): UDP write to 22.214.171.124:21755 failed: Operation not permitted