Changes between Version 7 and Version 8 of noc2018/agenda/PfsenseBasics
- Timestamp:
- Dec 4, 2018, 7:08:16 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
noc2018/agenda/PfsenseBasics
v7 v8 36 36 - Select storage type to '''Fixed size''' and '''Continue''' 37 37 38 - Make sure virtual hard disk file name in following format 39 40 '''pfsense.instXY.ac.lk''' 38 - Make sure virtual hard disk file name in following format '''pfsense.instXY.ac.lk''' 41 39 42 40 - adjust the disk size to '''10.0GB''' and click on '''Create''' to create the VM … … 49 47 - Click on the '''Network''' title 50 48 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).49 - On '''Adapter 1''' While '''Enable''' Network Adapter selected choose Attached to be '''Bridge Adapter'''. This virtual interface will work as the WAN port of the firewall (Can be connect from out side). 52 50 53 51 - On '''Adapter 2''' While '''Enable''' Network Adapter selected choose Attached to be '''Internal Network'''. Default name is '''intnet'''. keep it that way. This virtual interface will work as our LAN port (Can't connect from out side). … … 63 61 - Right click on VM to make a '''Normal Start''' VM. You should now see a separate window with PFSense Installation screen 64 62 65 == Pfsense Installation ==66 63 67 64 === Initial Installation === … … 71 68 - Next, press '''Enter''' to Accept copyright notice, 72 69 73 - Select Install and press OK74 75 - Select "Continue with default keymap"76 77 - Select "Auto (UFS)" for Partitioning and click OK78 79 - Now the Installation is finished So it will ask to enter to a manual modification state, Select Noand enter.80 81 - Now Reboot, As soon as it start to reboot power off the vm manually, Go to settings of the vm and remove the iso image from Storage.70 - Select '''Install''' and press '''OK''' 71 72 - Select '''Continue with default keymap''' 73 74 - Select '''Auto (UFS)''' for Partitioning and click '''OK''' 75 76 - Now the Installation is finished So it will ask to enter to a manual modification state, Select '''No''' and enter. 77 78 - Now Reboot, '''As soon as it start to reboot power off the vm manually''', Go to settings of the vm and remove the iso image from Storage. 82 79 83 80 - Then Start the vm … … 85 82 === First Bootup === 86 83 87 '''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 88 89 After rebooting, you will get the a screen with available interfaces to configure the network. 90 91 - The first option is presented as '''VLAN’s''', simply here say No by pressing '''n''' and '''enter'''. 92 93 - 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. 94 95 - It will ask for the '''confirmation''' and you can proceed with '''Y''' and press '''enter''' to continue to the 96 97 == [=#point1 pfSense Console Configuration] == 98 99 pfSense console configuration interface has the basic configuration options in pfSense. You can select these options by typing there index number and pressing enter. 100 101 === Assign WAN & LAN Interfaces === 102 103 - Note that WAN and LAN Interfaces are assigned by PFSense itself. To change that press '''1''' and '''enter''' 104 105 - The first step is presented as '''VLAN’s''', simply here say No by pressing '''n''' and '''enter'''. 84 After booting, you will get the a console screen with available options and summaries. pfSense console configuration interface has the basic configuration options in pfSense. You can select these options by typing their index number and pressing enter. 85 86 === Assign Interfaces === 87 88 In this pfSense installation we will have two networks as WAN and LAN. For the box to work we need to assign connected NIC's to these networks. 89 90 - To assign interfaces to networks press '''1''' and enter 91 92 - It will ask you to assign VLANs, press '''N''' as we don't need it now. 93 94 - There are two interface’s '''em0''' and '''em1''', pfSense will ask which interface to use as WAN and which interface to use as LAN. 106 95 107 96 - To select em0 as WAN interface type '''em0''' and press '''enter''' … … 109 98 - To select em1 as LAN interface type '''em1''' and press '''enter''' 110 99 111 - We do not need optional interfaces so press '''enter''' at the next step112 113 100 - Do you want to proceed? press '''y''' to say yes and '''enter''' 114 101 … … 128 115 - Press '''n''' and '''enter''' to disable http on WAN interface 129 116 130 - You will be prompted back to main interface .117 - You will be prompted back to main interface after pressing Enter when it prompts. 131 118 132 119 === Assign LAN IP addresses === … … 136 123 - To change the WAN interface IP Address press '''2''' and '''enter'''. 137 124 138 - Enter the LAN I paddress as ''' 10.XY.1.254'''. Enter subnet mask 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.139 140 - We are not going to have an IPv6 address for LAN at this point. So just Press enter.125 - Enter the LAN IP address as ''' 10.XY.1.254'''. Enter subnet mask 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. 126 127 - Enter the LAN IPv6 address as ''' 2401:DD00:XXXX:WXYZ::FFFF''. Enter subnet mask as '''64'''. We are going to have this IP address as our LAN's gateway IPv6. Do not give any parameters to gateway on LAN. Just press enter. 141 128 142 129 - To enable DHCP server on LAN press '''y''' and press enter 143 130 144 131 - For this workshop our LAN DHCP range is 10.XY.1.10 to 10.XY.1.50. Give start and end IP addresses in next steps. 132 133 - When it asks to enable dhcp for IPv6 press '''n''' as we are not to enable dhcpv6 at this time 145 134 146 135 - Press '''n''' and '''enter''' to disable http on WAN interface … … 181 170 On your Server vm log in and edit ip configuration `sudo nano /etc/netplan/50-cloud-init.yaml` 182 171 183 **Change**IP addresses to match your addresses172 '''Change''' IP addresses to match your addresses 184 173 185 174 {{{ … … 277 266 Save and Apply Changes 278 267 279 280 281 282 283 268 Now you can use your host machine's web browser to login to your pfsense box web configurator using its WAN address. 269 270 == Interfaces == 271 272 In this menu we can re-do assigning interfaces, assigning IP addresses etc. As we have already done that using CLI, we will skip this. 273