- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: squid server configuration
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2003 09:35 AM
10-30-2003 09:35 AM
I am running "squid-2.4.STABLE6-6.7.3" on redhat-7.3. Let say I wan users to go to "proxy.com", which in turns query our internal web server (abc.com) for pages and caches the web pages if necessary. Part of this is done. But when I check the access log file, I see people using our "proxy.com" to get to other websites. How do lock this down so that people can still point their url to proxy.com but not able to set their browser setting to use "proxy.com" as their proxy server? Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2003 09:54 AM
10-30-2003 09:54 AM
Re: squid server configuration
Basically, redirect anything for a remote port (3128, or 8080, whatever you use for your cache) to your local cache instead.
You might also want to implement transparent proxying to make the whole suite complete.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2003 09:58 AM
10-30-2003 09:58 AM
Re: squid server configuration
iptables can provide a stateless firewall eliminating the need to have a proxy. It has some logging features as well if thats why you use it.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2003 12:06 PM
10-30-2003 12:06 PM
Re: squid server configuration
FYI, I need to use squid for it's caching capabilities and reverse proxy. If any have any better suggestions or utils, please reference docs, I would like to learn more about it.
Now I need squid to cache a url or a domain, any idea? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2003 12:20 AM
10-31-2003 12:20 AM
Re: squid server configuration
drop your connections from your trusted network to the internet, and try the squid redirector module
http://squirm.foote.com.au/
Best Regards
Murat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2003 02:07 AM
10-31-2003 02:07 AM
Re: squid server configuration
If you want to cache some domains outside your company :
http://squid-docs.sourceforge.net/latest/book-full.html#AEN2075
Read this, it's about caching concepts and hierarchy.
If you want to cache your own server to sped the outside world browsing, then you need accelerator mode, which is also caching somehow :
http://squid-docs.sourceforge.net/latest/book-full.html#AEN2416
hth
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2003 03:44 AM
10-31-2003 03:44 AM
Re: squid server configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2003 04:17 AM
10-31-2003 04:17 AM
Re: squid server configuration
Say your we server is 10.0.0.1, your squid cache (accelerator) 10.0.0.2.
In squid.conf, you'll have :
httpd_accel_host 10.0.0.1
httpd_accel_port 80
If you use another port than port 80, replace 80 by the port used on your Web server.
Then, if you also want your proxy to act like a cache for the Internet content for the LAN, then add :
httpd_accel_with_proxy on
(if Squid just acts like an accelerator, forget about this line).
It should work...
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2003 05:28 AM
10-31-2003 05:28 AM
Re: squid server configuration
On another note, is there a way to check if it is caching properly and how do I make sure it is caching the right web pages? Is there a config parameter which I should be setting? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2003 06:39 AM
10-31-2003 06:39 AM
SolutionAs for your last questions :
"maybe block all web traffic going to all websites accept our webserver" : yes, you can do that.
Define first an ACL, being kind of :
ACL all dst 0.0.0.0/0.0.0.0
ACL myserver dst 10.0.0.1/255.255.255.255
http_access allow myserver
http_access deny all
Thus, you allow destination to your webserver, and deny to any other machine. Of course, this example has to be modified according to your network complete config.
"with this value set as well, http_port=80" : yes, you use this to set up Squid to work on that port... 100% correct.
"is there a way to check if it is caching properly and how do I make sure it is caching the right web pages". Yes, there are many ways. One easy method is to look in your cache directory and check for the files (date, file list and so on).
You can also tail -f access.log in squid log directory, you'll have last connections, to which pages, and so on, it'll let you monitor it online. What I like to do is tail -f access.log > tty11, then Ctrl+Alt+F12 to switch at any time to the live log details...
hth
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2003 02:14 PM
10-31-2003 02:14 PM
Re: squid server configuration
that ACL seems to help, I took iptables offline and so far the web traffic foot print looks great. I've checked the access.log file, I see some TCP_MISS and TCP_HIT, I take it the TCP_MISS are those pages that are not cache. How should I go about and make sure these get cache as well. What squid param should I be looking into? Thanks.