# 安裝及初次設定

1. 安裝  
    1 安裝環境可以是X64 PC 或 VM   
    2 首先到官方網頁先下載安裝檔 [https://www.pfsense.org/download](https://www.pfsense.org/download)/，下載光碟ISO 或是 IMG檔都可以，ISO燒錄成光 碟，或使用ISO 或 IMG檔，寫入USB隨身碟，推薦軟體[ IMGNURN](https://www.imgburn.com/)，[balenaEtcher](https://www.balena.io/etcher/)。  
    3 使用ISO或USB開機，  
      
    ENTER或等3秒直接跳過  
    [![image.png](http://books.cpic.com.tw/uploads/images/gallery/2022-09/scaled-1680-/KL4image.png)](http://books.cpic.com.tw/uploads/images/gallery/2022-09/KL4image.png)
    
    接受  
    [![image.png](http://books.cpic.com.tw/uploads/images/gallery/2022-09/scaled-1680-/ItUimage.png)](http://books.cpic.com.tw/uploads/images/gallery/2022-09/ItUimage.png)
    
      
    選 INSTALL  
    [![image.png](http://books.cpic.com.tw/uploads/images/gallery/2022-09/scaled-1680-/XrWimage.png)](http://books.cpic.com.tw/uploads/images/gallery/2022-09/XrWimage.png)
    
      
    選預設鍵盤  
    [![image.png](http://books.cpic.com.tw/uploads/images/gallery/2022-09/scaled-1680-/Ob7image.png)](http://books.cpic.com.tw/uploads/images/gallery/2022-09/Ob7image.png)
    
      
      
    選UFS BIOS，新機可選 UFS-UEFI  
    [![image.png](http://books.cpic.com.tw/uploads/images/gallery/2022-09/scaled-1680-/Rinimage.png)](http://books.cpic.com.tw/uploads/images/gallery/2022-09/Rinimage.png)
    
      
    等待...  
    [![image.png](http://books.cpic.com.tw/uploads/images/gallery/2022-09/scaled-1680-/olEimage.png)](http://books.cpic.com.tw/uploads/images/gallery/2022-09/olEimage.png)"
    
    NO  
    [![image.png](http://books.cpic.com.tw/uploads/images/gallery/2022-09/scaled-1680-/Fmuimage.png)](http://books.cpic.com.tw/uploads/images/gallery/2022-09/Fmuimage.png)
    
    REBOOT  
    [![image.png](http://books.cpic.com.tw/uploads/images/gallery/2022-09/scaled-1680-/hkBimage.png)](http://books.cpic.com.tw/uploads/images/gallery/2022-09/hkBimage.png)  
      
    移出光碟後重新開機，會開到初始畫面
2. 初次設定  
    可以選擇本機畫面安裝，或網頁直接輸入IP 192.168.1.1(通常是第二個網路孔，第一孔DHCP，連不到先用本機安裝) 帳密 admin/pfsense 登入後進行安裝精靈。  
      
    網頁安裝 192.168.1.1  
    [![image.png](http://books.cpic.com.tw/uploads/images/gallery/2022-09/scaled-1680-/j5fimage.png)](http://books.cpic.com.tw/uploads/images/gallery/2022-09/j5fimage.png)  
      
    跑安裝精靈 依次輸入相關資訊
    
    [![image.png](http://books.cpic.com.tw/uploads/images/gallery/2022-09/scaled-1680-/qv6image.png)](http://books.cpic.com.tw/uploads/images/gallery/2022-09/qv6image.png)
    
      
    本機安裝
    
    [![image.png](http://books.cpic.com.tw/uploads/images/gallery/2022-09/scaled-1680-/dG2image.png)](http://books.cpic.com.tw/uploads/images/gallery/2022-09/dG2image.png)
    
      
      
    創勁基本設定  
    Hostname:pfs  
    domain:對方網域 或隨便  
    密碼:  
      
    Firewall\\Aliases 新增創勁IP  
    [![image.png](http://books.cpic.com.tw/uploads/images/gallery/2022-09/scaled-1680-/qAYimage.png)](http://books.cpic.com.tw/uploads/images/gallery/2022-09/qAYimage.png)
    
    [![image.png](http://books.cpic.com.tw/uploads/images/gallery/2022-09/scaled-1680-/xPrimage.png)](http://books.cpic.com.tw/uploads/images/gallery/2022-09/xPrimage.png)  
      
    Firewall\\Rules 增加信任IP (CPIC)
    
    [![image.png](http://books.cpic.com.tw/uploads/images/gallery/2022-09/scaled-1680-/dbuimage.png)](http://books.cpic.com.tw/uploads/images/gallery/2022-09/dbuimage.png)
3. 參考資料  
    英文   
    中文 [https://ithelp.ithome.com.tw/articles/10246505](https://ithelp.ithome.com.tw/articles/10246505)  
    [https://docs.netgate.com/pfsense/en/latest/install/download-installer-image.html](https://docs.netgate.com/pfsense/en/latest/install/download-installer-image.html)