Pfsense - Squid + Squidguard - Traffic Shapping Tutorial

You might also like

Download as pdf
Download as pdf
You are on page 1of 10
twer017 PiSerse- Squid + Squidguard / Trae Shaping Tutorial Learn More. 7 T Q Tetorat earch Tutorial Sense -Squid + Squidguard / raf Shapplng Tutorial pfSense - Squid + Squidguard / Traffic (On this page Shapping Tutorial + pfSiense- Squid + Sauidauard Traffic Shaopina Tutorial + aeuurmeris + sta Pacaces to sense + Confautha rosy Sever Patone In ths tutorial show you how to setup pfSense 2.0.1 up as an Confaurne SaudtGuacd Feng Intemet Gateway wth Sauid Proxy / Squcguare Fring. LwE 260 show that you have to confgure some extra features of pense ke trafic shapping wth squid. Ths type of configuration would be useful for people who wart to Set up wireless hotspots or Intemet cafe's tc. Requirements “Ths tutoral assumes thet you aready have a pfsense (verson 2.0.1 Mrimum) alain running wih your network nterfaces configured and basic eval rubs configure, Installing Packages to pfsense Fest of allt start by sting the extra packages that we are going to requires Logi to your pfsense's Web Adminstrator, and cck on "Server -> Packages’, scrol ‘down the st and fn squid and cick on "+ baton to sta wa for the process to {sh then return to the packages section and look for scudguard and tal that package as wel ‘you reat wart insta bs package? =e] Iiip:amwihowtoforge.comiptsonse-squid-squidguard-raic-shaping tural a0 swer017 PiSerse- Squid + Squidguard / Trae Shaping Tutorial Learn More. To confrm thatthe packageshave been stale refesh the web nterface and goto "Services" menu and lok for Proxy Server & Proxy Fhe, Ftney both appear the menu they have been nstaled correty, rot the pSense Box. NOTE: There have been a couph of nstances where Lhave had to rental the squid package rght ater Lhave sta the squdguard package the reason behind this after Linstal the squdguard package Lam unable fo access the Proxy Server Configuration, fths happens 0 back tothe packages menu, clek on nsaked packages te, then Sekt renstalon the squid server entry (ths has onW Rappened Versions prer to 2.0.1), Configuring Proxy Server Package (Once pfsense has been reboated we want to configure the proxy serve settings, (now in this tutorial am seg up the proxy server asa transparent proxy, F yu want to set thik part up dferenty plese do you research nto aque configuration, the pense web ste has configuration gues for squd aswel), clek on Servees-> Proxy Server. (On the General Tab, you want to set the flowing settings, the Proxy Interface Option shout! be st to "LAN', and because Tam setting thi up asa transparent proxy sever, tck the "Transparent Proxy” check box. i. smart eee woul strongly recommend logging to be enabled on your proxy server, ab wilcome n handy should you need to troubk shoat a sue ot just see what people are doing on the Internet et. Tek the "Enabled Logging" Checkbox, set the bg store to the defauk locaton" Iarisqudhgs "rotate your bas every 7 days, set your proxy port to port number 3128 (remember ths port number as we wilneed linen we set the freval rules up), add vsbk hostname and an administrator e-mal address, and set your equred lenguage, ten cick on the Save butt, Iiip:amwihowtoforge.comiptsonse-squid-squidguard-raic-shaping tural 2n0 swer017 PiSerse- Squid + Squidguard / Trae Shaping Tutorial Learn More. Tahara ST ROS ERO = eee ee ‘pe beze hey Seve nln nda qn un nb a Setar enon Sore weomarete mb opcode tren Nate Reoveecesareg— ‘petbelBL be doiyed nny ave ere nee seminar ee ‘nete clecaes anoresnerer menage he ses saeamsoi atest emee eerste [Next clk on the "Cache Mgmt tab, by defaut the Hard Disk Cache Stef set to 100m, Twoutl strongly recommend tat you nerease thé, ‘now R wl depend on how big your HDD & that wil determine how bly you make 2 but aso keep mind the more people usng thé proxy the ‘more space You need to abate, aftr that st leave the rest ofthe page at defaub settings and ck on Save, Proxy server: Cache management ° Pot SE or — ‘Ck on the Access Control Tab next, the alowed subnets fel type h your requted subnets, (eq: 192,168.255.0/24); keep mind that You have more then ane subnet accessing ths proxy you nee to specFy cach subnet on fs own Ine. roxy server: Access contro ° sce EID NCI Scrol down untlyou see "ACL Safeports ang ACL. SSLPorts in these Fes you wilhave to type in what ports you want open threw your roxy server, you wil peed to do some rsearch on thi, thd out what appkatons are beng used on this network, and specTy your requed porst effective. For this howto Tam Just gang to use port 80 and 443 as these are the onl too parts that Ine to see f you have web ages and for some bask ntemet appkations to work, you want other appleatons to have access to the Internet, do some readng on hat ports arerequred and then update the pense box, once set ck on Save “tects cry Teese we tera ey nee 270001 salon 2 ‘ane ocean fpr ab St 'CORECT net ar (ee) Now for the peape who wih to throttle the speed of which users get access to the Interne, ck an the Trafe Mgmt klbbytes) what speed you want to restrict uses too, clek on Save once done, Iiip:amwihowtoforge.comiptsonse-squid-squidguard-raic-shaping tural ano swer017 PiSerse- Squid + Squidguard / Trae Shaping Tutorial Learn More. Lnttenmtesienan testes ne tee Configuring SquidGuard Filtering Now thats the proxy sever configured, next we ae gong to configure ScuddGuard, ‘lek on the Services menu and select the Proxy Fr button, tck the folowing 3 check boxes "Enable, "Enable GUI Lag” ene “Enable Log” then ck the Save button, once the page has rebaded cick on eppW and ten confem that the Squdguard service s running by making sure the Sauitguara tats set to STARTED. ine) Ui Pages Games Lu) var) MS Proxy filer SquldGuard: General settings as TN TT RE ene Nee een Eee St cal ec ny rte de i Si” Semen sinattn et tt Iiip:amwihowtoforge.comiptsonse-squid-squidguard-raic-shaping tural a0 swer017 PiSerse- Squid + Squidguard / Trae Shaping Tutorial Learn More. ‘x sang coigratin Oued ro Sv nbn ge a arg crn ecru apa ages (eee) pe Sects ea STAR Ge ry Ces tents eaiee Sc ret te er Ul i et on “em pavers es no dy oti oti esheets pge. ie een et ee Stay on the General Settngs Tab ane scrol downto the blckkst area ané tk the box that says Enable Blac, and nthe blacKlst URL type thefolowng http://w. shallaliat.de/bownloads/ehalialise. tar.gz, ane dek Save; tNS'ss0 we cen downibad the DEckist ata, Clekon the Hack st tab and add the save the sme URL as before to the Update Adéress and clek on Download, Wat for the process tocompbte. Eothiwsaoleomnuamcencestan “© (=| — Proxy fier SquidGuard Backlist page (Re SS Sg Eee [Rieiemastnacarermarioiea ae ee Stare raniia bol ‘Next clckon the common ACL tab, and the cick on Target Rus Li, and sect every rule that you want bck or alo, then add a message ta the Proxy Denk Error Fe, Tam currently just using the defadk ane they suggest (ack at sceenshot for exam, kave redrect mode at Int Error page so wl use the message you typein, tick the Lag Check box then clek on Save. Iiip:amwihowtoforge.comiptsonse-squid-squidguard-raic-shaping tural S10 ‘wot [Sense Squid + Squidguard Trae Shaping Tutorial 5 ee secrete anteater arang ta ta eta ne COnce that setup test your proxy and make sure everything i workng. Lhope this has been a help to you, and keep an eye out for the ext tutor which wi be inplniing Captive Portal fo ths setup ‘FE view as per | @ pent Share this page: vce: fal cowistargecon GEaRTobwew) —teconmane {T3) joa) ve 21 Comment(s) Add comment Name mal s[e[el7[e] P hhips:mmhoutforge.comptsense-squic-squidguard-rafic-shaping-tutoral e10 swer017 PiSerse- Squid + Squidguard / Trae Shaping Tutorial Learn More. From: Ricky Kua Rely Wen you mentioned "set your proxy port to port number 3128 (remember this port number as we wll ned when we set the frewal rubs up), there areno screenshots addee 25 to what ruks shouk You st the frewal. [As for "ACL Safeports and ACL SSLPorts’, do we nead to addin port 53 for resoling of URL? From: Anonymous Reply Sorry to say tis. why don't you start from the beghning how te canfgure. elude on your tutors simple Network dagrams 4 the folowing lst of configurations. Otherwise is @ waste of tie reading your tutor, 1. NIC configuration 2.PfSense WAN and LAN Conti 3. ‘The Frewal Ruks 4 Proxy sever conf, 5, SquidGuard Conf, You have sad nthe begining "When you mentioned "set your proxy pot to port number 3128 (remember ts port number as we wllneed tyhen we set the frewal rules Up)”, there are no screenshots ‘2cded 3s to what rus should you set in the frewal", I seams you don't know the freval par confguratins, Because screenshots are «2sy to put one your tutor. & a matter of copy and paste. Tam Sory for my words. Tam realy boking to solve th problem. But never came wth a smpk, sep by step configuration to configure 1 Psanse to work us for ntemet access Wthout proxy and fkeng a addng 2 frewel. 2. Pisense and Proxy only. 3. Add on the above ferng capably (SquiGuard). 4 Testng your configurations. 5. eportng using Light Squt.Tbelove the above stes are a fuly functional frewal apptcations onl Hf hey are properly configured and tested. From: Paul Rely In order to manage PFSense or any other network applance, one wll need abr of prerequite knowlege of networking. you don't have the bases down (such as contguting proxy settings n IE) and you flowed tutoral to setup 2 ful bown PFSense instal from scratch -F something breaks then you vile compketay bt. From: Reply ‘Thank you for ths From: Anonymous Reply ‘Thank you for your nice tutor. Do you abo know how to configure aqui as tps proxy h non transparent mode? From: Anonymous Rey Prsense 2.0.1 latest Buk. Jerything workng great with Squid, squtguerd.and Mukwan, ‘Trying to rewrke youtbe.com -> htp:/youtube.com/7acutter=zyshighi Wy? 1%3W ig ‘Should be easy? Not sure I understand reurke vs edectas the best soliton, Added target category youtube Dock youtubein ACL Heve revrte defined clekeon appl and ako ted squid and squiiguerd services 1 wikeep tying ‘cone pat using rerect only was gesting to redkect but gettng a redrect bop nthe cent browser. Heve nt found any step by step how to do a spe rede ‘ny advice appreceted, International school in Chang Mai Thalond From: azeermmasghar736 Rey 1 se this post agah because for the fist when see then setting required to me.Thavea knowkdge about PFSense that ven below and below bk Prsense i a Free3SD based Open source Frewal Router. isense bascaly using as a gateway device (freval and router). But can be ‘expandable as many Server services ke DNS, OMCP, and Proxy Servers. Here Lsubml step by step procedure to sta Ptsense based Proxy Proxy Severs Iiip:amwihowtoforge.comiptsonse-squid-squidguard-raic-shaping tural mo swer017 PiSerse- Squid + Squidguard / Trae Shaping Tutorial Learn More. 1 ans power search, Slack heppene From: Reply You need to mention the transperant proxy option From: Gerardo Jacnto ely Working Freboot ? From: Toshky Rely [Any one soles ths sue wth clckn2 or 3 times and the webste works? From: Norman Rely Hito Toshgy and other peopl with te same problem, Your problem seem to be that NAT didnt work with your proxy. Im not an expert but iknow this problem from an oer router (nksys RVOE2).I blocked allparts rom 1024-65535 on my ol ruter because of fsharhg the past (share 150mbk Ine wth ke 50 people na studens ft). ‘Mer ichanged to the Pisense the problem wh 2-5 times-hthg-for-fubibad was soled, And m sure ts the NAT of psense BS portmapplng (hope idant tak wron things now). [used TepViw on Windows to see what ports are opand when I start 2 browser (Frefox ‘and Chrome). And there are opend random ports eg. tp-54875 to tcp-S4905 whch try to reach port 80 on the desthation sie, Problem ould be that these Figh ports opend randomiy. Sothink you preblem & thatthe proxy lock the mapping to port 80 on the sever sie (desthatior). Hope my post he you, sorry for my bck of enolsh, Greets From: jay Kumar Realy have setup 2.24 v pense squd proxy separate machine Iset alas you mentioned above but when Lrestart machine squt proxy ‘Ropped.. the sence start when [uplad agan blackls ur From: Ajay Kumar Reply have setup 2.24 v. pense squid proxy separate machine Iset alas you mentioned above but when Irestart machine squd proxy stopped . thi servic start when Tupbad again bck url Phase heb From: Caio Brutal Rely ‘an pay together Frewak: Rubs and Proxy er SquidGuare ? pls advice. emal me, thank you h advance From: sdrenalne Rely can use this proxy server to serve ferent sever on my lan from the same wan port 80 with hostname based settings? From: Sheton Dickson Rely Hey guys, anyone on ths thread is a pfSense expert Id Ike to he you to heb me wih a new pfSense hstance L want to setup with flover intemet, tafe shaping and possbly squié. Tinterested Tm avaiable to get electronic messages; shelton at diekson resources daught commerce From: rogerbe Rely Buen di. No prodtian hacer un tutoral con maneo de horas con elproxy, la verdad he intentado con el Proxy Mer SquidGuard y no me sab, no tengo active proxy transparente, he buscado en toda b nternety no encuentro un tutoralcomplet alrespecto. Espero me ayuden, migra. From: narendra Rey 4 have istaled the pisense and squidquard and squl proxy But on my network whats app & not workhng..Can some one lp me to sot ths ‘suerte to check the port whic i used by whats app 443,5222,52223,52228,4244,5242, {Tt to open the ports on frewal but no secessI don't know howto confgure the roht parameters Iiipstimwuhowtforge.comptsense-squi-squidguard-raic-shapng tutorial swer017 PiSerse- Squid + Squidguard / Trae Shaping Tutorial Learn More. From: Zalstan Rey Helo everyone! Ihave confgute the proxy sever sa okie but face some problems, user don't put the proxy, aluser can access the intemet through pfsense wthout Backing any web se. How can Zbleck the user that dant put the proxy at browser? Please send emallto Thanks. From: morno Reply ‘What you want to store pense cache to @ network atached storage(NAS) o to a shared folder from your network. Is ths possible? Ineed hep for that setup. Tutors pfSense -Squid + Squidquard/ Tati sha am ty 38 MLL oe Py] + [3 [al '& Tutorial nfo © Share Ths Page hitp:mwihowtoforge.comiptsense-squid-squidgvard-ralc-shapng tutorial sno twer017 PiSerse- Squid + Squidguard / Trae Shaping Tutorial IP Transit $0.20/Mbps ® 17,000 BGP sessions with over 8,700, Networks plus 149 Internet Exenange Poiets. Y seers brie comet eh roe rowatrge porn Gn, sme hitp:mwihowtoforge.comiptsense-squid-squidgvard-ralc-shapng tutorial so10

You might also like