block internet if no squid proxy
hi !
it is working now, i mean squid proxy , but clients desactivate proxy and i want to force them to use proxy before they can explore internet thnak you |
well that's what a firewall is for. If you can please describe your architecture, we may be ale to help.
|
I've seen networks where NAT is simply turned off, leaving no way but proxy to get out.
|
i have linux server and local area network 192.168.1/24 and i configure a proxy which is working if i go to the explorer-internet options-connections-proxy 192.168.1.11 port 8080
it works, but clients delete proxy after i did that and they can go without proxy ... now i want to obligate that |
i mean to get internet you have to pass through the proxy first not optionally
|
no, i meant what phsycial architecture do you have? what form does your internet connectivity take? what device is terminating it etc..?
|
ok,
am using nat one card for internet and other for local , and i have router adsl |
So only allow the Proxy machine outbound access to destinations of port 80 and 443..
|
that is not what am asking for
|
no, that *IS* what you're asking for, he means you should block access to any other system on those ports. quite how you do it with the minimal information you have given us is a different question. why is this box routing in the first place? should you not just disable routing on it? are you using some firewall gui on this box already? just add port 80 and 443 to the block list there.
|
thank you all
as i mentioned i have squid proxy working well, but it work for the local post only if i set the proxy ip for them and port(they can disable proxy after i change it), and that is not what i dont want simply i want that to be automatically |
yes, you keep saying that and keep not giving us useful information. what are you doing for a firewall? is this box also the router etc..?
|
ok, am using iptables , i think i have to add rules to forward all http requests (coming to port 80) to the Squid server port 3128 !!!
|
i would advise against an automatic proxy myself, it's much nicer to have them correctly using it directly, as you then have more clarity and visibility of what's going on. if you do want a transparent proxy, then there are many many docs online about the iptables and squid modifications to do this.
http://www.faqs.org/docs/Linux-mini/...rentProxy.html as above, better to just block it normally though. |
thank you sooooooooooooooooooooooooooooo much
i appreciate your help thank you |
All times are GMT -5. The time now is 12:31 PM. |