Proxylizer Conceitos Configuração - MikroTik Wiki

download Proxylizer Conceitos Configuração - MikroTik Wiki

of 5

Transcript of Proxylizer Conceitos Configuração - MikroTik Wiki

  • 25/09/2015 Proxylizer/ConceptsMikroTikWiki

    data:text/htmlcharset=utf8,%3Ch1%20id%3D%22firstHeading%22%20class%3D%22firstHeading%22%20lang%3D%22en%22%20style%3D%22color 1/5

    Proxylizer/Concepts

  • 25/09/2015 Proxylizer/ConceptsMikroTikWiki

    data:text/htmlcharset=utf8,%3Ch1%20id%3D%22firstHeading%22%20class%3D%22firstHeading%22%20lang%3D%22en%22%20style%3D%22color 2/5

    Reporttype

    Thereare2reporttypesDomainandUserstatistics.Theformerreportisusedtoanalyzedomainusageofallwebrequests,whilethelattertoviewwebrequestsofeachuser.

    Frequency

    Thereare4typesoffrequencyavailableonce,daily,weeklyandmonthly.Thereisonedifferencebetweenoncereportandothers.Oncereportisdesignedtocreatecustomreports,therearenorestrictionsforthistypeofreport.Asthenamestates,itisexecutedonlyonce,whiletheothersareperiodic.Periodicreportsaregeneratedonlywhenalldataarecollected.Forexample,ifdataforMarch4thareneeded,themareavailableonlyafterMarch5th00:00.

    Recipient

    Allgeneratedreportscanbesenttoemail.If"Norecipient"isselected,reportsisnotsenttoanyemail.But,asallreports,itisstillavailabletoseethegeneratedreportinwebinterface,reportsection,(history).RecipientaddressesareselectedfromIPUserlist,whichcanbeeditedatIPuserspage.

    Dateinterval

    Thesefieldsareforsettingupdateboundariesforreport.

    ForoncereportitmeansthatalldatainthisperiodwillbeselectedFordailyforeachday,weeklyeachweek,monthlyeachmonth.

    Itisposible,tosettheseboundariesinpastandinfuture.ForexampleiftodayisFebruary15thitisposibletosetthesevaluesfordailyreportJanuary3rdtoFebruary2ndandreceivereportsforeachdayinthisperiodorforMarch5thtoApril20thandwhenthesedatescomereportswillbegeneratedthen.

    Dayinterval

    Thisfieldisonlyavailableformonthlyreports.Itdenotesneededdataintervalfirstandlastdayofeachmonthofdatatoincludeinreport.Forexampleifdataforfirstanthensecondhalfofmonthisneeded,2reportsmustbecreatedone1sttill15th,second16thtill31st.Fortheenddateanyvaluegreaterthanthedaycountintheactualmonthisconsideredasthelastdayofthemonth.Forexample,thereare28/29daysintheFebruary,soanyvaluegreaterthan28meansendofthemonth.ButforOctober,29means"donotselectdataaboutOctober30and31".

    Weekdays

    Useifcustomdaysofweekfiltrationneeded.Forexampleifonlyworkingdaysneededthenuncheckweekenddays.

    Timeinterval

    Useifcustomtimeofdayfiltrationneeded.Multipletimeintervalsavailable,forexample,09:0012:00and13:0017:00.Click toaddand toremoveintervals.

    IP

    UsetofilterIPaddresses.If"Showall"selectedthenreportforallIPaddressesandapproximatetime

  • 25/09/2015 Proxylizer/ConceptsMikroTikWiki

    data:text/htmlcharset=utf8,%3Ch1%20id%3D%22firstHeading%22%20class%3D%22firstHeading%22%20lang%3D%22en%22%20style%3D%22color 3/5

    spentoninternetisdisplayed.OtherwisedomainsandtimeforspecificIPuser.

    Domain

    Usetofilterdomainsandpartsofdomains.Asexplainedpreviouslydomainisdividedin3partssubdomain,domainandtopdomain.Respectivelyusefirstfieldtofilterbysubdomain,secondbydomainandetc.

    Top

    Useifonlymostoftengathereddataisneeded.Forexample,select"Viewtop10"toviewonly10mostuseddomains.

    Generatetime

    Thisfieldistosettimewhenreportmustbegenerated.Foreachfrequencyitisdifferent.For"once"itisdateanddaytime,fordailyonlydaytimeandetc.Howmentionedpreviouslyinthissectiondatacanbegeneratedonlywhenalldataarecollected.Forexample,ifweeklyreportforworkingdaysneededthendatacanbegeneratedonlyafterSaturday00:00.Principleasfastaspossible.

    TimecalculationTimeusedforeachdomainoruseriscalculatedbyasimplealgorithmifusermakesatleastonewebrequestperminute,userhasusedinternetforoneminute.Itmeansthatitisnodifferenceiftherearetousandsofrequestsperminuteorejustone.Countoftheserequestareselectedandviewedundercolumn"Hitcount".Anditisirrelevant,howmanydifferentrequestsaremadeatonetime.

    CreatedReportsReportsconsistoftwoparts:1.Reportconfigurationcontainsinformationaboutwhatdatahastobecollected,whenthereportswillbegeneratedandwhowillreceivethem2.Thegeneratedreportcontainstheactualdatabasedonconfigurationrules.

    TheconfigurationiscreatedinthereportsectionontheProxylizerwebpage.

    Reportsaregeneratedautomaticallybyabackgroundscriptwhichisrunbythescheduler.

    Whenaconfigurationisdeleted,allgeneratedreportsforthatconfigurationaredeletedaswell.

    ReportGenerationReportgenerationprincipleislikethiseachminutescriptisstartedandcheckediftheremustbesomereportgenerated.Reportsaregeneratedasfastasposiblewhenalldataarecollectedandgenerationtimehascome.Ifsomereportsaregeneratingmorethenoneminute,thereismaximumsimultaneousgeneratingreportamountdefined,whichcanbesetintheconfigsection.Formulticoreprocessorsthisvalueshouldbeequalwiththecorecounttoutilizetheprocessorefficiently.Ifthereissomeproblemsorerrorsduringreportgeneration,emailissent.Todiagnosetheproblem,lookforlogfilesthatarestoredin"/var/log/proxylizerdirectory(mail_send_log.log"isthedefaultlogfile).

    ReportHistory

  • 25/09/2015 Proxylizer/ConceptsMikroTikWiki

    data:text/htmlcharset=utf8,%3Ch1%20id%3D%22firstHeading%22%20class%3D%22firstHeading%22%20lang%3D%22en%22%20style%3D%22color 4/5

    ThewholehistoryofgeneratedreportsareavailableinthereportsectionontheProxylizerwebpage.Eachreportinthetablehasthe (history)iconintheactioncolumn.Clickingonitrevealsthelistofgeneratedreportsforthisconfiguration.Aparticularreportcanbeaccessedthenbyclickingonthe(View)icon.

    InactiveReportsIfareportisnotneededforawhile,itcanbedeactivatedinsteadofdeleting.Ithasthefollowingadvantages:

    ThehistoryissavedReportcanbeactivatedlaterwithoutcreatingnewconfiguration.

    Duringthetimewhenareportisinactive,itisnotgenerated.Ifitisactivatedafterwards,reportwillbegeneratedagainstartingfromtheactivationpoint.Forexample,ifadailyreportisinactiveforaperiodof20.jan.2009.25.jan.2009.thenextreportgeneratedafter19.jan.2009.willbetheoneabout26.jan.2009.,reportsduringtheinactivityperiodwillbeskipped.

    Reportscanbeactivated/deactivatedintheReportssectionontheProxylizerWebpage.

    ReportEditingReportconfigurationscanbeeditedaftercreating.Butsomerestrictionsapply:

    Reportswithfrequency"once"canbemodifiedonlybeforetheyaregenerated.Whenthereportisprocessed,theconfigurationisreadonly,becausethisiswhat"once"meansTootherreporttypesonlythefields,whichdonotchangethesemanticsofthereport,canbeedited.Forexample:dateinterval,weekdaysandgeneratetimecanbechangedfordailyreportastheyalldonotaffectthecontentsofdailyreporttheyonlyspecifysomepropertiesofwhenthereportmustbegenerated.Reporttype,frequency,timeinterval,IPaddressanddomainarereadonly,becausechangingthesevaluesleadstoacompletelydifferentreport.

    IPUsersEachWebproxyrequesthasasourceIPaddressaddressofthehost,whichgeneratedthewebrequest.ReportscanbefilteredusingthisIPaddress.

    UsuallyonestaticIPaddresscorrespondstoaspecificstaffmember.TomakethefilteringbyIPaddresseasy,ProxylizerhastheabilitytoassignrealpersonstoIPaddresses.ThiscanbedoneintheIPUserssectionontheProxylizerwebpage.

    IPusersareusedonlytoassignpersonnamesandemailaddressestoIPaddresses.IPusersdonothaveaccesstoProxylizerwebpage.

    EachIPUser(person)hasthefollowingattributes:

    IPaddressoftheperson'scomputerNameEmailperson'saddresstowhichreportemailscanbesentAdminwhenchecked,thisuseristreatedasadministrator.SomeProxylizerfunctionsaredesignedforadmins,forexample,carboncopy(CC)ofemailreportscanbesenttoalladminemail

  • 25/09/2015 Proxylizer/ConceptsMikroTikWiki

    data:text/htmlcharset=utf8,%3Ch1%20id%3D%22firstHeading%22%20class%3D%22firstHeading%22%20lang%3D%22en%22%20style%3D%22color 5/5

    addressesUserreceivesemptyreportswhenchecked,thisuserreceivesemailreportsevenwhentheyareempty(forexample,reportsofweekenddatawhennowebrequestsaregenerated).Thisisusefulforadministratorstoidentifyreportgenerationproblemstheadministratorissurethatreportwillbesentanyway,andwhenitisnotreceived,ithappensonlybecauseofsomesystemorinfrastructurefailure.

    DatabaseStatisticsDatabase(DB)statisticsareshowninStatussectionontheProxylizeWebPage.Thefollowingstatisticsareavailable:

    HITMISSratio:showsthewebproxyhit/missrationwhatpartofallrequestsarefoundintheproxy'scacheTotaldomaincount:totalcountofdifferentdomainsstoredinthedatabase.Notethat,forexample,www.mikrotik.comandwiki.mikrotik.comarecountedastwodifferentdomainsTotalhitcount:totalcountofrequestsloggedbythewebproxyOldestrecordoldestrequeststoredintheDBrightnow.ThisdeterminestheoldestpointintimewehavedataaboutLatestrecordmostrecentwebrequestloggedintheDB.Ifthisfieldcontainsanoldvalue(let'ssay,morethanonehourago)thismeansoneofthefollowing:eithertheclientsarenotusingwebproxyorrequestsarenotloggedtoProxylizerDB.ThisvaluecanbeusedtodetectsystemerrorsDatabasesize:howbigisthedatabasecurrently.ThiscanbeusedtoidentifyhowmuchthesizeoftheDBgrowsdaily,monthlyetc.

    Asyoucouldnotice,thesevaluesareloadednotimmediatelyafterlogginginthewebinterface,ratherseveralsecondslater.Thereasonissimplecalculatingthestatisticstakessometimeandtonotforcethewebusertowait,theyareloadedinbackground.Oncethevaluesarecalculated,theyarecachedforthewholewebsession.Togettheactualstatistics,Refreshbuttoncanbeusedlater.