|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
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. |
|
||||
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. |
|
|||
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 |
|
||||
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} Code:
{Internet} - [router] - [bridge with proxy] - {LAN} Last edited by jggimi; 30th November 2014 at 02:40 PM. Reason: typo |
|
|||
/usr/ports/www/middleman May do some of it...
__________________
FreeBSD 13-STABLE |
Thread Tools | |
Display Modes | |
|
|
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 |