How To: Configure Squid Proxy Server: Home About Contact Howtos Intelligentmirror Memepost Memepress Videocache Subscribe
How To: Configure Squid Proxy Server: Home About Contact Howtos Intelligentmirror Memepost Memepress Videocache Subscribe
C H EC K OU T M Y BOOK ON
How To: Configure Squid Proxy Server S QU ID P R OXY S ER VER
by K U L B I R S A I NI
in A D M I NI S T R A T I O N, C O NF I G U R A T I O N, H O W T O , I NS T A L L A T I O N, P R O X Y S ER V ER ,
S ER V ER , S Q U I D
P OP U LAR P OST S
How To: Install ATI
C atalyst (fglrx) Drivers
How To: C onfigure VNC
Server
Fedora 12 ATI C atalyst
Drivers
How To: C onfigure Squid
Proxy Server
R EADER S / FOLLOW ER S
R EC ENT C OM M ENTS
Sandcaster on How To:
Recover Deleted Files in
Linux Using Photorec
Card Humour IMAP 1. When you want to have control on what people browse on your lan.
Review Linux
Tux Machines
Indic Fonts Instant Ubuntu Guides and
Messaging Javascript 2. When number of machine is more than the number of IP addresses
Tutorials
Level One Library Linux you can afford to buy. UnixMen
Graphics Drivers Live C D
3. When you want to help this holy world in saving some IPV4 addresses A R C HIVES
Mail Filter Microsoft MSN
Padma Plugin Select Month
Gaim (2)
# The port on which squid will listen for requests Games (1)
http_port 8080 Git (2)
# If 'cgi-bin' or '?' is in query, squid should not check with neighbours'/parents' cache GNOME (4)
# and should go to target web-server.
Google (8)
hierarchy_stoplist cgibin ?
Graphics (16)
# If url contains 'cgi-bin' or '?', then it must not be cached
Grub (2)
acl QUERY urlpath_regex cgibin \?
cache deny QUERY GSOC (5)
Also, if you want squid to be started every time you boot the machine,
execute the following command
You have a squid proxy server running now. You can ask clients to
configure there browsers to use 192.168.36.204 as a proxy server with
8080 as proxy port. Command line utilities like elinks, lynx, yum, wget
etc. can be asked to use proxy by exporting http_proxy variable as
below. Users can also add these lines to ~/.bashrc file to avoid exporting
every-time.
export http_proxy='http://192.168.36.204:8080'
export ftp_proxy='http://192.168.36.204:8080'
{ 1 trackback }
← P R EV I O U S C O M M ENT S
R EP LY
Hi ,
i have configured squid proxy server with two NIC in fedora 12.
Network configuration scenario:
Router-> proxy server-> switch -> clients(LAN)
where
Router = 172.15.0.1
Porxy server:
eth0:
ip= 172.15.0.2
mask=255.255.0.0
gateway=172.15.0.1
eth1:
ip= 172.16.1.1
mask=255.255.0.0
gateway= 172.15.0.2
clients:
ip= 172.16.1.10
mask=255.255.0.0
gateway= 172.16.1.1
iptables:
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT – [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A INPUT -m state –state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state –state NEW -m tcp -p tcp –dport 22 -j ACCEPT
-A INPUT -j REJECT –reject-with icmp-host-prohibited
-A FORWARD -j REJECT –reject-with icmp-host-prohibited
-A RH-Firewall-1-INPUT -m state –state NEW,ESTABLISHED,RELATED -
m tcp -p tcp –dport 8080 -j ACCEPT
COMMIT
R EP LY
R EP LY
hello,
THANKS,,
PARASHURAM
R EP LY
Dear all,
Vaibhav
← P R EV I O U S C O M M ENT S
Leave a Comment
Name *
E-mail *
Website
You can use these HTML tags and attributes: <a href="" title=""> <abbr
title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del
datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line=""
escaped="">
Submit
Fedora, the Fedora logo, Fedora Project and Red Hat are trademarks of Red Hat, Inc. The Fedora logo is used by permission.
All the articles on this blog are licensed under a Creative Commons Attribution-Share Alike 3.0 License.