åã®èšäºã§ã倧äŒæ¥ã®ç®¡çè
ãåŸ
ã£ãŠããäž»ãªåé¡ã«ã€ããŠèª¬æããŸããã
ä»æ¥ã¯ãã®ãããã¯ãç¶ãã倧èŠæš¡ãããã¯ãŒã¯ã®äž»ãªæ§æã®åé¡ãšãã®è§£æ±ºçã«ã€ããŠèª¬æããŸãã
ãœãŒã¹ããŒã¿ãæãåºãããŠãã ããã
-SQUID 3.0ãpfãã©ã³ã¹ãã¢ã¬ã³ãã¢ãŒã
-å€éšåé¡ãµãŒãã¹Orange Filter Database
-顧客æ°300-350
-1ç§ãããæ倧300ã®ãªã¯ãšã¹ãã®ããŒã¯æ°
-ãµã€ãbigblacklistãrejikãªã©ã®ããŒã¿ãå«ãå
éšã«ããŽã©ã€ã¶ãŒã
åé¡1ïŒDHCP
倧èŠæš¡ãããã¯ãŒã¯ã§éçã«ç»é²ãããã³ã³ãã¥ãŒã¿ãŒã¢ãã¬ã¹ã䜿çšããããšã¯ããããã¯ãŒã¯ç®¡çã®èŠ³ç¹ããã¯æªãèãã§ãããä»ã®å€ãã®åé¡ããããããŸãã ãã ããDHCPã¯ãã¹ãŠã®åé¡ã解決ããäžèœè¬ã§ã¯ãããŸããã
ADãšISC-DHCPdã®äœ¿çšãæ€èšããŠãã ããã äž»ãªåé¡ã¯ãADã®DHCPdã¢ãã¬ã¹ããŒã¹ã®æ£ããåæã§ãã å€ãã®ãªãã·ã§ã³ã¯ãããŸããã ãå®å
šã§ãªããå€æŽã§ã«ãŒããã¡ã€ã³ãŸãŒã³ãéããšããããã¯ãŒã¯äžã®ã¢ãã¬ã¹ã®ã¹ããŒãã£ã³ã°ïŒã¹ããŒãã£ã³ã°ïŒãçºçããå¯èœæ§ããããŸãã DHCPçµç±ã§ã¢ãã¬ã¹ãåä¿¡ãããšããããã³ãããã¯ãŒã¯ã€ã³ã¿ãŒãã§ã€ã¹ãåæåãããšãããã·ã³ã®èµ·åæã«ããã¡ã€ã³ã³ã³ãã¥ãŒã¿ãŒã¯DNSã§ãã¡ã€ã³ã³ã³ãããŒã©ãŒã«èªåçã«ç»é²ãããŸãïŒå¥ã®èšå®ãæå®ãããŠããªãéãïŒã åé¡ã¯ãéãã¡ã€ã³ã³ã³ãã¥ãŒã¿ãŒããããã¯ãŒã¯ã«æ¥ç¶ããããšãã«å§ãŸããŸãã MS DHCPãµãŒããŒã«é¢ãã質åã«ã€ããŠã¯ãããã«èšåããŸãã ãã¡ãããMicrosoft DHCPãµãŒããŒã¯ã管çã®å©äŸ¿æ§ãšãããã€ã¹ã®åçæ§æã®ããã®ãããŒã¢ãã¬ã¹ãã¹ã¯ã®äœ¿çšãé€ããŠããã¹ãŠã®äººã«é©ããŠããŸãã ããããããã¯åœŒã«é¢ãããã®ã§ã¯ãããŸããã MS DHCPãµãŒããŒã䜿çšããã«éãŸãŒã³ãæ£ããç»é²ããã«ã¯ãäžé£ã®ISC-DHCPdãšISC-Bindã䜿çšããã®ãæé©ã§ãã ãµããããã®éãŸãŒã³ã¯ãã€ã³ãã§çºçããããŒã«ãããŸãŒã³æŽæ°ã¯ãdhcpdããã³ãã€ã³ãæ§æã«ããŒãç»é²ããããšã§æ§æãããŸãã ãã¡ã€ã³ã³ã³ãããŒã©ãŒã§ã¯ãéåŒããŸãŒã³ãæ£ããéåŒã解決ã®ããã«ã»ã«ã³ããªãŸãã¯ãã©ã¯ãŒããšããŠèšå®ãããŸãã ãã¹ãã«ã¢ãã¬ã¹ãçºè¡ãããšãdhcpdã¯éãŸãŒã³ãèªåçã«æŽæ°ããŠãã€ã³ããããã€ã³ãã¯ãŸãŒã³æŽæ°ä¿¡å·ããã¡ã€ã³ã³ã³ãããŒã©ãŒã«éä¿¡ããŸãã
åé¡2ïŒãã¹ãããªã
squidããã³ãã®ä»ã®æ§æã§ã¢ã¯ã»ã¹ãèš±å¯ããããã¹ãã«FQDNã䜿çšãããšãããæç¹ã§ããã¹ããAããã³PTRã¬ã³ãŒããé·æéæŽæ°ããŠããªãå Žåããã®ååãDNSã§èŠã€ãããªããšããäºå®ã«ã€ãªãããŸãã ããã¯ããã®ååã解決ããããšããããã»ã¹ã®ã¯ã©ãã·ã¥ã«ã€ãªãããŸãïŒãã®åé¡ã«åé¿çã䜿çšãããŠããªãå ŽåïŒã dhcpdã䜿çšãããšãã«/ etc / hostsã«ãã¹ãŠã®ãã¹ãåããªã¹ããããšãæ
å ±ãã¿ã€ãã³ã°ããæŽæ°ãããªããªããŸãã 1ã€ã®è§£æ±ºçã¯ãIPã¢ãã¬ã¹ã®äºåçãªé解決ã䜿çšããããã¹ãåã«ãããªãã€ã¬ã¯ã¿ã§ã®æ¿èªã§ãã
ããã¯äœãäžããŸããïŒ ãã®ã¹ããŒã ã«ããããã¹ãIPã¢ãã¬ã¹ã«ãã€ã³ãããªãããã«ã§ããæ§æã®æè»æ§ãåäžããŸãã ã¹ããŒã ã¯åçŽã§ãïŒ
-ããŒã¿ã¯ã<IPã¢ãã¬ã¹> <URI>ãã®åœ¢åŒã§å€éšACLã«éä¿¡ãããŸã
-gethostbyaddrãã¢ãã¬ã¹ã«å¯ŸããŠå®è¡ãããçµæãå€éšACLèšå®ãšæ¯èŒãããŸã
-DNSã®è² è·ã軜æžããããã«ãgethostbyaddrã®çµæã¯äžå®æéãã£ãã·ã¥ãããŸãã
-åãåã£ãååãç§ãã¡ã«åããªãå Žå-ã«ãŒã«ã¯è©²åœãããé©çšãããŸãã-é©çšãããŸãã
3çªç®ã®åé¡ïŒãä»ã®äººãã§ããããšã¯äžå¯èœã§ãã ä»ã®äººã«ã¯äžå¯èœãªããšã¯å¯èœã§ãã
ãã®åé¡ã¯ããã¹ãŠã®ã¢ã¯ã»ã¹å¶åŸ¡ã·ã¹ãã ã«å
±éããè«ççãªãã®ã§ãããæ§æçãªãã®ã§ã¯ãããŸããã ã»ãšãã©ã®ã¢ã¯ã»ã¹å¶åŸ¡ã·ã¹ãã ã¯ãæš©å©ã®ç¬èªã®å®çŸ©ãæ瀺ããŠããŸãã ãèš±å¯ããŸãã¯ãçŠæ¢ãã ããã€ãã®åé¡ã°ã«ãŒãã§çºçããå¯èœæ§ã®ãããªãœãŒã¹ãèæ
®ããã«ã ã¢ã¯ã»ã¹å¶åŸ¡ã®æè¯ã®ãªãã·ã§ã³ã¯ãèš±å¯ãæåŠãæåŠãèš±å¯ã®æ€èšŒæ¹æ³ã䜿çšããããšã§ãã
ããã©ã«ãã®ãèš±å¯= 0ãæåŠ= 1ãã䜿çšããŸãã
ãèš±å¯ãæåŠãã¡ãœããã§ã¯ãè«çORã«ãŒã«ãæ©èœããŸããæåã«ãã¹ãŠãžã®ã¢ã¯ã»ã¹ãèš±å¯ãããã¡ã€ã³ãæåŠã«ããŽãªã«å«ãŸããŠãããã©ããã確èªããŸãã ïŒ0ãŸãã¯1 = 1ïŒ
è«çANDã«ãŒã«ã¯ãæåŠãèš±å¯ãã¡ãœããã§æ©èœããŸãæåã«ããã¹ãŠãžã®ã¢ã¯ã»ã¹ãæåŠãããã¡ã€ã³ãèš±å¯ã«ããŽãªã«ãããã©ããã確èªããŸãã ïŒ1ããã³0 = 0ïŒ
4çªç®ã®åé¡ïŒãå€éšãã¡ã€ã³ã®åé¡ã
çŸåšååšããsquidã®åé¡ãœãªã¥ãŒã·ã§ã³ã®ã»ãšãã©ã¯ãã€ã³ã¿ãŒãããããããŠã³ããŒããããããã¹ããã¡ã€ã«ãããªãã€ã¬ã¯ã¿ãç解ã§ããããŒã¿ããŒã¹åœ¢åŒã«å€æããããªãã©ã€ã³ããŒã¿ããŒã¹ã®äœ¿çšã䌎ããŸãã éåžžãBerkeleyDBã«ã¯ãããã«èµ·å ãããã¹ãŠã®èšåãšäžäŸ¿ãããããŸãã BerkeleyDBã¯å€§éã®ããŒã¿ãåŠçããã®ã«éåžžã«äŸ¿å©ã§ãããå€ã®åç¶æéãå¶åŸ¡ããèŠçŽ ããªãããããããã®ããŒã¿ããŒã¹ã®ã³ã³ãã³ããå¶åŸ¡ããå Žåã¯ãŸã£ããäžäŸ¿ã§ãã ãã®ãããããŒã¿ããŒã¹ãæŽæ°ããã«ã¯ã以åã«å
¥åããããŒã¿ãå®å
šã«ãªã»ãããã2çªç®ã®ã¬ããŒããå¿
èŠã§ãã ããŒã¿ããŒã¹ãæäœããããã®æé©ãªãªãã·ã§ã³ã¯ãããŒã¿ããŒã¹å
ã®ããŒã¿ã®å·®åæŽæ°ãŸãã¯å¢åæŽæ°ã§ãã
ãã¡ã€ã³ã®å€éšåé¡ã«ã€ããŠè©±ãå§ããã®ã¯ãªãã§ããïŒ
ãµãŒããŒã«å€§ããªè² è·ãããããšãå€éšããŒã¿ãœãŒã¹ã«åºã¥ããã¡ã€ã³ã®åé¡ãéè² è·ã«ãªãå¯èœæ§ããããŸãã è² è·ã®ãã©ã³ã¹ãåãããã©ã³ã¹ããšãããã«ãåé¡ãµãŒããŒããåä¿¡ããããŒã¿ã®äžéãã£ãã·ã³ã°ãå¿
èŠã§ãã
dnsblã䜿çšããŠTORæ¥ç¶ããããã¯ããããšãæ€èšããŠãã ããã ãã®ãããtor.dan.me.ukãštorexit.dan.me.ukã®2ã€ã®ãã¡ã€ã³ãŸãŒã³ããããŸããæåã®ãŸãŒã³ã«ã¯torã¯ã©ã€ã¢ã³ãã®ãªã¹ããå«ãŸãã2çªç®ã®ãã¡ã€ã³ãŸãŒã³ã«ã¯ãã©ãã£ãã¯ãèªåèªèº«ã§ã«ãŒãã£ã³ã°ã§ããtorããŒãã®ãªã¹ããå«ãŸããŸãã æ¯ç§100ã200ãªã¯ãšã¹ãã®è² è·ã§ãæ¯åãDNSãµãŒããŒãžã®6,000ãŸãã¯12,000ãªã¯ãšã¹ããåãåããŸãã ãã¹ãŠã®ããŒã«ã«DNSãµãŒããŒããã®è² è·ã奜ãããã§ã¯ãããŸããã ã¢ã¯ã»ã¹ãããŠãããã¹ãŠã®ãã¹ãã®æ€èšŒãé€å€ããæ¥ç¶ãéå§ãããã¹ãã®æ€èšŒãå¶éããããšã«ãããdnsblãµãŒããŒãžã®èŠæ±ã®æ°ãæžããããšãã§ããŸãã äœããã®æ¹æ³ã§ããã¹ããŸãã¯ãã¡ã€ã³ã®ã«ããŽãªã決å®ããããã«äœ¿çšããå€éšåé¡ãµãŒãã¹ãå¢ããã»ã©ãããã«è²»ããå¿
èŠã®ããã·ã¹ãã ãªãœãŒã¹ãå¢ããŸãã
ãã®ç¶æ³ããæãåºãæ¹æ³ã¯äœã§ããïŒ
ç§ã®æèŠã§ã¯ãå¯äžã®æ¹æ³ããããŸãã ããã¯ããã£ãã·ã¥ã®æå¹æéãå¶åŸ¡ããæ©èœãåããã¯ãšãªãã£ãã·ã³ã°ã¡ã«ããºã ã®äœ¿çšã§ãã ãã£ãã·ã¥ã®æŽæ°ã¯ãããŒã¿ã®å®å
šãªãªããŒããšããŠããŸãã¯å·®åããã³å¢åæŽæ°ã«ãã£ãŠå®è¡ã§ããŸãã ã·ã¹ãã ã¯ã䜿çšãããŠãããªãœãŒã¹ãå©çšã§ããªãå Žåã«ãã¯ã©ãã·ã¥ãããããšãªãã管çè
ã®åå ãªãã«èªåçã«åäœããã¯ãã§ãã
ãã¡ã€ã³ãåé¡ããåãæ¹æ³ã䜿çšããŠããªãŒãã³ãããã·ãµãŒããŒããã«ãŠã§ã¢ãããã³ãã®ä»ã®æªæã®ãããµãŒããŒãç¹å®ã§ããŸãã dnsblãã¡ã€ã³ã®ãªã¹ãã¯www.robtex.com/ip/127.0.0.1.html#blacklistsã«ãããŸãã ãããã¯ã¹ãã ã¡ãŒã«ã®ãã§ãã¯ã«äœ¿çšãããdnsblãªã¹ãã§ãïŒããšèšããããªãã§ãããããçãã¯ç°¡åã§ããããã¹ãã®ã¹ãã ãã§ãã¯ãšãã«ãŠã§ã¢ãã§ãã¯ã®éãã¯äœã§ããïŒã äœããªãïŒã
DNSãµãŒããŒã®å¯çšæ§ãšéä¿¡ãããèŠæ±ã®æ°ã«ãã£ãŠã¯ããã®ã¹ããŒã ã«ãã£ãŠãããã¯ãŒã¯ãžã®ã¢ã¯ã»ã¹é床ãéåžžã«å€§å¹
ã«äœäžããå¯èœæ§ãããããšãå床èŠåããŸãã
5çªç®ã®åé¡ïŒã第2ã¬ãã«ã®1ã€ã®ãã¡ã€ã³ã第3ã¬ãã«ä»¥äžã®å€ãã®ãã¡ã€ã³ã
第2ã¬ãã«ã®ãã¡ã€ã³ãçŠæ¢ããããšã«ããã第3ã¬ãã«ã®ãã¡ã€ã³ãèš±å¯ããæ¹æ³ ãããã¯ãµãŒãã¹ã®äžéšã¯ã第2ã¬ãã«ãã¡ã€ã³ã®ååã«ãããã¡ã€ã³ã®æ確ãªãããã¯ãæå³ããŸãã ãã¡ããããã¡ã€ã³ã®ãã¯ã€ããªã¹ãããããŸãããå€ãã®å Žåããã¹ãŠã®ãã¡ã€ã³ã§æ©èœããŸãã yandex.ruãã¡ã€ã³ãžã®ã¢ã¯ã»ã¹ãå¶éãããªãã·ã§ã³ãæ€èšããŠãã ããïŒãã«ãã¬ãã«ãã¡ã€ã³ããªãŒã®äŸãšããŠïŒã 1人ã®ãŠãŒã¶ãŒã«ã¡ãŒã«ãšã«ã¬ã³ããŒãžã®ã¢ã¯ã»ã¹ã®ã¿ãèš±å¯ãããã®ãã¡ã€ã³ã®ä»ã®ãã¹ãŠãéããå¿
èŠããããŸãã ãããŠãã¡ãŒã«ä»¥å€ã®ãã®ãã¡ã€ã³å
ã®ãã¹ãŠãèš±å¯ããå¥ã®ãŠãŒã¶ãŒã«ã æãç°¡åãªè§£æ±ºæ¹æ³ã¯ããuser1ïŒ+ mail.yandex.ru + calendar.yandex.ru -yandex.ruãããuser2ïŒ-mail.yandex.ruãã®åœ¢åŒã§ãããè¡ãããšã§ãã ãã ãããã¹ãŠã®ãªãã€ã¬ã¯ã¿ããã®ãããªã¹ããŒã ãèš±å¯ããŠããããã§ã¯ãããŸããã æ¬è³ªçã«ã第2ã¬ãã«ãã¡ã€ã³ã®è§£å床èšç®æ¹æ³ã¯ãã«ãŒãã®ç¬¬2ã¬ãã«ãã¡ã€ã³ã«ã«ããŽãªããªãå Žåãããããšãé€ããŠã第3ã¬ãã«ä»¥äžã®ãã¡ã€ã³ãšåãã§ãã æ€çŽ¢ãé«éåããã«ã¯ããã§ãã¯ã®æ°ãæžããããã«ã第2ã¬ãã«ã®ã«ãŒããã¡ã€ã³ã«äžäœã¬ãã«ã®ãã¡ã€ã³ã«é¢ããæ
å ±ãå¿
èŠã§ãã
ãvasya.pupkin.home.drive.narod.ruããšãããã¡ã€ã³ããããšããŸãã第3ã¬ãã«ã®ãã¡ã€ã³ã«ã¯ç¹å®ã®ã«ããŽãªããããŸã-drive.narod.ru-ãUsers Drivesãã第2ã¬ãã«ã®ãã¡ã€ã³ãnarod.ruãã¯ããŠãŒã¶ãŒã®ããŒã ããŒãžãã«åé¡ãããŸãã 2çªç®ãš3çªç®ã®ã¬ãã«ã®ãã¡ã€ã³ã«2ã€ã®ã«ããŽãªãããããšã¯æããã§ããã3çªç®ããäžã®ã¬ãã«ã®ãã¡ã€ã³ããã§ãã¯ããããšã¯æå³ããããŸããã ããšãã°ããvasya.super.puper.good.narod.ruããšããURLããªã¯ãšã¹ãããŸããã æåã®ãã§ãã¯ã¯ãã¡ã€ã³ "good.narod.ru"ã§ããå¿
èŠããããŸãã ãµãŒãã¬ãã«ãã¡ã€ã³ã«åé¡ããããã¡ã€ã³ããããšããæ
å ±ããããŸãã ãã®ã¬ãã«ã§èŠæ±ããããã¡ã€ã³ã®ã«ããŽãªãèŠã€ãããªãå Žåã次ã«äœãã¬ãã«ïŒ2çªç®ã®ã¬ãã«ïŒããã§ãã¯ããããã®çµæãèŠæ±ãããURLã¯5åã§ã¯ãªã2åã®ãã¹ã§ããŠãŒã¶ãŒããŒã ããŒãžãã«ããŽãªãåãåããŸãã
åé¡6ïŒå
éšæ
å ±ãªãœãŒã¹ã®æ£ãããŠãŒã¶ãŒèå¥
æ¥ç¶ããããã¯ãããçç±ã説æããããŒãžã«ãŠãŒã¶ãŒããªãã€ã¬ã¯ãããããšããŠãŒã¶ãŒã¢ãã¬ã¹ã®ä»£ããã«æ
å ±ããŒãžã«ãããã·ãµãŒããŒã¢ãã¬ã¹ã衚瀺ããããšããç¶æ³ãçºçããŸãã ãForwarded forãããvia proxyaddressããªã©ã®å
éšãããã·ãµãŒããŒããããŒã䜿çšã§ããŸãããããã¯ç€Ÿå€ãžã®ç§»åã«ã¯å®å
šã§ã¯ãããŸããã ãããã£ãŠãæåã®è§£æ±ºçã¯ãã¯ã©ã€ã¢ã³ãã³ã³ãã¥ãŒã¿ãŒã®èªåæ§æã¹ã¯ãªããïŒWPADïŒã䜿çšããããšã§ãã Googleæ€çŽ¢ã«ããããã®ãã¡ã€ã«ã®æ§ææ¹æ³ã«é¢ããå
æ¬çãªæ
å ±ãåŸãããŸãã ãã€ã³ãã¯ããŠãŒã¶ãŒã®ãã©ãŠã¶ãèªåçã«ã»ããã¢ãããããšãã«ããããã·ãµãŒããŒãééãããªãœãŒã¹ãšçŽæ¥ã¢ã¯ã»ã¹ãããªãœãŒã¹ãèšå®ã§ããããšã§ãã ããšãã°ãå
éšã€ã³ãã©ããããµã€ãã§ã¯ããããã·ãçµç±ããŠãæå³ããããŸããã
7çªç®ã®åé¡ïŒå€åæéäžã«äœãå©çšå¯èœãã管çãã
ã·ã¹ãã 管çè
ãäœæ¥ããŠãããšãããŠã€ã«ã¹ã®æŽ»åãããããã·ãééãããã©ãã£ãã¯ã®å¶åŸ¡ãŸã§ãã»ãšãã©ã®åé¡ã¯ããªãè¿
éã«è§£æ±ºãããŸãã 管çè
ã®å€åæéãçµäºãããšã管çè
ãäžåšã®å ŽåãããŸããŸãªåä»ãªããšãèµ·ãããŸãã ããã¯ãã¡ãããã©ãã€ã¢ã«é¢é£ããŠããŸãããåççãªã«ãŒãã«ã¯ãŸã ååšããŠããŸãã Squidã«ã¯ããŠãŒã¶ãŒã®åŽåæéãå³ããå¶éããæ©èœããããŸãã ãã®ã¹ããŒã ã®äž»ãªåé¡ã¯ãä»äºã®åŸã«ä»äºãããå¿
èŠãããå Žåãªã©ããããã¯ãŒã¯ã«ãšã©ãŸãå¯èœæ§ãç¬ç«ããŠæ¡åŒµã§ããªãããšã§ãã éåžžããã®ãããªããšã¯ç®¡çè
ã®ä»å
¥ãªãã§ã¯ãããŸããã åå¥ã®äžæãªã¹ããäœæããããŠãŒã¶ãŒã°ã«ãŒãããã®ä»ã®èªè»¢è»ãçºæãããŸããã 次ã«ãæéãå¶åŸ¡ããæãç°¡åãªæ¹æ³ã¯ããã®ã¿ã¹ã¯ãæ€èšŒã¹ã¯ãªããã«å²ãåœãŠãããšã§ãã å¿
èŠã«å¿ããŠããŠãŒã¶ãŒã¯ãå€åæéãçµäºããããšãèŠåããããŒãžã«è»¢éããåŸããããã¯ãŒã¯ã§ã®æ»åšãç¬ç«ããŠå»¶é·ã§ããŸãã ãã®ã¹ããŒã ã¯ããŠã€ã«ã¹ãããã€ã®æšéŠ¬ããã®ä»ã®ããã¯ã«å¯Ÿããä¿è·ã®èŠ³ç¹ããéåžžã«äŸ¿å©ã§ãã ãããã¯ãŒã¯ãæ£ããæ§æãããŠããã°ãåäžã®èŠæ±ãç£èŠã¹ã¯ãªãããæž¡ãããšã¯ãããŸããã
åé¡8ïŒãããã·ãã§ãŒã«ãªãŒããŒãšæ§æã®æŽåæ§
倧èŠæš¡ãªãããã¯ãŒã¯ã䜿çšããŠããå Žåãé
ããæ©ãããµãŒããŒã®äºçŽã«ã€ããŠã®è³ªåãçºçããŸãã ãã®å Žåãã€ãŸãããšãªãã®ã¯ããã¹ãŠã®ãããã·ãµãŒããŒäžã®æ§æã®æŽåæ§ãšIDã§ãã ç§ã¯ã©ããã§äžå
åãããæ§æãæã¡ããŸããµãŒããŒã«çžãããããšãªãã©ãããã§ã管çããããšæããŸãã memcachedãŸãã¯mysqlã®æ§æãåé€ããããšãçæ³çã§ãã
ããã ãªãç§ã¯å®éã«ããããã¹ãŠæžããã®ã§ããïŒ :)
èªåã®éçºãã¿ããªãšå
±æãããã
ãããžã§ã¯ãã¯PRADMïŒProxy Administration KitïŒãšåŒã°ããŸã
ãããžã§ã¯ãã«ã¯çŸåš2ã€ã®ã³ã³ããŒãã³ãããããŸãã ããã¯ãã¢ã¯ã»ã¹å¶åŸ¡ãæäŸãããªãã€ã¬ã¯ã¿ã§ããããªãœãŒã¹ãIPã¢ãã¬ã¹ãããã³ç¡æ°ã®ã«ããŽãªã®ãªã¹ããæäœã§ããã«ããŽãªåãµãŒããŒã§ãã äž¡æ¹ã®ã³ã³ããŒãã³ãã¯é£ç¶åäœçšã«èšèšãããŠãããæ§æãæŽæ°ããããã«squidããã«ããå¿
èŠãªãã«ãªã¢ã«ã¿ã€ã ã§å¶åŸ¡ãããŸãã
ãã¹ãŠã®ã³ã³ããŒãã³ãã¯ãããã€ãã®å€éšã¢ãžã¥ãŒã«ã䜿çšããŠperlã§èšè¿°ãããŠããŸãã
memcached 1.4.4
perl 5.8.9ïŒdefined-orã䜿çšïŒ
ãã£ãã·ã¥:: Memcached ::é«é
ãã€ãžã§ã¹ã:: MD5
URI :: URL
MIME :: Base64
ããã€ãã®ãã¡ã€ã«ã®äž»ãªå ŽæïŒè©ŠããŠã¿ãã人åãïŒ
pradm-/ usr / local / squid /ã¹ã¯ãªãã
ã«ããŽãªãµãŒããŒ-/ usr / local / squid / catdbserver /
pradmãã°-/usr/local/squid/logs/redir.log
pradm.conf config-/usr/local/etc/squid/pradm.conf
pradmã³ã³ããŒãã³ãã®æ§æïŒ
pradm.conf.example-èšå®äŸ
pradm.pl-ãªãã€ã¬ã¯ãã¹ã¯ãªãã
md5.pm-ãµãŒãã¹æ©èœãåããè£å©ã¢ãžã¥ãŒã«
squid.conf-å€éšaclãšããŠãªãã€ã¬ã¯ã¿ãåŒã³åºãããã®squid.confãã¡ã€ã«ã®äŸ
reloadconfig.pl-memcachedã«æ§æãããŒãããã¹ã¯ãªãã
showperm.pl-æå®ããããã¹ãã®ããŒã¿ã衚瀺ããã¹ã¯ãªãã
Webãã£ã¬ã¯ããªïŒ
error.cgi-ãããã¯ããããªãœãŒã¹ã«é¢ããæ
å ±ãæäŸãããããã¯ãŒã¯ãžã®ã¢ã¯ã»ã¹ã®æ¡åŒµãå¶åŸ¡ããã¹ã¯ãªããïŒããã¯ãsquid.confã§ç€ºããããªã³ã¯ãWebãµãŒããŒã®/ cgi-bin /ã«ãªããã°ãªããŸããïŒ
stop.gifããã³wpad.dat-squid.confã«ç€ºãããŠãããªã³ã¯ãWebãµãŒããŒã®DocumentRootã«ããå¿
èŠããããŸã
Catdbserverã³ã³ããŒãã³ãã®æ§æ
README-ã«ããŽãªãŒããŒããŒã®äœ¿çšæ¹æ³ã«é¢ããç°¡åãªæ
å ±ã
categoryloader.pl-ã«ããŽãªãµãŒããŒã®ããŒã¿ããŒã¹ãã¡ã€ã«ã圢æããã¹ã¯ãªããã
catserver.pl-ã«ããŽãªãµãŒããŒèªäœ
testfilter.pl-ã«ããŽãªãµãŒããŒã®ç¶æ
ããã¹ãããã¹ã¯ãªããã
updatelists.sh-å€éšãªãœãŒã¹ãããã«ãŠã§ã¢ãã¡ã€ã³ã®ãªã¹ããããŠã³ããŒãããããããã«ããŽãªãµãŒããŒã«ã¢ããããŒãããã¹ã¯ãªããã
ã»ãšãã©ã®ã¹ã¯ãªããã§ã¯ããªãã€ã¬ã¯ã¿ãšæ
å ±ã¹ã¯ãªãããé€ããŠãããŒã®å°ããªå
éšãã«ãããããŸãã
ãããžã§ã¯ãã®ãœãŒã¹ïŒ
aborche.com/pradm/source/pradm.tar.gz
aborche.com/pradm/source/catdbserver.tar.gz
ãããŸã§ã®ãšãããSQLçšã®ã«ããŽãªãµãŒããŒãéçºãããŠããŸãïŒãµãŒããŒã®æºåãã§ããŠãããããŒã¿ããŒã¹ãžã®ãã¡ã€ã³ã®è¿œå é床ãæé©åãããŠããŸãïŒã memcachedã«ããŽãªãµãŒããŒã®éçºã§ãïŒmemcachedãµãŒããŒããŒã¿ããŒã¹ã®ããŒã¿ã®ã€ã³ããã¯ã¹ä»ãã«åé¡ããããŸãïŒ
aborche.com/pradmãããžã§ã¯ãã®æ©èœã®æŠèŠ
ã質åããããŸãããããå°ããã ãããåãã§ãçãããŸãã
Aborche 2010