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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay