Enterprise-Grade pfSense Firewall and Router Setup

When a corporate network grows, a standard router is no longer enough: issues with security, segmentation, and speed arise. We configure pfSense as a full-fledged corporate firewall and router, taking on the entire cycle from audit to implementation and support. Our team delivers the project turnkey, ensuring reliable VLAN routing, protection with IDS/IPS, and stable VPN gateway operation.

Our competencies:

Frequently Asked Questions

Latest works

  • Development of a web application for FEEDME
    Development of a web application for FEEDME
    1365
  • Development of an online store for the company FURNORO
    Development of an online store for the company FURNORO
    1330
  • B2B Advance company logo design
    B2B Advance company logo design
    776
  • Development of a web application for Enviok
    Development of a web application for Enviok
    1077
  • AIDER company logo development
    AIDER company logo development
    1022
  • CRM development for Chasseurs
    CRM development for Chasseurs
    1113

Enterprise pfSense Firewall and Router Setup

Your corporate network needs a reliable, cost-effective firewall and router that doesn't compromise on security. pfSense, built on FreeBSD, delivers stateful firewall, NAT, VPN concentrator, VLAN routing, and IDS/IPS via Suricata. However, configuring it for high availability and security requires deep expertise. We integrate and tune pfSense to your infrastructure, replacing commercial solutions while maintaining full functionality.

We begin every installation with a network audit: identifying bottlenecks, security blind spots, and single points of failure. Then we design the VLAN scheme, IP addressing, NAT rules, and firewall policies. We deploy pfSense on dedicated hardware (Netgate appliances) or in virtualized environments (ESXi, KVM, Hyper-V).

Basic Architecture and Interfaces

A minimal setup has two interfaces: WAN and LAN. Real installations are more complex: multiple VLANs on one physical interface using IEEE 802.1Q tagging, OPT interfaces for DMZ, and a separate management interface.

VLAN configuration via XML (or through GUI: Interfaces → Assignments → VLANs):

<vlans>
  <vlan>
    <if>em1</if>
    <tag>10</tag>
    <descr>LAN-Users</descr>
  </vlan>
  <vlan>
    <if>em1</if>
    <tag>20</tag>
    <descr>DMZ-Web</descr>
  </vlan>
  <vlan>
    <if>em1</if>
    <tag>30</tag>
    <descr>MGMT</descr>
  </vlan>
</vlans>

On the physical switch, the port toward pfSense is configured as a trunk with allowed VLANs 10, 20, 30.

How pfSense Processes Firewall Rules

pfSense processes rules top-down, stopping on the first match (first-match). The default rule is deny all. This is the reverse of iptables' default ACCEPT. Importantly, rules are applied on the outgoing interface from the traffic's perspective. A common mistake is confusing direction: a rule on the LAN interface applies to traffic LEAVING the LAN, not coming into it.

Typical rule scheme for a DMZ:

# DMZ interface (VLAN 20):
# 1. Allow DMZ → Internet (HTTP/HTTPS for apt updates)
# 2. Allow DMZ → LAN-DB (TCP 5432 — only to DB servers)
# 3. Block DMZ → LAN (all other traffic to LAN)
# 4. Allow any → DMZ:443 (incoming HTTPS via port forward)

Export rules to XML for backup and versioning:

# Via pfSense API (fauxapi or official REST API in pfSense Plus)
curl -k -X GET "https://192.168.1.1/api/v1/firewall/rule" \
  -H "Authorization: Bearer $TOKEN" > firewall-rules-backup.json

NAT: Port Forward and Outbound NAT

Port forwarding is a standard scenario for publishing internal services:

Purpose Source Destination
HTTPS any DMZ:192.168.20.10:443
HTTP any DMZ:192.168.20.10:80 (redirect)
SSH trusted IPs MGMT:192.168.30.5:22

Restricting source IP in a port forward rule is possible at the NAT level without a separate firewall rule. Outbound NAT in Hybrid mode offers flexibility: automatic masquerade for most subnets and fixed IPs for exceptions.

IDS/IPS with Suricata: Benefits and Setup

Suricata is a powerful traffic analysis tool. In pfSense it installs as a package and can run inline (IPS) or passively (IDS). Inline mode blocks packets, IDS only logs. Performance: Suricata handles up to 10 Gbps on modern hardware.

Basic configuration via GUI:

  • Interface: WAN (incoming traffic) or LAN (east-west)
  • Ruleset: ET Open (free), Emerging Threats Pro, or Snort VRT
  • Blocking Mode: Legacy (via pf) or Inline (NFQ)

Automatic rule updates via Cron every 12 hours for ET Open.

Why Choose an HA Cluster with CARP?

For production environments where downtime is unacceptable, we set up High Availability using CARP. Two pfSense nodes, a virtual IP on each interface, and state synchronization via pfsync. Requirements: dedicated sync interface (direct cable or VLAN), bandwidth at least 1 Gbps. On failure of the primary node, the secondary takes over without session loss—we guarantee sub-second failover.

Comparison with Commercial Firewalls

pfSense is 50-70% cheaper than solutions from Cisco, Fortinet, or Juniper with comparable functionality. No license fees, free updates. The only limitation is the lack of round-the-clock vendor support, but we cover this with our own SLA (8/5 and 24/7 plans available).

What's Included in Turnkey pfSense Setup

  1. Network audit: topology, security, performance analysis.
  2. Design: VLAN scheme, IP policy, NAT, firewall, VPN rules.
  3. Deploy pfSense (physical or virtual).
  4. Configure firewall rules, NAT, VPN (IPsec/OpenVPN/WireGuard).
  5. Install and configure Suricata (IDS/IPS).
  6. Set up HA cluster (optional).
  7. Testing and performance optimization.
  8. Document configuration, hand over GUI access.
  9. Train your team in basic administration.
  10. 30 days of support included, extended SLA available.

Estimated Timelines

Scope Duration
Basic install + WAN/LAN + NAT 1 day
VLAN + DMZ + firewall rules 2–3 days
IPsec/OpenVPN + IDS/IPS 3–4 days
HA cluster CARP + full config 5–7 days

The cost is determined individually after an audit—contact us for an estimate. Our certified engineers have 10+ years of experience in network architecture. Get a consultation on your project today.