Artica Wiki

Proxy For PFSense: the pfSense wizard

Describe your pfSense and create the gateways, aliases and rules that send web traffic to Artica Proxy.

Back to Proxy For PFSense

The pfSense wizard tab lists every object to create on pfSense so that it sends web traffic to the proxy.
Values come from the proxy itself: its real address, the name of its card, and the settings you give.
Artica sends nothing to pfSense.
Open the pfSense web interface next to the Artica console and type each value in order.

Open Your proxy > PFsense, then the pfSense wizard tab.
The feature must be installed first.

The top of the pfSense wizard

The header gives the number of steps and a progress bar.
Tick Mark as done under each step as you go.
The ticks are only remembered in your browser.
Copy the text copies the whole procedure, for a change request or a colleague.

Describe your pfSense

The Your pfSense setup card shows the values the wizard uses.
They only change the steps it displays.
Click Edit settings to change them.

The pfSense settings

Setting Default What it does
Client interface LAN The pfSense interface where your users are connected, as pfSense names it.
Proxy interface OPT1 The pfSense interface that reaches the Artica proxies.
Each proxy must be directly reachable on it.
Client networks empty IPv4 networks to send to the proxies, in CIDR form.
Empty means the whole client interface network (LAN net).
Object name prefix ARTICA Prefix of the gateways and aliases created on pfSense.
It starts with a letter and holds up to 16 letters, digits or underscores.
Distribution between proxies Load balancing With several proxies, load balancing spreads clients over every proxy.
Failover sends everything to the first proxy and uses the next ones only when it is down.
Block QUIC On Adds a rule that blocks HTTP/3 (UDP port 443).
Browsers fall back to HTTPS over TCP, which the proxy can see.
Destinations that bypass the proxy empty IPv4 addresses, networks or host names reached directly, without the proxy.
Clients that bypass the proxy empty IPv4 addresses or networks of clients that always go out directly.

Separate the entries of a list with spaces.
When the appliance is managed by an Artica Meta pfSense policy, the card shows a lock and the settings come from the policy.

Before you start

An amber box lists what you should know before touching pfSense:

The steps

Each step gives the pfSense menu to open, the values to type, and a note.
Every value has a copy button.

The first wizard steps

Create one gateway per proxy

Menu System > Routing > Gateways.
Create one gateway for each proxy, on the proxy interface, with the address of the proxy as gateway and as monitor IP.
Gateways are named ARTICA_1, ARTICA_2 and so on.
pfSense pings each one to know whether it is up.

Group the proxy gateways (farm only)

Menu System > Routing > Gateway Groups.
With two proxies or more, create the group ARTICA_FARM with every proxy gateway and the trigger level Member down.
In load balancing every gateway is on tier 1.
In failover the tiers follow the order of the proxies, so the next proxies are backups.
A gateway that goes down leaves the group until it answers again.

Create the aliases

Menu Firewall > Aliases > Ports, and Firewall > Aliases > IP when you set client networks or bypass lists.
The port alias ARTICA_WEB_PORTS holds 80 443.
IP aliases (ARTICA_CLIENTS, ARTICA_BYPASS_DST, ARTICA_BYPASS_SRC) are only listed when the matching setting is filled.
Change an address in an alias and every rule follows.

Add the rules on the client interface

Menu Firewall > Rules > LAN (your client interface).
Create the rules in the order shown, above any rule that already allows the clients:

  1. Pass rules for the clients and destinations that bypass the proxy, with the default gateway, when you set them.
  2. The rule that blocks QUIC: Block, UDP, source LAN net, destination any, port 443.
  3. The rule that sends web traffic to the proxies: Pass, TCP, source LAN net, destination any, port ARTICA_WEB_PORTS, gateway ARTICA_1 (or ARTICA_FARM for a farm).

The bypass and QUIC rules must stay above the rule that sends web traffic to the proxies.

Add the rules on the proxy interface

Menu Firewall > Rules > OPT1 (your proxy interface).
One rule per proxy lets it reach the Internet through the default gateway of pfSense, for example Pass, IPv4, source 192.168.1.248 (ARTICA_1), destination any.
Place these rules above any rule that blocks the traffic of the proxies.

Enable sticky connections (farm only)

Menu System > Advanced > Miscellaneous, option Use sticky connections.
It keeps each client on the same proxy.
Without it, sessions and authentication can break when the connections of a client are spread over several proxies.

Check the configuration

The check step

Steps as text

Show the steps as text at the bottom of the tab gives the same procedure in plain text, ready to paste into a ticket.

The steps as text

The same text is available from the command line with articarest -pfsense-rules.

Several proxies with Artica Meta

On a single appliance, the wizard only knows this proxy.
To put a farm of proxies behind one pfSense, create an Artica Meta pfSense policy and attach the proxies to it.
Meta lists the ready proxies as members, ordered by the rank you give on the Targets tab.
The wizard then shows the gateway group and the sticky connections step, on each node and in the Meta console.