DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th November 2014
montie montie is offline
Real Name: Vivek Vinod
Port Guard
 
Join Date: Nov 2014
Location: Mumbai
Posts: 30
Default Webpage caching on a bridge

When I was in charge of technology (don't laugh please ), at the small Wireless ISP we had (still do) way back in 2004, we had a unique requirement.

We wanted to maintain a webpage cache on a bridged system, so that the load on our upstream would be reduced. And IP addresses would pass both ways transparently. We did try different solutions then. If my memory serves me right, it had something to do with squid and t_proxy. Bandwidth was expensive then in India (it has dropped to approx 6.5% of what it was then). We tried caching transparently a few times on linux boxes and failed.

I'm wondering if there is a way to achieve this on *BSD using some available ports.
Reply With Quote
  #2   (View Single Post)  
Old 28th November 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,719
Default

A transparent proxy is an HTTP proxy that operates without having to be configured in a client browsers. One can use squid as a transparent proxy, oryou may also be able to use the built-in relayd(8) daemon, it can also be used as a transparent proxy.

Key is directing traffic through the service, and a bridge is not necessarily required. Both the squid link above and the relayd.conf(5) man page discuss using PF's divert-to rules on the router/firewall that is operating the transparent proxy.
Reply With Quote
  #3   (View Single Post)  
Old 28th November 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,719
Default

Hmmm. Squid may offer a better solution for client caching -- looking through relayd's transparent proxy capabilities, the use-case is primarily server side, for capabilities such as server pool management and SSL acceleration. It's use at the client side is for URL filtering.
Reply With Quote
  #4   (View Single Post)  
Old 29th November 2014
montie montie is offline
Real Name: Vivek Vinod
Port Guard
 
Join Date: Nov 2014
Location: Mumbai
Posts: 30
Default

I will have to recheck this sometime during this week, but I'm pretty doubtful whether caching on a bridge will work. From what I recall, the cache never ends up getting hit at all by the clients.

Unless ofcourse we are using some hardware (router/firewall) before/after our cache which can run in sync with our cache
Reply With Quote
  #5   (View Single Post)  
Old 29th November 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,719
Default

As I'd stated, a bridge may not be necessary. That depends entirely on your network implementation.

Here's an example of a transparent proxy without a bridge:
Code:
{Internet} - [router with proxy] - {LAN}
And here's one with a bridge:
Code:
{Internet} - [router] - [bridge with proxy] - {LAN}

Last edited by jggimi; 30th November 2014 at 02:40 PM. Reason: typo
Reply With Quote
  #6   (View Single Post)  
Old 30th November 2014
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 299
Default

/usr/ports/www/middleman May do some of it...
__________________
FreeBSD 13-STABLE
Reply With Quote
  #7   (View Single Post)  
Old 30th November 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,719
Default

Quote:
Originally Posted by jb_daefo View Post
/usr/ports/www/middleman May do some of it...
To the best of my knowledge, this proxy server has not been ported to OpenBSD.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND 9 : Caching and forward-only named.conf J65nko Guides 3 17th February 2013 09:11 PM
Caching-only DNS server on OpenBSD Oko OpenBSD General 1 13th September 2009 08:30 PM
Hosting a webpage for free in internet. bsdnewbie999 Off-Topic 7 12th April 2009 02:38 PM
exclude URL from caching at squid 3 ccc FreeBSD General 1 31st January 2009 06:20 PM
caching DNS server? spiderpig General software and network 5 30th May 2008 10:01 PM


All times are GMT. The time now is 04:05 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick