LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Block accessing inernet directly how to (https://www.linuxquestions.org/questions/linux-newbie-8/block-accessing-inernet-directly-how-to-429022/)

shipon_97 03-27-2006 12:02 PM

Block accessing inernet directly how to
 
Friends ,

I have a Internet Gateway server (REdhat Enterprise 4) Which IP is Suppose
192.168.10.1 . Now in this Network i have two clients , which IP is 192.168.10.2
and 192.168.1.3 . I have a proxy server in this Machine ,too .

In this condition my clients use internet via proxy and without using proxy.But
I want they only get access into internet via proxy . i want the condition so that
They cannot access internet directly.In this condition what should i need to do .

OR, How i can make a situation so that my client get access into internet only
using via proxy, and cannot access internet Directly ?plz inform me.........

thx.............

pablob 03-27-2006 02:16 PM

OK.

So, what you want is to stop traffic going to ports 80 & 443 (http & https) and redirect it to a proxy software ( Squid ). You redirect the traffic with an IP Filter software, available on almost every modern distro, and setting a rule for the redirection. (Search for ipchains, ipfilter & netfilter docs. - Ipchains is older.). With the ipfilter you also stop the rest of the traffic. That's how a firewall works. You'll have to deal with your distro's firewall graphic interface.

For that to take effect, youˇll have to set the server with the IP filter and proxy software as default gateway on the clients.


All times are GMT -5. The time now is 11:44 AM.