INSTALL PFSENSE+LUSCA

Embed Size (px)

Citation preview

  • 7/21/2019 INSTALL PFSENSE+LUSCA

    1/36

    INSTALL PFSENSE+LUSCA-CACHE IN VIRTUALBOX AND

    USE A SEPARATE VIRTUAL DRIVE AS ITS CACHE

    pfSense is an another type of protection for our vulnerable network. A modular router that can be

    customize base on your network needs. It has the ability to act as a router or a firewall, or even

    your cache server which means all your youtube, facebook, and other sites has being temporarilysaved in a storage and soon if someone in your LAN access the same website it can instantly

    retrive or view without the irony of web page reload or to buffer the video again. That's why

    your internet might become faster

    than your previous setup when you use pfSense. But dont worry with the right settings that suites

    your needs, your cache storage will not be full. Cache settings can be customized to overwritecache objects if the disk are full, so that your browsing, and live streaming experience will not be

    affected. And the best of all, it is free because it is an opensource software.

    Now this tutorial describes how to install PFSense and Lusca+Cache in Virtual Box. I prefer to

    useVirtualBoxbecause I often use it for Virtualization.

    First, you need to setup a pfSense Virtual Environment. Let say you have an existing network

    setup and you don't want to disrupt the current network connectivity. It's like you have this kindof setup.

    Basic network setup, w/o pfSense

    https://www.virtualbox.org/wiki/Downloadshttps://www.virtualbox.org/wiki/Downloadshttps://www.virtualbox.org/wiki/Downloadshttp://2.bp.blogspot.com/--cVCc-T_qKQ/UocGxKTflwI/AAAAAAAAAHg/06IWQ0l5XPc/s1600/no_pf_sense_infra.pnghttps://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcRptd79p5irfGD8_Lw6F3x9r93K4O-XRPFI4E678n1AhWq1uVKohttps://www.virtualbox.org/wiki/Downloads
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    2/36

    Then you need to do something like this,

    In this case, pfSense is only an option. Use or not to use pfSense scenario.

    Or, you totally remove your traditional router and replaced by pfSense(Hardware Mode)

    But this time, we will only setup and configure the second one. The "optional" pfSenseinfrastructure. Since we have the existing network setup that we do not want to disrupt the

    existing network. And at the same time we just want to test it first before bringt it to production

    environment.

    First, downloadpfSense-LiveCD-2.0.3-RELEASE-i386...iso

    Note: latest pfSense build has a bug (I already test it), it happens after you install lusca-cache

    package the proxy server gui doesn't show. Thats why I stick to the version 2.0.3.

    Now, setup a pfSense Virtual Machine in your VirtualBox, Go to Settings, then StorageYou may notice that I have two virtual disk, which I will use as Primary Drive(8gb) for pfSense

    and Secondary Drive(40gb) for Lusca-cache storage.

    http://files.nyi.pfsense.org/mirror/downloads/old/pfSense-LiveCD-2.0.3-RELEASE-i386-20130412-1022.iso.gzhttp://files.nyi.pfsense.org/mirror/downloads/old/pfSense-LiveCD-2.0.3-RELEASE-i386-20130412-1022.iso.gzhttp://files.nyi.pfsense.org/mirror/downloads/old/pfSense-LiveCD-2.0.3-RELEASE-i386-20130412-1022.iso.gzhttp://4.bp.blogspot.com/-ggM1B6F3PZY/UocK-0WNHvI/AAAAAAAAAH4/kMkFjx1chlc/s1600/pf_sense_as_router.pnghttp://1.bp.blogspot.com/-v741wrpuDDk/UocIK6BMTuI/AAAAAAAAAHs/nLA7RdGXBHw/s1600/with_pf_sense_infra.pnghttp://files.nyi.pfsense.org/mirror/downloads/old/pfSense-LiveCD-2.0.3-RELEASE-i386-20130412-1022.iso.gz
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    3/36

    Then setup the network for WAN and LAN interfaceGo to Network tab, then

    Adapter 1 for your WAN Interface

    Set it Bridge Adapterwhere it Attached to

    Select your WAN Interfacewhere the internet connection from your host machine isconnected

    Click the small arrow to collapse the Advancesection

    Set Promiscuous Modeto Denyto disallow packets in and out your host and virtual

    machine

    Tick the Cable connected check box, it should be in check state Then click OK

    http://4.bp.blogspot.com/-SlE1z6kLrU0/UowUI_ZZFJI/AAAAAAAAAQw/95QnXDlrSyI/s1600/1.1.pnghttp://2.bp.blogspot.com/-Vt5sAd8hB3c/UocMM6BYjVI/AAAAAAAAAIE/3_jSiJIJxgI/s1600/1.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    4/36

    Adapter 2 for your LAN Interface

    Set it Internal Networkwhere it Attached to

    Select your LAN Interfacewhere the internet connection from your host machine is

    connected

    Click the small arrow to collapse the Advancesection

    Set Promiscuous Modeto Allow VMsto allow packets in and out your virtual

    machines Tick the Cable connected check box, it should be in check state

    Then click OK

    Then power onyour pfSense virtual machine

    http://1.bp.blogspot.com/-CKypx5uLinM/UocOJnvlBeI/AAAAAAAAAIQ/6Q-P2jSGgbw/s1600/2.pnghttp://4.bp.blogspot.com/-Ut0HU0MOY3k/UowWlrXIZaI/AAAAAAAAAQ8/5efR93a-G6Q/s1600/1.2.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    5/36

    While booting, pfSense will show an installation option. Press I on your keyboard

    Then the Installation Wizard appears, Select Accept these Settings

    Select Install pfSense

    http://1.bp.blogspot.com/-9uOkculD1j0/UocSAsRUtNI/AAAAAAAAAJQ/7HtK8p0U448/s1600/2.3.pnghttp://3.bp.blogspot.com/-a9j8JR4LXkA/UocRpm5zNmI/AAAAAAAAAJI/9wW8yeOuuBY/s1600/2.2.pnghttp://1.bp.blogspot.com/--NiVEcPhY7o/UocRDFPjuPI/AAAAAAAAAJA/vaJxc88j-yI/s1600/2.1.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    6/36

    Select storageto install pfSense. Here we need to select ad0 for pfSense Installation

    Select Format this Disk

    Select Use this Geometry

    http://4.bp.blogspot.com/-_LoDve0uPAo/UocSo4k70NI/AAAAAAAAAJo/x_x_TONk9y4/s1600/2.6.pnghttp://2.bp.blogspot.com/-3gXP8ucyzKY/UocSgFCQssI/AAAAAAAAAJg/0d-hFU_EE-0/s1600/2.5.pnghttp://1.bp.blogspot.com/-QrUBm0DemQ0/UocSTkwzcvI/AAAAAAAAAJY/5KfENAgRtg4/s1600/2.4.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    7/36

    Format ad0disk

    Then, Partition disk

    Select Accept and Create

    http://4.bp.blogspot.com/-P59qJ6BDy2I/UocTNT64BbI/AAAAAAAAAKA/JhFVO0GFZqs/s1600/2.9.pnghttp://3.bp.blogspot.com/-Hl2m2SXi87c/UocS_uJ0ZSI/AAAAAAAAAJ4/VXVT4kG9l60/s1600/2.8.pnghttp://1.bp.blogspot.com/-vx4GEacvsSI/UocS0dtl-bI/AAAAAAAAAJw/RLGP-uNvfaA/s1600/2.7.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    8/36

    Select Yes, partition ad0

    Press enter to select OK, to continue

    Select Accept and Install Bootblocks

    http://1.bp.blogspot.com/-3YhqTxPT6bE/UocUlJDxhfI/AAAAAAAAAKk/s4HIiIzS5m4/s1600/2.12.pnghttp://2.bp.blogspot.com/-WnH6cs9C1xw/UocThvvtuPI/AAAAAAAAAKQ/EFyECf45Jjw/s1600/2.11.pnghttp://4.bp.blogspot.com/-dcR0HBaGrNs/UocTW9U7ceI/AAAAAAAAAKI/nYFwCiZsbBc/s1600/2.10.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    9/36

    Select OK

    Select 1st partitionto install pfSense

    Select OK. WARNING! All data in primary partition will be deleted. Be sure you don't have

    important files in it. And you know what you are doing

    http://2.bp.blogspot.com/-wvLVXS-1uOU/UocVPotrLpI/AAAAAAAAAK8/rNXxgNXEef0/s1600/2.15.pnghttp://3.bp.blogspot.com/-jwH3j1xsmMk/UocU8S0c_cI/AAAAAAAAAK0/uoo6BdZy2Pw/s1600/2.14.pnghttp://1.bp.blogspot.com/-Eb_t4_vglns/UocUxi1nd7I/AAAAAAAAAKs/zmwodE2_8Xs/s1600/2.13.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    10/36

    Select OKto proceed

    Now in partitioning we don't need to modify it just select Accept and Create

    Wait until the installation has been completed

    http://4.bp.blogspot.com/-1jNOPSm7NPU/UocWFO-wIJI/AAAAAAAAALY/jvPOGpU1DYo/s1600/2.18.pnghttp://2.bp.blogspot.com/-vEf5X-fwSMQ/UocV8_mYdyI/AAAAAAAAALQ/2bam0qz3tD8/s1600/2.17.pnghttp://4.bp.blogspot.com/-6NOZ6gOihNg/UocVZ8VymdI/AAAAAAAAALE/yW89KtE6FSs/s1600/2.16.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    11/36

    Select Symmetric multiprocessing...Then press enter

    Now we need to press Esc on your keyboard many times until you are back on the main intall

    page.

    When you are back on the main install page, select Install pfSense then press enter

    http://2.bp.blogspot.com/-HkkmVujU718/UorfdZ7-r2I/AAAAAAAAAMA/bUe0pNFQMFc/s1600/3.1.pnghttp://2.bp.blogspot.com/-xLlU-7bdUjU/UocWhaHZ4qI/AAAAAAAAALo/8OErSmOMxT0/s1600/2.20.pnghttp://1.bp.blogspot.com/-3rbFljT8CGY/UocWQejfbhI/AAAAAAAAALg/6kTb18Zo2bY/s1600/2.19.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    12/36

    Nowfor lusca-cache we need select ad1 (40gb)

    Select Format this Disk to format ad1 (40gb) storage for lusca-cache

    Select Use this Geometry

    http://3.bp.blogspot.com/-ilakxekUehU/UorhX84W-8I/AAAAAAAAAMg/NbULHsi8t98/s1600/3.4.pnghttp://2.bp.blogspot.com/-CCHIjARWr1Y/Uorgz9C0cNI/AAAAAAAAAMc/dMMDi7xe0UE/s1600/3.3.pnghttp://4.bp.blogspot.com/-sTRIWdyyNB4/UorgETX5VVI/AAAAAAAAAMI/9Nun_LggHdw/s1600/3.2.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    13/36

    Select Format ad1 to proceed formatting, then it will show a loading screen very quickly

    Select Partition Disk

    Select Accept and Create by using down arrow

    http://3.bp.blogspot.com/-2wGL3eJTVBo/UoriNroNZ3I/AAAAAAAAAM8/ym6lMmjKDY8/s1600/3.7.pnghttp://2.bp.blogspot.com/-HJkRnpZPXLY/UorhtttyZ7I/AAAAAAAAAMw/HhwmJUHCZKA/s1600/3.6.pnghttp://3.bp.blogspot.com/-PqZBN8mLPWo/Uorhg4jX8NI/AAAAAAAAAMo/Fh8SVjV6D7E/s1600/3.5.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    14/36

    Select Yes, partition ad1

    The wizard will prompt you that the disk was successfully partitioned, then press enter to

    continue

    Then it will want you to install bootblocks. You should just skip this step

    http://4.bp.blogspot.com/-5zmYw6d8mac/UoryGXirelI/AAAAAAAAANc/rZ7jSNgI4Js/s1600/3.10.pnghttp://4.bp.blogspot.com/-qI2E5ypGp9E/UorxljufnxI/AAAAAAAAANU/qvy3jMDrCrg/s1600/3.9.pnghttp://2.bp.blogspot.com/-jlzn2LfhQ6g/Uoricmwp3FI/AAAAAAAAANE/tvn_XIP3erI/s1600/3.8.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    15/36

    Then select a Partition to format

    The wizard will prompt you to that it will erase all data. Hit OK to continue

    Then it will prompt you again that it was formatted

    http://1.bp.blogspot.com/-Pimd1ROCQgQ/Uor4Sv_dtZI/AAAAAAAAAOA/H6BDj9UlkLU/s1600/3.13.pnghttp://3.bp.blogspot.com/-fAepZ0cfubQ/Uorz5Se6PLI/AAAAAAAAAN0/ID2n3Dg7cyI/s1600/3.12.pnghttp://1.bp.blogspot.com/-w02-e4PpTAY/UorzCdPhGDI/AAAAAAAAANo/k2pNWk99d5I/s1600/3.11.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    16/36

    Then you need to delete the default swap partition

    And change mount point to /var/squid/cache or /cache, its up to you where do you want to putthe cache storage but be sure you are aware of that

    Select Accept and Create to format the partition and begin the installation of pfSense

    http://4.bp.blogspot.com/-EEkFiKzQUCc/Uor51Iu9RgI/AAAAAAAAAOY/42h7NSH7pj0/s1600/3.16.pnghttp://2.bp.blogspot.com/-XCSm9O9NyzY/Uor5ZU1QAOI/AAAAAAAAAOQ/Qcy4f0aNo-Y/s1600/3.15.pnghttp://3.bp.blogspot.com/-Qq1UREBLgnI/Uor46UmljDI/AAAAAAAAAOI/jsQ9o8O0faE/s1600/3.14.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    17/36

    Because we deleted the swap partition and do not install pfSense, the installation will be

    confused and comes back with an error. But don't worry this is normal, you just need to

    proceed. Select OKto continue

    Then press, Cancel

    Press enter again to continue

    http://4.bp.blogspot.com/-7vC4a7lGVpU/UosmV1i2xdI/AAAAAAAAAO8/JXsKZuoSjio/s1600/3.19.pnghttp://3.bp.blogspot.com/-D_xwzSD7gCI/Uor6uejNBnI/AAAAAAAAAOs/EdnhRjuUMTY/s1600/3.18.pnghttp://1.bp.blogspot.com/-qvvDIzLJF-o/Uor6dZtIxPI/AAAAAAAAAOk/B9M7mCd6avs/s1600/3.17.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    18/36

    At this point you need to keep on pressing Esc buttonor Select Return to Select task until you

    are back to the main install page.

    Select 'reboot' and once its rebooted, then remove the CD

    After the virtual machine restarted, wait until pfSense has been done loading

    http://3.bp.blogspot.com/-vE_yUj6XreM/UocOdpC8hyI/AAAAAAAAAIY/klhTZEbsF30/s1600/3.pnghttp://2.bp.blogspot.com/-gTcQAuA-hio/UosvM6XO0oI/AAAAAAAAAPU/sdpFa4qNtmc/s1600/3.21.pnghttp://1.bp.blogspot.com/-r8641RnrZ1Q/Uosu2IG3tmI/AAAAAAAAAPM/jFUrBiVIw6M/s1600/3.20.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    19/36

    Skip vlan setup

    Assign WAN interface

    Assign LAN interface, then select Y to enable DHCP on LAN, then if you asked for OPT1 then

    just press enter to continue

    http://3.bp.blogspot.com/-_76yhvtFVvE/UocPrDBh5nI/AAAAAAAAAI0/qlCGjGvYeS4/s1600/6.pnghttp://1.bp.blogspot.com/-6xLkk29OMK8/UocO865TYGI/AAAAAAAAAIo/rMlUfWceGts/s1600/5.pnghttp://1.bp.blogspot.com/-bs_ZvaoO6a4/UocOwsNySrI/AAAAAAAAAIg/ZWpV05T1d7w/s1600/4.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    20/36

    Then you should be asked if you want to proceed, just type y and press enter

    At this point you are now in the main menu of pfSense which you have privileges to setup other

    features like enabling ssh (14). But for this instance, I need to change the LAN IP address of

    pfSense to 192.168.5.1. So I we need to type 2 for Set interface(s) IP address

    Type number 2 to configure LAN interface

    http://3.bp.blogspot.com/-eJVvgYz_KJI/UowcgVrEeeI/AAAAAAAAARc/_k5t7rzDkxM/s1600/1.5.pnghttp://3.bp.blogspot.com/-IhRQuQ6jqvo/UowbYOsCdmI/AAAAAAAAARQ/12CGZOA4Llc/s1600/1.4.pnghttp://2.bp.blogspot.com/-a2sgcbnWfmI/Uowa7AeDOqI/AAAAAAAAARI/kCrfpdMC5Yc/s1600/1.3.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    21/36

    Type the LAN IP address you wish to specify, then press enter

    Then type its subnet bit count, which is 24 = 255.255.255.0

    Then enable DHCP server on LAN

    http://2.bp.blogspot.com/-WMCc-2MUFDU/UowdrafaPSI/AAAAAAAAAR0/rVN_vNKs9VE/s1600/1.8.pnghttp://2.bp.blogspot.com/-8Mu2xs8RYj0/UowdPzl6nMI/AAAAAAAAARs/7O8BelWod64/s1600/1.7.pnghttp://1.bp.blogspot.com/-BOjyVrmOXI8/Uowc3Z1tPsI/AAAAAAAAARk/vPcM3VpdeKo/s1600/1.6.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    22/36

    Type the start address of client address range. Start = 192.168.5.100

    Then type the end address of the client address range. End = 192.168.5.150

    Type y to revert to HTTP as the webConfigurator

    http://3.bp.blogspot.com/-hW1TsnTI1m4/UoweryFMFRI/AAAAAAAAASM/8-ILzI6YrgI/s1600/1.11.pnghttp://3.bp.blogspot.com/-3kjfKMZ-fDw/UoweT59CbZI/AAAAAAAAASE/LdknRjvpHnE/s1600/1.10.pnghttp://2.bp.blogspot.com/-Eek-U8Ctcl0/Uowd_zvor9I/AAAAAAAAAR8/Dgr-bpQOptA/s1600/1.9.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    23/36

    Now since you have setup the NICs and IP addresses now,

    Now we will going to configure the pfSense using the web gui, Go to your Virtual Box Manager,

    select the appropriate client vm you will use to test your internet connection. In this instance I

    will be using Windows XP Service pack 3 for testing purposes. Then press Settings button

    Then go to Network tab, Adapter 1, then select Attached to Internal Network. We need to this for

    us to avoid affecting the external network because we need to enable the pfSense DHCP on the

    LAN side to test if its working.

    http://1.bp.blogspot.com/-ETD0Rhe55dk/UowSYrXkV5I/AAAAAAAAAQc/nI-crswq0Fc/s1600/5.2.pnghttp://1.bp.blogspot.com/-dR0yRWIkqRA/UowQSH1Dm8I/AAAAAAAAAQI/KrEToA4dxUM/s1600/5.1.pnghttp://1.bp.blogspot.com/-2BwvV9piqy0/UowOta1uwsI/AAAAAAAAAP8/lIByoUNBNNU/s1600/4.0.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    24/36

    Then power on your Windows VM, then you should see from your Local Area Connection

    Status window, that Windows has been given an IP address of 192.168.5.100 by the pfSense

    LAN DHCP.

    To do this, your Windows network connection should be set as obtain ip address from dhcp

    server.

    Now we may configure pfSense, fire up your google chrome or any web browser you like, andtype the default gateway(router) ip address which is the pfSense 192.168.5.1

    Type adminas Usernameand pfsenseas Password

    Then press enter to login

    http://3.bp.blogspot.com/-SqBPwXX8k8A/UowugVXn5II/AAAAAAAAASo/jr07GAOqjCQ/s1600/1.13.pnghttp://3.bp.blogspot.com/-U9eeFKo_TJg/UowtFZ4QjnI/AAAAAAAAASc/H3XCKy3ZkjE/s1600/1.12.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    25/36

    Then you should be redirected to the pfSense configuration wizard, click Next

    Next, customized your Hostname and Domain name

    Set your timezone. Then, click Next

    http://4.bp.blogspot.com/-OQ4yT3wMD-M/UoxSgnLO_SI/AAAAAAAAATg/THBo3gTaS1E/s1600/1.16.pnghttp://2.bp.blogspot.com/-542Td_Pg2bY/UoxRrBS7XOI/AAAAAAAAATU/MyChbgSVG0c/s1600/1.15.pnghttp://2.bp.blogspot.com/-VUVF0VaupBA/UoxGXw59LII/AAAAAAAAAS4/Y-LUKgnK-3w/s1600/1.14.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    26/36

    Then, Browse down and click Next

    http://4.bp.blogspot.com/-8PLcs8q71j8/UoxZByG2xkI/AAAAAAAAAUQ/J5DtWEYeNuU/s1600/1.19.pnghttp://1.bp.blogspot.com/-wkqkw-WrWc4/UoxYf4ChuMI/AAAAAAAAAT4/WdI1i3-LZ2M/s1600/1.18.pnghttp://1.bp.blogspot.com/-zLQP99UC128/UoxYIIme00I/AAAAAAAAATw/gP6S1Q0YmBk/s1600/1.17.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    27/36

    Click Nextto proceed

    Set your desired admin passwordand click Next

    http://1.bp.blogspot.com/-6q4WQ3DfUow/UoxaHUWOnpI/AAAAAAAAAUk/_uOP5Sn2YbA/s1600/1.22.pnghttp://2.bp.blogspot.com/-EI_W_mDpKPQ/UoxZkpDemaI/AAAAAAAAAUc/KRcxkrqSpuM/s1600/1.21.pnghttp://3.bp.blogspot.com/-0VI4cR-r9mI/UoxYtOCyjFI/AAAAAAAAAUI/NzrJ7dNT6_M/s1600/1.20.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    28/36

    Then wait for it finishes loading configuration

    Then after it loads, click the herelink

    Then you should redirected inside the pfSense web gui. where the Dashboard will be the defaultMain Page. Notice your WAN interface already acquired its IP address from your existing router.

    http://2.bp.blogspot.com/-PE_4E4HUpH8/UoxlPR3HfHI/AAAAAAAAAVI/nqrE2P8-7Vk/s1600/1.25.pnghttp://2.bp.blogspot.com/-xSovZloNDK0/UoxkmXPP0XI/AAAAAAAAAU8/i_Y4DNAwEHc/s1600/1.24.pnghttp://2.bp.blogspot.com/-D1d3D_pFJ0k/UoxkXI0hu8I/AAAAAAAAAU0/88MHYbEhu9E/s1600/1.23.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    29/36

    Then test your internet connection.

    Then lets mount the second disk. Go to your fpSense gui, press 8on your keyboard to enter theshell where you can type in commands. We need to mount the second disk the ad1 to be use for

    lusca-cache storage.

    Then, type newfs /dev/ad1s1a or

    Replace the '/dev/ad1s1a' with the proper name of your hard drive and the slice on your harddrive

    http://2.bp.blogspot.com/-ho2B11FtzHU/UowOI57SrUI/AAAAAAAAAPw/CxodL09zYss/s1600/4.2.pnghttp://1.bp.blogspot.com/-tXZsE7BZiRE/UowLkfB4nTI/AAAAAAAAAPo/kOOSnj89c-s/s1600/4.1.pnghttp://1.bp.blogspot.com/-y7VO6E9ORM4/Uoxqr7MhedI/AAAAAAAAAVY/Le6fY-VXETs/s1600/1.26.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    30/36

    This should show on your screen

    Then edit fstab by typingvi /etc/fstabor ee /etc/fstaband add the following lines:/dev/ad1s1a /cache ufs rw 1 1

    Press Esc to leave editor, and press enter

    http://1.bp.blogspot.com/-JT4W8KaywNA/UoxtMDscfUI/AAAAAAAAAV0/vRQb88FjfTM/s1600/1.29.pnghttp://3.bp.blogspot.com/-KqQTBstJFoI/UoxsfmtGx5I/AAAAAAAAAVs/hg6_C-WXEiU/s1600/1.28.pnghttp://4.bp.blogspot.com/-N7Kj7NzoTrU/UoxrDvJC7HI/AAAAAAAAAVg/wQJaZls_EA8/s1600/1.27.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    31/36

    And press enter again to save changes

    Then changes has been save successfully, now type mount -a to mount the cache drive

    An error will show saying No such file or directory, so we just need to mkdir /cacheto create

    new folder/directory to the root(/) directory

    http://1.bp.blogspot.com/-6YR5xjeFXOo/UoxuRN5kUOI/AAAAAAAAAWU/hfFk1BE_RQI/s1600/1.32.pnghttp://3.bp.blogspot.com/-TcgI8PYVbJU/UoxtwT16-PI/AAAAAAAAAWM/C13420iEbFU/s1600/1.31.pnghttp://3.bp.blogspot.com/-R7p0_hefEcg/UoxtgaR_hEI/AAAAAAAAAWE/sNjLSOJHAwY/s1600/1.30.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    32/36

    Then it will show nothing but it already created the /cache directory. Then type mount -aagain

    and it will show nothing again

    But if you type df -h you may see it is now mounted. It should look like this

    Now in your Windows client go to your pfSense web gui and go to Diagnostics, CommandPrompt and copy paste this code:

    fetch http://pfsense-cacheboy.googlecode.com/svn/trunk/script/package.sh && chmod +x

    package.sh && ./package.sh

    Then, click Execute

    http://1.bp.blogspot.com/-nrgA78HPb9k/Uox0FfjrmrI/AAAAAAAAAWw/YiUsi4H2G2E/s1600/1.35.pnghttp://4.bp.blogspot.com/-ETsRTxvrbeY/Uoxvx6NJeMI/AAAAAAAAAWk/T_JQ5K95XA0/s1600/1.34.pnghttp://2.bp.blogspot.com/-Jxzlbot3h80/Uoxu9JlqQPI/AAAAAAAAAWc/DFLDnWXNwB8/s1600/1.33.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    33/36

    You should see this message, informing you that it's done

    Then go to System, Package Manager, and Click Available Packages

    Press Ctr+F on your keyboard to search for lusca-cache

    Then click the + button to add/install lusca-cache

    Click OK to continue if you've been asked by Chrome to install it

    When the installation successfully completed, it should look like this

    http://4.bp.blogspot.com/-2_6F8r1S9pY/Uox2kE0jNEI/AAAAAAAAAXY/VW1Z_dkHGmc/s1600/1.38.pnghttp://4.bp.blogspot.com/-JOkaOTChE8I/Uox1NSzGl3I/AAAAAAAAAXE/gtVu3zIlxzU/s1600/1.37.pnghttp://4.bp.blogspot.com/-sYb9pixRE5Q/Uox0jEG9fuI/AAAAAAAAAW4/-Z9nUJ_dRMo/s1600/1.36.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    34/36

    Now go to Services, Proxy Server.

    On the general tab, Tick the Transparent proxy check box

    and Click save button below

    Here on this tab, Select Hard disk cache systemto coss + aufs.

    Then modify CossHard disk cache sizeto 100and for Hard disk cache size to 38000. It

    depends on your configuration of virtual machine specs like HDD space, since we have only40gb cache storage we need to allocate 38000 in terms of mega bytes.

    For COSS Hard disk cache location it would be /cache/coss. (if lusca doesn't create cossdirectory automatically, just mkdir coss inside /cache)

    And for Hard disk cache locationit would be /cache

    Maximum object size, higher than you declared value would not be cached but lower than

    declared will be cached. Its up to you how many you want to allocate. But for this instance wewill just allocate 1gb which is 1024mbfor the Maximum object size

    Then click save

    http://1.bp.blogspot.com/-uNt9ue77Jt4/UpBqcd73a-I/AAAAAAAAAYg/7vweEsXtLwU/s1600/7.1.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    35/36

    Now, since I prefer to choose to increase the download speed I decide to set 6024for Overall

    bandwith throttling.

    Click Save to save the settings

    http://2.bp.blogspot.com/-4rWPqKMmffY/UpBrGLTzZTI/AAAAAAAAAY0/jXRSB-rd73E/s1600/7.3.pnghttp://1.bp.blogspot.com/-3LTNspmdm3M/UpBqp2tg-VI/AAAAAAAAAYo/Ph-UlqB0H8I/s1600/7.2.png
  • 7/21/2019 INSTALL PFSENSE+LUSCA

    36/36

    Then Go to Status at the Main Toolbar then click on Services to start the service

    Then, Congratulation.. You have successfully installed and run the PFSense with Lusca-Cache.

    Now what?

    Go ahead and test it, if theres no changes in your internet performance you may tweak the

    settings and play with it freely until you achieve your satisfaction. But remember, you must think

    that there are many consideration that causes your internet connection to slow down, and I

    cannot list here one by one for this post is only about the subject.

    http://1.bp.blogspot.com/-UAQICxFJ2iY/UpBrs-cCPOI/AAAAAAAAAZE/6IfeuPqgFTI/s1600/7.4.png