pfSense install offline package

Since the server of pfSense's software warehouse is located abroad, domestic users often encounter situations where they cannot install it. This article takes the installation of the haproxy plugin as an example to introduce the method of installing offline software packages on pfSense.

Query the package name and dependent packages

Navigate to System>Plugin Management>Available Plugins , find the line where the haproxy plugin is located, find the package name and dependent packages. You can see that the package of the plug-in dependency is haproxy18-1.8.25, click 0.60_6, and you can find the name of the package is pfSense-pkg-haproxy on the github.com page you go to, corresponding to the software version, the full name of the package It is pfSense-pkg-haproxy-0.60_6.txz.

Download software packages and dependencies

Download the corresponding version of the offline software package in the pfSense package repository . Some common dependency packages can be found in the FreeBSD software repository . The packages we want to download include:

  1. haproxy18-1.8.25.txz
  2. pfSense-pkg-haproxy-0.60_6.txz
  3. lua53-5.3.5_3.txz (in the later installation process, it is prompted to have this dependency package)

Upload package

Navigate to system diagnostics>SHELL command , upload the three downloaded software packages to the tmp directory of pfSense

Execute the installer

Use Xshell and other software to enter the shell environment of pfSense and enter the directory where the uploaded file is located:

cd /tmp

Install the dependent packages first, and then install the pfSense packages, and execute the following commands in sequence:

pkg install lua53-5.3.5_3.txz 
pkg install haproxy18-1.8.25.txz 
pkg install pfSense-pkg-haproxy-0.60_6.txz

When you encounter the following prompt, always click "y"

Proceed with this action? [y/N]:

After the last command is executed, it looks like this:

[2.4.5-RELEASE][[email protected]]/tmp: pkg install pfSense-pkg-haproxy-0.60_6.txz
Updating pfSense-core repository catalogue...
pfSense-core repository is up to date.
Updating pfSense repository catalogue...
pfSense repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
pfSense-pkg-haproxy: 0.60_6 [unknown-repository]

Number of packages to be installed: 1

Proceed with this action? [y/N]: y
[1/1] Installing pfSense-pkg-haproxy-0.60_6...
Extracting pfSense-pkg-haproxy-0.60_6: 100%
Saving updated package information...
done.
Loading package configuration... done.
Configuring package components...
Loading package instructions...
Custom commands...
Executing custom_php_install_command()...done.
Menu items... done.
Services... done.
Writing configuration... done.

At this point, the offline software package is installed.

Run the package

Navigate to System Services>Haproxy , and you can make various settings.

Remove package

The software package installed in this way cannot be queried at System> Plug-in Management> Installed Plug-ins , and cannot be uninstalled. You can manually delete it using the following command in the shell:

pkg remove pfSense-pkg-haproxy

After the command is executed, it looks like this:

[2.4.5-RELEASE][[email protected]]/tmp: pkg remove pfSense-pkg-haproxy
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
pfSense-pkg-haproxy: 0.60_6

Number of packages to be removed: 1

Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling pfSense-pkg-haproxy-0.60_6...
Removing haproxy components...
Menu items... done.
Services... done.
Loading package instructions...
Deinstall commands... done.
Syslog entries... done.
[1/1] Deleting files for pfSense-pkg-haproxy-0.60_6: 100%
Removing haproxy components...
Syslog entries... done.
Configuration... done.


Guess you like

Origin blog.51cto.com/fxn2025/2552090