[squid-users] Redirecting traffic to fake parent
johnzeng
johnzeng2013 at yahoo.com
Wed Mar 4 02:41:13 UTC 2015
Hello Dear Sebastian:
i am thinking about node.js + squid at
isp environment for video file cache or big file cache recently ,
Which useful public info will we will
obtain from internet ?
if you have any helpful website about
nodejs ( for example: gatejs or other ) , and if you think it will share
with other people ,
please give me some advisement , maybe
we can develop the part together for everyone's different goal
Best Regareds
john
于 2015年03月04日 04:35, Sebastian Goicochea 写道:
> Hello everyone, I'm experimenting with cache_peer directive and node.js:
>
> cache_peer 10.0.0.90 parent 8888 0 no-query no-digest proxy-only
> name=test
>
> in that port I have a node.js Proxy receiveing connections in the same
> host, it extracts some information I need and saves it to a DB, then
> redirects Squid with a 302 response with some garbage added to the
> url. I use that garbage to match an access list so I can prevent looping.
>
> Squid is working in transparent mode, the problem I'm facing is that
> if I don't configure a tcp_outgoing_address Squid does not reach port
> 8888 on localhost. If I set a tcp_outgoing_address Squid can reach
> localhost:8888 but with his own IP address and I need it to be
> transparent, I need the real client IP address.
>
> Is there a way to configure tcp_outgoing_address to use the client's
> IP when fetching something?
>
> Some config lines that might help:
>
> acl donotredirect url_regex .*56498765123168.*
> cache_peer_access test deny donotredirect
>
> acl kk url_regex .*redirectthisstuff.*
> cache_peer_access test allow kk
> cache_peer_access test deny all
> never_direct deny donotredirect
> never_direct allow kk
>
>
>
> Thanks for your time
>
> Sebastian
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
More information about the squid-users
mailing list