DEV Community

RAHUL DHOLE
RAHUL DHOLE

Posted on

pfSense basic firewall setup

pfSense Firewall

Important Firewall rules are applied in top-to-bottom order

Create Alias

Add an alias to list all the private IP addresses as per RFC1918
pfsense > firewall > Alias > IP > Add > Network

# RFC1918
10.0.0.0/8 
172.16.0.0/12
192.168.0.0/16
Enter fullscreen mode Exit fullscreen mode

Create Rule

pfsense > firewall > Rules > Add

# Rule1 [All VLANs]
# to access internet and block all LAN addresses
Action: Pass
Protocol: Any
Source: Any
Destination: Ignore Alias RFC1918
Save!
Enter fullscreen mode Exit fullscreen mode
# Rule2 [ExperimentalLAN]
# to access ExperimentalLAN from any LAN
Action: Pass
Protocol: Any
Source: Any
Destination: ExperimentalLAN
Save!
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay