LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-26-2014, 10:02 AM   #1
linux425
LQ Newbie
 
Registered: Nov 2014
Posts: 4

Rep: Reputation: Disabled
Stupid question on Proxy


Sorry that I'm newbie on Proxy Server. I got one question. Below is the a very simple layout network layout:


PC ------> Proxy ----> Internet

I set my default gateway to Proxy. I just wonder:

1. In case I do not configure Proxy setting in client browser, can he access to internet (without additional setting on Proxy)?

2. If question one answer if yes, what is the difference when I configure Proxy setting in client browser. In user point of view, both of them can access internet

Really sorry for stupid question and may be I mix up some concept. Thank you very much!!!
 
Old 11-27-2014, 03:19 AM   #2
linuxgurusa
Member
 
Registered: Mar 2008
Location: Namibia, Swakopmund
Distribution: Redhat, Fedora, Centos, ClearOS, Mandrake
Posts: 151

Rep: Reputation: 29
Hi There

Firstly, you need to understand difference between fire-walled connection and proxy.
Your firewall can also be your proxy server, it looks like that is the case on your network.

On the firewall (default gateway) you need to either block direct port 80 ( browsing ) and force your browsers to put in Proxy setting for Internet access.

Or you can use IPTABLES to create Transparent proxy, which will automatically put all browsing through the proxy without users settings.

On the Firewall (gateway) You must add the following rul:

iptables -t nat -A PREROUTING -i $INTIF -p TCP --dport 80 -j REDIRECT --to-port 3128

This will automatically redirect all browsing to your Squid proxy server.

On the Squid configuration, you need to add the configuration for transparent proxy :

http_port 3128 transparent
http_port 3129 intercept

Hope this help
 
  


Reply



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
[SOLVED] stupid ip question jzoudavy Linux - Newbie 2 01-16-2013 03:44 PM
recovering "lost" users..... probably stupid question (stupid user.......) bigjohn Linux - Newbie 6 11-07-2009 06:51 PM
Stupid, stupid question; I lost Klaptop. :( Surfrider Slackware 2 08-31-2005 09:12 PM
Stupid Question!! dj9928 Linux - Software 6 04-19-2005 01:18 PM
Stupid Dumb Stupid Question... drigz Linux - Software 3 09-23-2004 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:19 PM.

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