I arranged a transparent Squid proxy which listens to port 3128 on localhost, to block some web sites.
I've tested the proxy using Firefox, and it works.
Then I ran this, hoping to redirect all the http requests to the proxy:
sudo iptables -t nat -A PREROUTING -p tcp -j REDIRECT --to-ports 3128
Sadly, nothing happens. The other browsers in my system don't seem to be using the proxy. I don't want to configure each browser, to use the proxy either.
sudo iptables -L
shows no rules assigned.
I'm on Ubuntu 13.04, and using a 3G USB modem (ppp0
) to connect to the Internet. Any advice is appreciated!