pfSense Set Up

HA Proxy

  • TODO

 

Resetting Web UI Admin Password

  • the main docs state to reboot and enter single-user state; if you are the only administrator, then it is pretty much guaranteed there will not be others simultaneously, so take a shortcut:
    • from the shell on the console:
      • run pfctl -d to disable firewall
      • run /etc/rc.initial.password to reset to the default password
      • login with admin/pfsense on the web UI and change the password
      • run pfctl -e to enable the firewall again

 

Set Up

  • because nvi sucks, install vim
    • install vim with sudo:
      • sudo pkg install vim
    • create a ~/.vimrc with the following:
set nocompatible
set backspace=indent,eol,start
" Command Mode (Normal)
map ^[[1~ ^
map ^[[4~ $

" Insert and Replace Modes
imap ^[[1~ ^
imap ^[[4~ $
    • ensure the ^[ is actually encoded as an ESC (escape) sequence – if it is two characters, delete it, and in INSERT mode, type CTRL-V then ESC
    • “overwrite” vi to launch vim:
      • echo alias vi vim>>~/.tcshrc