Hi, thanks for your answer.
I'm using centOS, and trying to implement something like Hi, thanks for your answer. I'm using centOS, and trying to implement something like greylist for squid. I mean when word "sorry" is found in an access.log, string that contains this URL should be passed to a "hold" subroutine this subroutine should extract a name of a certain parent proxy (for example: name=proxy_1) than find such parent in a squid.conf:
cache_peer 111.117.12.12 parent 60099 0 no-query no-digest originserver name=proxy_1 round-robin login=test:example connect-timeout=3
cache_peer_access proxy_1 allow all
If such strings are found they must be moved to some file, and proxy must be reloaded.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.