March 19, 2024, 02:43:37 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Configuring Squid Proxy server & Transparent Proxy  (Read 294806 times)

Offline Austin

  • New Member
  • Posts: 3
Configuring Squid Proxy server & Transparent Proxy
« Reply #150 on: June 05, 2006, 12:05:07 AM »
Hello , Finally I  get a Transparent Proxy running on a single machine , Thanks to the help of IRC

The method is simple , configure Squid for Transparent proxy by adding all necessary paramaters.

and the iptables command for it is

iptables -t nat -A OUTPUT -p tcp --dport 80 -m owner ! --uid-owner squid -j REDIRECT --to-port 3128

It works like a charm :)

Thanks
Austin

Offline lito

  • Linux Noob !
  • *
  • Posts: 5
squid proxy
« Reply #151 on: June 20, 2006, 07:19:36 AM »
i cant locate the       /usr/local/squid/etc/squid.conf

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Configuring Squid Proxy server & Transparent Proxy
« Reply #152 on: July 01, 2006, 07:01:35 AM »
sometimes its in /etc/squid/ .
You may try there.

Offline ruejos08

  • Linux Noob !
  • *
  • Posts: 6
POP3 problem
« Reply #153 on: August 02, 2006, 09:06:43 AM »
EI thenitin we have the same problem. Did you already solve it? I have already up a dhcp server and internet proxy server(i used squid for the proxy). But when we try to access our POP3 mail server with the Microsoft Outlook Express, coz the clients were WinXP, I encountered a problem and I cant connect to the server. Our internet explorer works but the OutLook Express dont. Is there something to do with my squid configuration. Please help me on this. Godspeed!

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Configuring Squid Proxy server & Transparent Proxy
« Reply #154 on: August 04, 2006, 01:50:31 PM »
It is most common problem and can be solved by port forwarding. It has been discussed so many times and I am you will get benefitted from old discussion we had on this forum.

Offline ruejos08

  • Linux Noob !
  • *
  • Posts: 6
POP3
« Reply #155 on: August 12, 2006, 12:56:01 AM »
Ei Ricky can you give me some link to those forums. Thanks!

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Configuring Squid Proxy server & Transparent Proxy
« Reply #156 on: August 12, 2006, 07:11:45 AM »
See Port forwarding
and NAT
Internet Sharing using NAT

There are other numerous post and you find those in proxy section or General networking section.

Offline ruejos08

  • Linux Noob !
  • *
  • Posts: 6
Creating cache dir
« Reply #157 on: August 22, 2006, 06:43:43 AM »
Ei Ricky I encounter a problem when Im trying to create a cache dir with the code
/usr/local/squid/sbin/squid -z

Failed to make swap directory /usr/local/squid/var/cache: (13) Permission denied.

Please help me on this. Thanks!

Offline ruejos08

  • Linux Noob !
  • *
  • Posts: 6
Creating Swap Directories
« Reply #158 on: August 22, 2006, 07:13:24 AM »
Eniwei I am using Squid 2.6 STABLE.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Configuring Squid Proxy server & Transparent Proxy
« Reply #159 on: August 23, 2006, 03:41:37 PM »
you have to see about permission structure, I have discussed same in this thread around page 4 or 6 . Kindly check that.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Configuring Squid Proxy server & Transparent Proxy
« Reply #160 on: August 23, 2006, 03:43:36 PM »
Well. I have discussed here.. --> http://www.linuxsolved.com/forums/ftopic116-0-asc-45.html

Offline ruejos08

  • Linux Noob !
  • *
  • Posts: 6
Problem with my microsoft outlook express
« Reply #161 on: August 24, 2006, 06:44:04 AM »
Thanks a lot Ricky. I have tried all of your recommendations but still it does not solved my problem.

I have a Linux DHCP server and Proxy server with Microsoft Windows clients. We are using microsoft outlook express to access our mail server. But with the Linux Proxy server I have a problem connecting. The internet explorer was ok.

I found out the property and here are the details
Server Port Numbers
Our outgoing mail(SMTP) used port 25  and  our incoming mail(POP3) used port 110.
Our mail server is mail.inzpect.com.
While connecting here is the error.

The host'mail.inzpect.com' could not be found. Please verify that you have entered the server name correctly. Account: 'inzpect.com', Server: 'mail.inzpect.com', Protocol:POP3,Port: 110, Secure(SSL):no, Socket Error:11004,Error Number: 0x800CCC0d.

Please help me solve this. Thanks a lot.

Offline debasishg

  • New Member
  • Posts: 1
Configuring Squid Proxy server & Transparent Proxy
« Reply #162 on: September 10, 2006, 06:08:17 PM »
Ricky,

I have found your tutorial and accroding the tutorial, i have configured my squid proxy in my Mandriva linux. i have also used your squid.conf file and put my IPs there and it was successfully running.

I have 25 client PCs. Due to soe internal problem, we have taken a DSL connection with a public IP which is mapped with our default intranet. We need to make the proxy setup in the browser to access the server with basic authentication. im using win xp and running analogX proxy to use the connection with the clients. now i have decided to use Linux and squid. i'm successful to make the connection with the clients using squid. but unable to use the redirection to the proxy address of our server. after going thru the tutorial, i think i have to use this

Code: [Select]
cache_peer <IP ADDRESS> parent 3128 no-query


if it is OK, then i have some query regarding this.

1. where do i put this line in to squid.conf file?
2. we are having diff ports to access the server as
Code: [Select]

HTTP:  <IP ADDRESS> port: 808
SSL:    <IP ADDRESS> port: 808
FTP:     <IP ADDRESS> port: 2121
Socks: <IP ADDRESS> port: 1080


how can i define these. currectly we need only HTTP.

Basicaly is it something like using a proxy server for a proxy server. [server will user proxy IP and clients will use proxy to access the proxy.]

now all the clients can get connected to the internet via SQUID.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Configuring Squid Proxy server & Transparent Proxy
« Reply #163 on: September 11, 2006, 07:09:34 PM »
put that line in begining mostly and squid handles all such request on one port so you don't need to define all such specially.

Offline arvindsony

  • Linux Noob !
  • *
  • Posts: 6
Re: Configuring Squid Proxy server & Transparent Proxy
« Reply #164 on: May 19, 2009, 11:42:07 AM »
nice info