All your (http,https) traffic belongs to squid

phoe6: hello, I have setup a squid proxy running at port 3128; I want all my HTTP as well as HTTPS to proxy to through this one only. what should I do? (the tutorials are too wide and I think I am impatient too :( )

rob0: um, hire someone to do it for you?

phoe6: :) well, it is just two lines rob0. :) I am trying it out.,

phoe6: Sorry, if I sounded offending with the question. Let me try it and ask specific quesitons.

rob0: np, that is how to do it: try things, read manuals, ask specific questions when you get stuck.

phoe6: well I just had to write a filter rule to accept packets through squid-user and any traffic to port 80, pot 443 to reject. by this way my browsing is through squid proxy only.


$iptables -t filter -A OUTPUT -m owner --uid-owner 13 -j ACCEPT
$iptables -t filter -A OUTPUT -p tcp --dport 80 -j REJECT
$iptables -t filter -A OUTPUT -p tcp --dport 443 -j REJECT


Helpful entry: http://stuvel.eu/transproxy

No comments: