Date: Wed, 26 Sep 2007 07:03:01 +0700 From: vuthecuong <cuongvt@fpt.vn> To: Mel <fbsd.questions@rachie.is-a-geek.net> Cc: freebsd-questions@freebsd.org Subject: Re: PF: block out port 80 so that not allow clients in LAN to browse Internet via port 80 Message-ID: <46F9A1B5.9060205@fpt.vn> In-Reply-To: <200709260015.36772.fbsd.questions@rachie.is-a-geek.net> References: <46F91290.7050500@fpt.vn> <20070925224014.5f88fda7@gumby.homeunix.com.> <200709260015.36772.fbsd.questions@rachie.is-a-geek.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Mel wrote: On Tuesday 25 September 2007 23:40:14 RW wrote: On Tue, 25 Sep 2007 20:52:16 +0700 vuthecuong [1]<cuongvt@fpt.vn> wrote: Recently I used squid for cache proxy configured to go internet through port 3128. But internet browser in LAN still connect to Internet through port 80 if in conenction option of Internet browser is chose to connect directly to internet, not through proxy server. So how can I block out port 80 so that LAN clients must go to internet through port 3128 via proxy server? Tnx in advanced ________________ Blocking a port with PF is really basic. If you have to ask you would be better-off reading about PF first, before you do anything. [2]http://www.openbsd.org/faq/pf/index.html Well, he could block, but transparently doing it without annoying users is better(tm). Vuthecuong, the following line will redirect traffic from the local net to port 80 on the internet to squid on port 3128: rdr on $int_if proto tcp from $int_if:network to any port www -> \ $int_addr port 3128 where $int_if is the internal interface, $int_addr the address on the internal interface squid listens on and $ext_if the external interface. There's a full article on how to set this up, here: [3]http://www.benzedrine.cx/transquid.html tnx Mel. I learn that. tnx u very much References 1. mailto:cuongvt@fpt.vn 2. http://www.openbsd.org/faq/pf/index.html 3. http://www.benzedrine.cx/transquid.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46F9A1B5.9060205>