Re: Gateway with Iptables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tarak Ranjan wrote:

Amos wrote:
I believe you need to exempt the traffic from squid (local machine IPA) from the REDIRECT about here.

$IPT -A PREROUTING -p tcp -s $SQUID_SERVER --dport 80 -j ACCEPT

... And use "http port 8080 transparent" in the squid.conf


> $IPT -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port $SQUID_PORT > ###############################################################################
but after applying this users are able to connect to the Internet directly without enable proxy. what else i have to do to stop direct connection , they must use proxy.


Huh? that should ONLY exempt the proxy, not the client machines. I'm not 100% certain of the rule as I use shorewall to simplify the config a lot.

Do you mean the users are actually logged into the proxy server?

Or that it _looks_ like clients can connect directly. Check the access.log of squid to be sure.

The entire point of transparent is so clients don't do any config, the proxy silently makes internet 'just work' for any allowed browsing.

Amos
-
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux