Jump to content

Proxy Squid Installation


Guest cyberlinux
 Share

Recommended Posts

Guest cyberlinux

Guys help regarding Proxy Squid installation, here's the scenario after Installation Mandrake 10 on Celeron 333 pc I want to Install Proxy Squid 2.5 so I from the site http://www.squid-cache.org/ downloaded squid-2.5.STABLE7.tar.gz then save as to file:/home/admin/Documents

 

After downloading Squid 2.5 I run ./configure

here's the result?

$ ./configure

loading cache ./config.cache

checking for a BSD compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for mawk... no

checking for gawk... gawk

checking whether make sets ${MAKE}... yes

checking whether to enable maintainer-specific portions of Makefiles... no

checking for gcc... no

checking for cc... no

configure: error: no acceptable cc found in $PATH

 

what should I do now? what was the missing Software that I need to Install and How? hope you help me guys :thanks:

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

instead of compiling it, try installing Squid via the rpm. there's one on the MDK CD's, & after you install it, check update mirrors because there's been an update or 2 for it since then.

 

if you need help with basic configuration, i can do it later when i get home. i run Squid from home & use it as a proxy at work. there's thousands of lines of code in the config file, but all you have to do is edit 3 lines of that mess, punch a whole in your firewall to the appropriate port(s) & you're good to go.

 

unfortunately, i can't do it from memory, so i'd have to refer to my cheat sheets at home.

 

Chris

Link to comment
Share on other sites

i'm home now.......

 

once you get squid installed, all you have to do is edit 3 lines of /etc/squid/squid.conf to set up a simple proxy. here's a sample of mine..........

 

visible_hostname <hostname here>

unique_hostname <hostname here>*

#  TAG: http_port

# Usage: port

#  hostname:port

#  1.2.3.4:port

#

# The socket addresses where Squid will listen for HTTP client

# requests.  You may specify multiple socket addresses.

# There are three forms: port alone, hostname with port, and

# IP address with port.  If you specify a hostname or IP

# address, then Squid binds the socket to that specific

# address.  This replaces the old 'tcp_incoming_address'

# option.  Most likely, you do not need to bind to a specific

# address, so you can use the port number alone.

#

# The default port number is 3128.

#

# If you are running Squid in accelerator mode, then you

# probably want to listen on port 80 also, or instead.

#

# The -a command line option will override the *first* port

# number listed here.  That option will NOT override an IP

# address, however.

#

# You may specify multiple socket addresses on multiple lines.

#

# If you run Squid on a dual-homed machine with an internal

# and an external interface then we recommend you to specify the

# internal address:port in http_port. This way Squid will only be

#        visible on the internal address.

#

#Default:

http_port <port number here>**

 

*where <hostname here> is your default hostname

** where <port number here> is the port you want to use.

 

that's the only part of the whole config you need to edit to get a simple proxy going. feel free to read through all the other options at your leisure. :P

 

then, you need to open ports with your firewall. if you're using shorewall, the easiest way to do it is........

 

first, stop shorewall by doing in terminal as root........

 

service shorewall stop

 

open MCC (mandrake control center)->security->firewall. click the "advanced" button, and add the udp & tcp ports you want open. like this............

 

<port number> udp <port number> tcp

 

example: 6666 udp 6666 tcp

 

apply the changes, restart shorewall by doing in terminal as root..........

 

service shorewall start

 

then, to start squid, in terminal as root type.........

 

service squid start

 

to check status.........

 

service squid status

 

to stop...........

 

service squid stop

 

you then need to get your ip address & use that as the proxy to connect to. if you don't know your ip address, go HERE to find out.

 

and finally, to test it & use it...........

 

to test from the computer you're using as the proxy........ open a browser (i'll use Mozilla as an example, but any would do). go to edit->preferences->advanced->proxies. select the "manual proxy configuration" button. and, if it isn't there already, fill in the following ip address for all fields.......... 127.0.0.1 for ports, use the port number you selected as your proxy port. apply settings, now, try to connect to a web page. if you can, it's working! if not, go through the steps again & check your work. (and make sure Squid is running, too!)

 

to connect from a remote source, do the same as above, but instead of port 127.0.0.1, use your ip address in those fields.

 

(NOTE: many thanks to Fissy for helping me out with Squid back when i needed it!)

 

Chris

Edited by chris z
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...