Add Packages HOWTO Add Packages from a shell

From PFSenseDocs

Jump to: navigation, search

In this example I will show you how to download and install a package directly from the command line in pfSense.

pfSense is capable of allowing the user to add packages from the ports section on freebsd.org. Here is the link ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/ paste this into your browser and search for useful packages.

These packages are not supported by the pfSense development team. They may break your firewall, be careful.

You need to ssh into a shell I use putty from windoze and ssh from Linux to access the shell

  1. ssh pfsense_firewall

My pfSense version is 1.2. you will be presented a list of options. Select 8 for a shell.

If you attempt to use pkg_add command your download will not start. With a little editing you can download. I selected the folder Latest from ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/. I found a great package I want called iftop. I type pkg_add at the prompt

  1. pkg_add -r

And the prompt I paste the url to the package I want

ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/iftop.tbz

I end up with

  1. pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/Latest/iftop.tbz

Hit enter and the download will commence.

iftop will be located in the /usr/local/bin/

copy iftop to the /sbin directory and away you go.

iftop -i (interface)

This package will show which urls are being accessed through the firewall.

Personal tools