Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-27-2006, 12:02 PM   #1
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
Block accessing inernet directly how to

Friends ,

I have a Internet Gateway server (REdhat Enterprise 4) Which IP is Suppose . Now in this Network i have two clients , which IP is
and . 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.........

Old 03-27-2006, 02:16 PM   #2
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31

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.

Last edited by pablob; 03-27-2006 at 02:19 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to block people from accessing my site if they came from a certin url? abefroman Linux - Security 5 02-13-2006 11:16 PM
cannot connect to the inernet with kppp in fc2 shams Fedora 1 10-15-2004 09:58 PM
inernet connection nathan15243 Linux - Newbie 25 11-25-2003 07:04 PM
SQUID:How can I block my LAN clients accessing Internet mwj Linux - Networking 1 10-27-2003 04:01 AM
i want good inernet speed tarak4u Linux - Networking 3 06-04-2002 03:08 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration