Would you like to learn how to perform the OPNsense Outbound Proxy Configuration? In this tutorial, we are going to configure our OPNsense server behind a proxy to access the internet and download the opnsense packages and plugins.

• OPNsense 19.7

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

OPNsense - Outbound Proxy Configuration

On the OPNSense console menu, select the option number 8 to start a shell session.

opnsense console menu

Use the following commands to set the proxy configuration.

Copy to Clipboard

In our example, we set the proxy server 192.168.10.10 using the 3128 port.

In our example, we authenticate the proxy access using the username bruno and the password kamisama123.

Use the following commands to test the HTTP proxy configuration.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Use the following commands to test the HTTPS proxy configuration.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Edit the pkg.conf.

Copy to Clipboard

Add the following lines at the end of the file.

Copy to Clipboard

Reboot the OPNsense firewall.

Copy to Clipboard

Use the following commands to set the proxy configuration.

Copy to Clipboard

Verify your PKG proxy configuration.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Use the following command to download the package list

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Congratulations! You configured the OPNsense server to work behing a proxy server.