Sponsored Content
Top Forums UNIX for Advanced & Expert Users Setup a Reverse Proxy on Squid Post 302439193 by kidzer0 on Friday 23rd of July 2010 04:09:25 AM
Old 07-23-2010
Setup a Reverse Proxy on Squid

Hi all,
The scenario is:
Image
- With:
+ 192.168.100.0/24 : internet link (simulation)
+ Multiple Websites are hosting in local.
+ Complete DNS configuration.
+ OS: CentOS 5
- Requirements:
Configure Squid Proxy as Reverse Proxy to redirect IP to local website when receive queries from internet users.
*P/S: I've read the documentation from squid : Optimising Web Delivery and Visolve - Open Source Solutions | Squid Cache Proxy Support, but when I edit the squid.conf file, the squid proxy was down, can't restart Smilie
thx for ur consideration,

---------- Post updated 07-23-10 at 10:41 AM ---------- Previous update was 07-22-10 at 03:56 PM ----------

a silent...............

---------- Post updated at 03:09 PM ---------- Previous update was at 10:41 AM ----------

Squid Proxy:
-eth0 172.16.100.100
-eth1 192.168.100.100
Internet Client: 192.168.100.101
this is my configuration in squid.conf file:

http_port 80 accel defaultsite=192.168.100.100 vhost
cache_peer 172.16.100.1 parent 80 0 no-query originserver name=abc
acl abc_users dstdomain 192.168.100.100
http_access allow abc_users
cache_peer_access abc allow abc_users
cache_peer_access abc deny all
--------------------
it doesn't work T_T
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

squid proxy and apache servers

hi. pardon my noob question id just like to have a quick answer. i am planning to install a jabber webclient and a jabber server in our apache server. my boss said this wouldnt work because squid filters port 5222 connections (jabber). i told him we can simply 'unfilter' the port then but he said... (0 Replies)
Discussion started by: marcpascual
0 Replies

2. Linux

Reverse Proxy

I have configured reverse proxy through apache...conf file is attached My reverse proxy has a public ip.it is redirecting the request to 172.16.1.43 which is http server.....Now i have a link in Http server's home page which will redirect the request to another Lan zone machine... (0 Replies)
Discussion started by: dipanrc
0 Replies

3. IP Networking

Squid Proxy URL rewriting

I have an architecture as below <> <> There is a program in the AIX server which sends SMS to the internet, by sending HTTP request to the SMS processing server. Like, http://smsserver/mysms=test However the application does not have an option to specify where the Proxy server... (1 Reply)
Discussion started by: firdousamir
1 Replies

4. UNIX for Dummies Questions & Answers

Reverse Proxy difficulty

Hi I am trying to set up two hosts in a reverse proxy. The reverse proxy already has 8 servers running perfectly, but they are all simply mapping pure addresses, which I have registered internally and externally. The latest two I wish to add are a bit different, they are app servers, one... (1 Reply)
Discussion started by: rboekdrukker
1 Replies

5. IP Networking

SQUID Transparent Proxy Server

hi guys! We are setting up Squid Server. we want the server to be transparent. But I don't know how will i be able to set the network up. is it possible to set the squid server in the same LAN with the Squid Client and still functions as a transparent server? if so, can anybody help me do it? ... (1 Reply)
Discussion started by: init6_
1 Replies

6. IP Networking

SQUID Proxy server configuration

Can any one direct me to the resources where I can find in-depth instructions on Squid Proxy server and its configuration? Thanks in advance.:) (1 Reply)
Discussion started by: admin_xor
1 Replies

7. Linux

Squid using 2 Ethernet in Proxy System

Hi All Im using squid Proxy in centos Squid version = squid.x86_64 7:3.1.10-20.el6_5 CentOS release 6.5 (Final) Router IP = 192.168.1.1 My proxy System have 2 Ethernet port eth0 eth1 Using IP address for eth0 = 192.168.1.15/24 using IP address for eth1 = 192.168.1.16/24 Default... (1 Reply)
Discussion started by: babinlonston
1 Replies

8. Shell Programming and Scripting

Squid proxy shell script

i need squid proxy log file daily auto generate by shell script (1 Reply)
Discussion started by: sanjeetkumar086
1 Replies

9. UNIX for Advanced & Expert Users

Issue setup Transparent proxy and Gateway using Squid on CentOS 7

Hello, We are migrating our gateways from CentOS 6 to CentOS 7 and for setting up a transparent proxy using squid and Firewalld i am using below configuration. #Firewalld configurations firewall-cmd --permanent --zone=public --add-forward-port=port=80:proto=tcp:toport=3128:toaddr=LAN_IP... (4 Replies)
Discussion started by: sunnysthakur
4 Replies

10. Linux

Not able to setup CentOS 7 as gateway [Using squid proxy]

Hello, Did anyone setup a CentOS7 as a gateway (with squid transparent proxy). I am trying to do so but not able to setup. I setup squid , iptables (using it instead of firewalld) and all the necessary IPtables rules but nothing work. It work previously but access.log of squid not getting... (4 Replies)
Discussion started by: sunnysthakur
4 Replies
squidclient(1)						      General Commands Manual						    squidclient(1)

NAME
squidclient - A simple HTTP web client tool SYNOPSIS
squidclient [ -aknNrsv ] [ -A string ] [ -g count ] [ -h remote host ] [ -H ' string ' ] [ -i IMS ] [ -I ping interval ] [ -j ' Host header ' ] [ -l local host ] [ -m method ] [ -p port ] [ -P file ] [ -t count ] [ -T timeout ] [ -u user ] [ -U user ] [ -V version ] [ -w pass- word ] [ -W password ] url DESCRIPTION
squidclient is a tool providing a command line interface for retrieving URLs. Designed for testing any HTTP 0.9, 1.0, or 1.1 web server or proxy. This tool can be combined with scripts to perform any basic HTTP operation. Some additional features for access to the squid proxy object cache and management information are provided. OPTIONS
-a Do NOT include Accept: header. -A 'string' Send string as User-Agent: header. To omit the header completely set string to empty (''). -g count Ping mode, perform count iterations (0 to loop until interrupted). -h host Retrieve URL from cache on hostname. Default is localhost -H 'string' Extra headers to send. Use '0 for new lines. -i time If-Modified-Since time (in Epoch seconds). -I interval Ping interval in seconds (default 1 second). -j hosthdr Host header content -k Keep the connection active. Default is to do only one request then close. -l host Specify a local IP address to bind to. Default is none. -m method Request method, default is GET. Squid also supports a non-standard method called PURGE. You can use that to purge a specific URL from the cache. You need to have purge access setup in squid.conf similar to manager access. Here is an example: acl purge method PURGE http_access deny purge !localhost -n Proxy Negotiate(Kerberos) authentication. Use kinit username@DOMAIN first to get initial TGS. -N WWW Negotiate(Kerberos) authentication. Use kinit username@DOMAIN first to get initial TGS. -p port Port number of cache. Default is 3128. -P file Request body. Using the named file as data. -r Force cache to reload URL. -s Silent. Do not print data to stdout. -t count Trace count HTTP relay or proxy hops -T timeout Timeout value (seconds) for read/write operations. -u user Proxy authentication username -U user WWW authentication username -v Verbose. Print outgoing message to stderr. -V version HTTP Version. Use '-' for HTTP/0.9 omitted case -w password Proxy authentication password -W password WWW authentication password AUTHOR
Derived from Harvest. Further developed by by numerous individuals from the internet community. Development is led by Duane Wessels of the National Laboratory for Applied Network Research and funded by the National Science Foundation. COPYRIGHT
Distributed under the GNU General Public License (GNU GPL) version 2 or later (GPLv2+). QUESTIONS
Questions on the usage of this program can be sent to the Squid Users mailing list <squid-users@squid-cache.org> REPORTING BUGS
See http://wiki.squid-cache.org/SquidFaq/BugReporting for details of what you need to include with your bug report. Report bugs or bug fixes using http://bugs.squid-cache.org/ Report serious security bugs to Squid Bugs <squid-bugs@squid-cache.org> Report ideas for new improvements to the Squid Developers mailing list <squid-dev@squid-cache.org> SEE ALSO
squid(8), cachemgr.cgi(8) squidclient(1)
All times are GMT -4. The time now is 05:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy