Routing internet to one port


I have had troubles installing a whitelist filter on my computer. The problem is that somehow firefox, opera and konqueror are able to go through proxies (by using direct internet). I would like to route all internet to one port. Thus I can control what travels through and what doesn’t. Even when I block the standard 80 or 8080 ports, the browsers seem to find other open ports.

Any tips to routing all trafic to one port?

Thanx in advance,

Sorry, but this idea is ridiculous.

“Internet” is a little more than only http, so how do you want to cope with all those different protocols arriving at the same port?

Perhaps you should have a look at “squid”, but don’t expect it to be a 100% bullet proof solution (because there is none).

Yes you are right, Internet as in http. I use squid, but I might have to figure something else out.

So, rephrasing: how to route all http traffic to one port?

Did you want to configure transparent proxy?
Here is example command to configure by iptable.
#iptables -t nat -A PREROUTING -i eth0 -p tcp -s
–dport 80 -j REDIRECT --to-ports 3128

Should not be done. Simple as that.