Changes between Initial Version and Version 1 of noc2018/agenda/PfsenseBasics


Ignore:
Timestamp:
Nov 14, 2018, 10:51:05 AM (5 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • noc2018/agenda/PfsenseBasics

    v1 v1  
     1= Pfsense Initial Setup=
     2
     3The pfSense project is a free, open source tailored version of FreeBSD for use as a firewall and router with an easy-to-use web interface. There are two ways of installing pfSense.
     4  - Full installation
     5  - Embedded Installation
     6
     7Here you are going to create a pfSense virtual machine using full installation method to install pfSense.
     8
     9== Setting up virtualbox ==
     10
     11=== Downloading pfSense iso image ===
     12
     13 - [. Download] pfSense image from lab mirror or you can get it from [https://www.pfsense.org/download/ here].
     14
     15
     16
     17=== Creating PFSense VM ===
     18 - Start virtualbox and Click on New button (at top-right) to create new virtual machine
     19
     20 - Enter name of the VM as: '''pfsense.'your domain'.ac.lk'''. You can get your domain from [wiki:noc2018/agenda/IpAllocation here]
     21
     22 
     23
     24 - Select OS Type: '''BSD'''
     25
     26 - Select Version: '''FreeBSD (64-bit)'''
     27
     28 - Then click on '''Continue''' button
     29
     30 - Set VM's memory size to '''1GB''' and click on Continue button
     31
     32 - Set VM's hard disk option to '''Create a virtual hard disk now''' and then click on '''Continue'''
     33
     34 - Select disk type to '''VDI'''
     35
     36 - Select storage type to '''Fixed size''' and '''Continue'''
     37
     38 - Make sure virtual hard disk file name in following format
     39
     40 '''pfsense.'your domain'.ac.lk'''
     41
     42 - adjust the disk size to '''10.0GB''' and click on '''Create''' to create the VM
     43
     44
     45=== Setting up Network Interface ===
     46
     47 - Select the VM from left panel on Virtual box, right click and open '''Settings'''
     48
     49 - Click on the '''Network''' title
     50
     51 - On '''Adapter 1''' While ''Enable'' Network Adapter selected choose Attached to be '''Bride Adapter'''. This virtual interface will work as the WAN port of the firewall (Can be connect from out side).
     52
     53 - On '''Adapter 2''' While '''Enable''' Network Adapter selected choose Attached to be '''Internal Network'''. Default name is '''intent'''. keep it that way. This virtual interface will work as our LAN port (Can't connect from out side).
     54
     55=== Setting up boot device and Booting===
     56
     57 - Click on '''Storage''' title and select '''CD ROM icon''' under the '''Controller:IDE''' Click on CD ROM icon under the '''Attribute''' on the left side to select
     58
     59 - Choose '''Virtual Optical Disk File'''
     60
     61 - Locate the '''PFSense CD image''' file you downloaded earlier
     62
     63 - Right click on VM to make a '''Normal Start''' VM. You should now see a separate window with PFSense Installation screen
     64
     65== Pfsense Installation ==
     66
     67=== Initial Installation ===
     68
     69 - When the pfSense starts booting, a prompt is displayed with some options and a countdown timer. At this prompt, press '''1''' to get install '''pfsense by default'''. If we don’t choose any option it will start to boot option 1 by default.
     70
     71 - Next, press '''I''' to install fresh copy of pfsense,
     72
     73 - On the next screen, it will ask you to '''Configure Console''', just press '''Accept these settings''' to move forward for installation process.
     74
     75 - Choose '''Quick / Easy Install''' option to take make things easier. Once you are familiar with pfsense installation you can try '''Custom Install'''.
     76
     77 - The install will proceed, wiping the target disk and installing pfSense. Copying files may take some time to finish.
     78
     79 - After the files have been copied to the target disk, a choice is presented to select the '''Console Type'''. Standard Kernel defaults to the VGA console. Embedded Kernel  defaults to serial console. Choose '''Standard Kernel'''
     80
     81 - Now the Installation is finished So it will ask to reboot. Choose '''Reboot''' and remember to '''remove the disc''' from vm so it will not fall back to the installation (Some times your vm might hang when you remove your disk. If this happens '''Right click''' your vm ( pfsense.'your domain'.ws.learn.ac.lk) on '''virtualbox manager''' window. Go to the '''close''' attribute and click on '''power off'''. It will shut down your vm. After it shuts down '''Right click''' your vm (pfsense.'your domain'.ws.learn.ac.lk) on '''virtualbox manager''' window and Click '''start'''. It will start your vm again.
     82
     83=== First Bootup ===
     84
     85'''note :''' If you reboot your vm manually you will be prompted straight to the pfSense [#point1 configuration user interface]. But do not worry it will not effect on your firewall
     86
     87After rebooting, you will get the a screen with available interfaces to configure the network.
     88
     89 - The first option is presented as '''VLAN’s''', simply here say No by pressing '''n''' and '''enter'''.
     90
     91 - There are two interface’s em0 and em1, pfSense will ask which interface to use as WAN and which interface to use as LAN. Press '''a''' and '''enter''' to auto configure the interfaces. please note that in this case pfSense is intelligent to assign correct virtual interfaces as WAN and LAN ports, Because only one interface can be connect from out side. Even if the interfaces are wrong you can assign them correctly later.
     92
     93 - It will ask for the '''confirmation''' and you can proceed with '''Y''' and press '''enter''' to continue to the
     94
     95== [=#point1 pfSense Console Configuration] ==
     96
     97pfSense console configuration interface has the basic configuration options in pfSense. You can select these options by typing there index number and pressing enter.
     98
     99=== Assign WAN & LAN Interfaces ===
     100
     101 - Note that WAN and LAN Interfaces are assigned by PFSense itself. To change that press '''1''' and '''enter'''
     102
     103 - The first step is presented as '''VLAN’s''', simply here say No by pressing '''n''' and '''enter'''.
     104
     105 - To select em0 as WAN interface type '''em0''' and press '''enter'''
     106
     107 - To select em1 as LAN interface type '''em1''' and press '''enter'''
     108
     109 - We do not need optional interfaces so press '''enter''' at the next step
     110
     111 - Do you want to proceed? press '''y''' to say yes and '''enter'''
     112
     113
     114=== Assign WAN IP addresses ===
     115
     116 - To change the interface IP address press '''2''' and '''enter'''
     117
     118 - WAN IP is set by DHCP by default. To change the WAN interface IP Address press '''1''' and '''enter'''.
     119
     120 - We are going to have a static IP for WAN Interface. So press '''n''' and '''enter''' to avoid pfSense to configure the interface IP by DHCP.
     121
     122 - Enter the WAN '''IP address assign''' to you and '''enter'''. Give '''subnet mask''' and '''gateway''' in the next steps. You can find your IP allocation from the [wiki:ipallocation IP table]
     123
     124 - We are going to have an IPv6 address by DHCP. Press '''y''' and '''enter''' to let pfSense get an IPv6 address
     125
     126 - Press '''n''' and '''enter''' to disable http on WAN interface
     127
     128 - You will be prompted back to main interface.
     129
     130=== Assign LAN IP addresses ===
     131
     132 - To change the interface IP address press '''2''' and '''enter'''
     133
     134 - To change the WAN interface IP Address press '''2''' and '''enter'''.
     135
     136 - Enter the LAN Ip address as ''' 10.1.1.254'''. Enter subnet mas as '''24'''. We are going to have this IP address as our LAN's gateway IP. Do not give any parameters to gateway on LAN. Just press enter.
     137
     138 - We are not going to have an IPv6 address for LAN. So just Press enter.
     139
     140 - To enable DHCP server on LAN press '''y''' and press enter
     141
     142 - For this workshop our LAN DHCP range is 10.1.1.10 to 10.1.1.50. Give start and end IP addresses in next steps.
     143
     144 - Press '''n''' and '''enter''' to disable http on WAN interface
     145
     146 - You will be promted back to main interface.
     147
     148You have now set up both WAN and LAN IP addresses.
     149
     150=== Reset WEB Configurator password ===
     151
     152This step is optional as This step will reveal you the default user name and password for the webconfigurator. Press '''3''' and '''enter'''.
     153
     154Above the line 'Do you want to proceed' you will see the default username and password on the web access. Note down the default password and Press '''n'''
     155
     156
     157
     158
     159