SlideShare a Scribd company logo
1 of 17
Download to read offline
Creating a DMZ
January 2016 Hangout
Jim Pingle
Creating a DMZ
● Project News
● What is a DMZ?
● DMZ Diagram
● Designing the DMZ
● Protecting Servers
● Preparing for the DMZ
● Creating the DMZ
Interface
● Services for the DMZ
● Firewall Aliases
● NAT Considerations
● Firewall Rules for the
DMZ
● Firewall Rules for LANs
● VPN Concerns
● Q&A
Project News
● 2.2.6 is out
● 2.3 is now BETA!
– Release timeline will roughly parallel FreeBSD
10.3-RELEASE
– Snapshots at https://snapshots.pfsense.org/
– Most popular packages have been
converted/updated for Bootstrap
– Less than 50 open new bugs to go
● Keep an eye on the blog
What is a DMZ?
● Co-opted military term meaning Demilitarized Zone
● Used to house public services, away from sensitive internal systems
● It is considered LESS secure than LANs or internal networks
● It is considered MORE secure than the Internet at-large
● DMZ is protected from the LAN(s), LAN(s) protected from DMZ
● Must be on a separate layer 2, not just a separate subnet
● If a server is compromised in a properly isolated DMZ, the LAN is not at significant
risk
● Examples of items in the DMZ: Web, E-Mail, PBX, Proxy, etc
● Can utilize separate firewalls, but more often is an additional interface
● SOHO gear uses the term “DMZ” incorrectly, typically they mean 1:1 NAT on the
WAN IP address to an internal host, that is not an actual DMZ in the correct sense
and it is not secure
DMZ Diagram
Internet DMZ
WAN
pfSense
Servers
LAN
Clients
Designing the DMZ
●
Public IP addresses or private IP addresses?
– Neither is inherently more secure, both can be made insecure by rules
– Public:
●
Less overhead and headaches!
●
Easier routing and DNS
●
No need for port forwards, 1:1 NAT, or NAT reflection
●
No need for outbound NAT for the subnet
●
Firewall rules only
●
Requires a routed subnet from ISP, different from the WAN subnet
●
Some services such as a PBX do better without NAT involved
– Private:
●
Will still need outbound NAT
●
Will need port forwards, 1:1 NAT, or other means of forwarding in traffic (e.g. proxy or load balancer)
●
More complicated when allowing traffic between LAN and DMZ (NAT reflection or split DNS)
●
Will need to pick a private non-overlapping subnet, preferably one that summarizes w/LAN
●
Can work using VIPs in the WAN subnet, or depending on the services, just the WAN IP address
●
Separate VLAN or switch?
– Separate physical switches are more secure
– VLAN on the switches, vmware vswitch, etc
●
How many separate DMZ interfaces will there be?
Protecting Servers
● The firewall can only protect traffic between networks
● Servers also need protection from other servers
● A few tactics are possible:
– Host-based firewalls on the servers themselves
– Multiple DMZ interfaces (web, client proxy, mail, VoIP, etc)
● DB servers should be in an even more secure style DMZ and
monitored, or isolated behind another system
– Service config, limit # of listening daemons
– Switch port isolation
● Only viable if the servers do not need to reach each other
Preparing for the DMZ
● Create isolated L2 (switch or VLAN)
● Prepare the physical NIC or interface for use by pfSense
– Install a NIC if possible or necessary
– Add VLAN tag if VLANs are required
● Do not multi-home servers in DMZ and LAN!
– Servers should not have NICs in both networks
– Weakens security
– Defeats the point of the DMZ, if the server is compromised it
has access to both networks
– Creates asymmetric routing problems
Creating the DMZ Interface
● In pfSense...
● Interfaces > (assign)
● Choose the interface
● Click + to add it as an OPT interface
● It will show in the list, note its name
● Interfaces > OPTx
● Check Enable
● Give it a name (e.g. DMZ or DMZ_Web)
● Select and configure IPv4 and IPv6 addresses chosen earlier
● Save, Apply
Services for the DMZ
● Optionally enable DHCP Server
– Servers are usually static, but you could use static
mappings or use DHCP for temporary access while
bringing up new systems
– Services > DHCP Server, DMZ tab
– Enable, set a range, save, etc.
● If other local services had strict bindings (e.g.
DNS Resolver, NTP), adjust accordingly
Aliases to Make Things Easier
● Firewall > Aliases
● Make aliases for servers and groups of ports for
services
– Example: web_servers alias with IP addresses of servers
– Example: web_ports alias with 80 and 443
– Similar for mail, db, whatever is needed and requires
public exposure.
● Make an RFC1918 alias with private networks
(10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)
NAT Considerations
● Private IP Addresses on DMZ:
– Add port forwards or 1:1 NAT as needed to direct traffic inbound
– Port forwards get rules automatically
– 1:1 NAT needs manual firewall rules, use the private IP address as target
– If LAN clients must contact servers by NAME, consider split DNS (local DNS
resolves to local IP address of the server)
– If split DNS is not possible and LAN must reach the DMZ, enable NAT reflection
(System > Advanced, Networking tab)
● Public IP Addresses on DMZ:
– Switch to Hybrid Outbound NAT and add a rule to “not” NAT the public subnet
source
– OR –
– Switch to Manual Outbound NAT and remove rules referencing the subnet
Firewall Rules for the DMZ
● Rules on WAN to allow access to public services inbound
● DMZ hosts should NOT have access to the LAN unless
absolutely necessary
– If unavoidable, it should be heavily restricted
● It is usually OK to allow access from the DMZ to the
Internet, but it could also be restricted
– Example: To allow OS/software updates, remote queries, active
FTP from remote clients, etc
● Utilize the RFC1918 alias to prevent the servers from
reaching local private networks and VPN networks
Firewall Rules for LANs
● The LAN should not have unrestricted access to the DMZ either, but
it is not as important as restrictions in the other direction
– Ideally, only allow access to the same IP addresses and ports accessible
from the WAN, though managing rules for that case can be complex
– Consider rougue or compromised clients on the LAN and what they could do
to servers in the DMZ (e.g. virus infected clients)
● Unsecure LANs, such as guest networks, should be more strictly
isolated from the DMZ
● With Multi-WAN, add rules to pass traffic to DMZ without a gateway
set
● Don't rely on policy routing to isolate, it can be OK at times but not a
perfect means of security.
VPN Concerns
● Consider what systems must communicate across the VPN
● If the servers must reach remote VPN systems, be strict
with rules passing the traffic out that direction
– Could be DR replication, backups, etc
● If remote VPN systems must reach servers in the DMZ, use
rules on the VPN interface tab(s) appropriate for the role of
the VPN
– Example: A remote access admin VPN for ops employees should
have more access than a site-to-site VPN with untrusted clients
Expand from here...
● Add more servers, ports, additional DMZs,
additional LANs, and so on
● Keep the rule styles similar, isolating each
segment from all the others
● Interface groups can help with rules, but be
careful of rule ordering when using them.
● Consider monitoring DMZ traffic with an IDS
(Suricata, Snort, etc)
Conclusion
● Questions?
● Ideas for hangout topics? Post on forum,
comment on the blog posts, Reddit, etc

More Related Content

What's hot

Linux Networking Explained
Linux Networking ExplainedLinux Networking Explained
Linux Networking ExplainedThomas Graf
 
pfSense presentation
pfSense presentationpfSense presentation
pfSense presentationSimon Vass
 
LinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking WalkthroughLinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking WalkthroughThomas Graf
 
Configuring Netgate Appliance Integrated Switches on pfSense 2.4.4 - pfSense ...
Configuring Netgate Appliance Integrated Switches on pfSense 2.4.4 - pfSense ...Configuring Netgate Appliance Integrated Switches on pfSense 2.4.4 - pfSense ...
Configuring Netgate Appliance Integrated Switches on pfSense 2.4.4 - pfSense ...Netgate
 
Introduction to SSH
Introduction to SSHIntroduction to SSH
Introduction to SSHHemant Shah
 
High Availability Content Caching with NGINX
High Availability Content Caching with NGINXHigh Availability Content Caching with NGINX
High Availability Content Caching with NGINXNGINX, Inc.
 
FastNetMon Advanced DDoS detection tool
FastNetMon Advanced DDoS detection toolFastNetMon Advanced DDoS detection tool
FastNetMon Advanced DDoS detection toolPavel Odintsov
 
Firewall and NAT Fundamentals - pfSense Hangout January 2014
Firewall and NAT Fundamentals - pfSense Hangout January 2014Firewall and NAT Fundamentals - pfSense Hangout January 2014
Firewall and NAT Fundamentals - pfSense Hangout January 2014Netgate
 
Fun with Network Interfaces
Fun with Network InterfacesFun with Network Interfaces
Fun with Network InterfacesKernel TLV
 
66 pfsense tutorial
66 pfsense tutorial66 pfsense tutorial
66 pfsense tutorialequinonesr
 
Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017Netgate
 
Networking in linux
Networking in linuxNetworking in linux
Networking in linuxVarnnit Jain
 
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018Netgate
 
OpenVPN as a WAN - pfSense Hangout October 2016
OpenVPN as a WAN - pfSense Hangout October 2016OpenVPN as a WAN - pfSense Hangout October 2016
OpenVPN as a WAN - pfSense Hangout October 2016Netgate
 
VLAN Trunking Protocol
VLAN Trunking ProtocolVLAN Trunking Protocol
VLAN Trunking ProtocolNetwax Lab
 
OpenStack Networking
OpenStack NetworkingOpenStack Networking
OpenStack NetworkingIlya Shakhat
 

What's hot (20)

Linux Networking Explained
Linux Networking ExplainedLinux Networking Explained
Linux Networking Explained
 
pfSense presentation
pfSense presentationpfSense presentation
pfSense presentation
 
LinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking WalkthroughLinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking Walkthrough
 
Configuring Netgate Appliance Integrated Switches on pfSense 2.4.4 - pfSense ...
Configuring Netgate Appliance Integrated Switches on pfSense 2.4.4 - pfSense ...Configuring Netgate Appliance Integrated Switches on pfSense 2.4.4 - pfSense ...
Configuring Netgate Appliance Integrated Switches on pfSense 2.4.4 - pfSense ...
 
Secured Internet Gateway for ISP with pfsense & FRR
Secured Internet Gateway for ISP with pfsense & FRRSecured Internet Gateway for ISP with pfsense & FRR
Secured Internet Gateway for ISP with pfsense & FRR
 
Nginx
NginxNginx
Nginx
 
Introduction to SSH
Introduction to SSHIntroduction to SSH
Introduction to SSH
 
High Availability Content Caching with NGINX
High Availability Content Caching with NGINXHigh Availability Content Caching with NGINX
High Availability Content Caching with NGINX
 
Linux Network Stack
Linux Network StackLinux Network Stack
Linux Network Stack
 
FastNetMon Advanced DDoS detection tool
FastNetMon Advanced DDoS detection toolFastNetMon Advanced DDoS detection tool
FastNetMon Advanced DDoS detection tool
 
Firewall and NAT Fundamentals - pfSense Hangout January 2014
Firewall and NAT Fundamentals - pfSense Hangout January 2014Firewall and NAT Fundamentals - pfSense Hangout January 2014
Firewall and NAT Fundamentals - pfSense Hangout January 2014
 
Fun with Network Interfaces
Fun with Network InterfacesFun with Network Interfaces
Fun with Network Interfaces
 
66 pfsense tutorial
66 pfsense tutorial66 pfsense tutorial
66 pfsense tutorial
 
Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017
 
Networking in linux
Networking in linuxNetworking in linux
Networking in linux
 
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018
Monitoring pfSense 2.4 with SNMP - pfSense Hangout March 2018
 
Windows 2019
Windows 2019Windows 2019
Windows 2019
 
OpenVPN as a WAN - pfSense Hangout October 2016
OpenVPN as a WAN - pfSense Hangout October 2016OpenVPN as a WAN - pfSense Hangout October 2016
OpenVPN as a WAN - pfSense Hangout October 2016
 
VLAN Trunking Protocol
VLAN Trunking ProtocolVLAN Trunking Protocol
VLAN Trunking Protocol
 
OpenStack Networking
OpenStack NetworkingOpenStack Networking
OpenStack Networking
 

Similar to Creating a DMZ - pfSense Hangout January 2016

NAT on pfSense 2.3 - pfSense Hangout May 2016
NAT on pfSense 2.3 - pfSense Hangout May 2016NAT on pfSense 2.3 - pfSense Hangout May 2016
NAT on pfSense 2.3 - pfSense Hangout May 2016Netgate
 
Site-to-Site VPNs - pfSense Hangout November 2015
Site-to-Site VPNs - pfSense Hangout November 2015Site-to-Site VPNs - pfSense Hangout November 2015
Site-to-Site VPNs - pfSense Hangout November 2015Netgate
 
There and back again
There and back againThere and back again
There and back againJon Spriggs
 
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016Netgate
 
Connectivity Troubleshooting - pfSense Hangout June 2016
Connectivity Troubleshooting - pfSense Hangout June 2016Connectivity Troubleshooting - pfSense Hangout June 2016
Connectivity Troubleshooting - pfSense Hangout June 2016Netgate
 
Going Cloud, Going Mobile: Will Your Network Drag You Down?
Going Cloud, Going Mobile: Will Your Network Drag You Down?Going Cloud, Going Mobile: Will Your Network Drag You Down?
Going Cloud, Going Mobile: Will Your Network Drag You Down?Wes Morgan
 
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017Netgate
 
Advanced OpenVPN Concepts - pfSense Hangout September 2014
Advanced OpenVPN Concepts - pfSense Hangout September 2014Advanced OpenVPN Concepts - pfSense Hangout September 2014
Advanced OpenVPN Concepts - pfSense Hangout September 2014Netgate
 
IETF 106 - Default IPv6 Local Only Addressing for Non-Internet Devices
IETF 106 - Default IPv6 Local Only Addressing for Non-Internet DevicesIETF 106 - Default IPv6 Local Only Addressing for Non-Internet Devices
IETF 106 - Default IPv6 Local Only Addressing for Non-Internet DevicesMark Smith
 
DHCP Server - pfSense Hangout September 2016
DHCP Server - pfSense Hangout September 2016DHCP Server - pfSense Hangout September 2016
DHCP Server - pfSense Hangout September 2016Netgate
 
Routed IPsec on pfSense 2.4.4 - pfSense Hangout June 2018
Routed IPsec on pfSense 2.4.4 - pfSense Hangout June 2018Routed IPsec on pfSense 2.4.4 - pfSense Hangout June 2018
Routed IPsec on pfSense 2.4.4 - pfSense Hangout June 2018Netgate
 
Guide to home networking
Guide to home networkingGuide to home networking
Guide to home networkingDilan Gilluly
 
Wireless security beyond password cracking by Mohit Ranjan
Wireless security beyond password cracking by Mohit RanjanWireless security beyond password cracking by Mohit Ranjan
Wireless security beyond password cracking by Mohit RanjanOWASP Delhi
 
High Availability Part 2 - pfSense Hangout July 2016
High Availability Part 2 - pfSense Hangout July 2016High Availability Part 2 - pfSense Hangout July 2016
High Availability Part 2 - pfSense Hangout July 2016Netgate
 
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017Netgate
 
Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016
Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016
Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016Netgate
 
High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017Netgate
 
Air Live Rs 1200
Air Live Rs 1200Air Live Rs 1200
Air Live Rs 1200guest52b3f5
 

Similar to Creating a DMZ - pfSense Hangout January 2016 (20)

NAT on pfSense 2.3 - pfSense Hangout May 2016
NAT on pfSense 2.3 - pfSense Hangout May 2016NAT on pfSense 2.3 - pfSense Hangout May 2016
NAT on pfSense 2.3 - pfSense Hangout May 2016
 
Site-to-Site VPNs - pfSense Hangout November 2015
Site-to-Site VPNs - pfSense Hangout November 2015Site-to-Site VPNs - pfSense Hangout November 2015
Site-to-Site VPNs - pfSense Hangout November 2015
 
There and back again
There and back againThere and back again
There and back again
 
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
 
Connectivity Troubleshooting - pfSense Hangout June 2016
Connectivity Troubleshooting - pfSense Hangout June 2016Connectivity Troubleshooting - pfSense Hangout June 2016
Connectivity Troubleshooting - pfSense Hangout June 2016
 
Going Cloud, Going Mobile: Will Your Network Drag You Down?
Going Cloud, Going Mobile: Will Your Network Drag You Down?Going Cloud, Going Mobile: Will Your Network Drag You Down?
Going Cloud, Going Mobile: Will Your Network Drag You Down?
 
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017
 
Advanced OpenVPN Concepts - pfSense Hangout September 2014
Advanced OpenVPN Concepts - pfSense Hangout September 2014Advanced OpenVPN Concepts - pfSense Hangout September 2014
Advanced OpenVPN Concepts - pfSense Hangout September 2014
 
IETF 106 - Default IPv6 Local Only Addressing for Non-Internet Devices
IETF 106 - Default IPv6 Local Only Addressing for Non-Internet DevicesIETF 106 - Default IPv6 Local Only Addressing for Non-Internet Devices
IETF 106 - Default IPv6 Local Only Addressing for Non-Internet Devices
 
DHCP Server - pfSense Hangout September 2016
DHCP Server - pfSense Hangout September 2016DHCP Server - pfSense Hangout September 2016
DHCP Server - pfSense Hangout September 2016
 
Routed IPsec on pfSense 2.4.4 - pfSense Hangout June 2018
Routed IPsec on pfSense 2.4.4 - pfSense Hangout June 2018Routed IPsec on pfSense 2.4.4 - pfSense Hangout June 2018
Routed IPsec on pfSense 2.4.4 - pfSense Hangout June 2018
 
Guide to home networking
Guide to home networkingGuide to home networking
Guide to home networking
 
Multi wanversion1.2
Multi wanversion1.2Multi wanversion1.2
Multi wanversion1.2
 
Wireless security beyond password cracking by Mohit Ranjan
Wireless security beyond password cracking by Mohit RanjanWireless security beyond password cracking by Mohit Ranjan
Wireless security beyond password cracking by Mohit Ranjan
 
High Availability Part 2 - pfSense Hangout July 2016
High Availability Part 2 - pfSense Hangout July 2016High Availability Part 2 - pfSense Hangout July 2016
High Availability Part 2 - pfSense Hangout July 2016
 
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
 
Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016
Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016
Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016
 
High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017
 
Air Live Rs 1200
Air Live Rs 1200Air Live Rs 1200
Air Live Rs 1200
 
66 pf sensetutorial
66 pf sensetutorial66 pf sensetutorial
66 pf sensetutorial
 

More from Netgate

Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...
Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...
Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...Netgate
 
pfSense 2.4.4 Short Topic Miscellany - pfSense Hangout August 2018
pfSense 2.4.4 Short Topic Miscellany - pfSense Hangout August 2018pfSense 2.4.4 Short Topic Miscellany - pfSense Hangout August 2018
pfSense 2.4.4 Short Topic Miscellany - pfSense Hangout August 2018Netgate
 
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018Netgate
 
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018Netgate
 
Dynamic Routing with FRR - pfSense Hangout December 2017
Dynamic Routing with FRR - pfSense Hangout December 2017Dynamic Routing with FRR - pfSense Hangout December 2017
Dynamic Routing with FRR - pfSense Hangout December 2017Netgate
 
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017Netgate
 
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017Netgate
 
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017Netgate
 
Console Menu - pfSense Hangout December 2016
Console Menu - pfSense Hangout December 2016Console Menu - pfSense Hangout December 2016
Console Menu - pfSense Hangout December 2016Netgate
 
Providing Local DNS with pfSense - pfSense Hangout August 2016
Providing Local DNS with pfSense - pfSense Hangout August 2016Providing Local DNS with pfSense - pfSense Hangout August 2016
Providing Local DNS with pfSense - pfSense Hangout August 2016Netgate
 
pfSense 2.3 Preview - pfSense Hangout December 2015
pfSense 2.3 Preview - pfSense Hangout December 2015pfSense 2.3 Preview - pfSense Hangout December 2015
pfSense 2.3 Preview - pfSense Hangout December 2015Netgate
 
Remote Access VPNs Part 2 - pfSense Hangout October 2015
Remote Access VPNs Part 2 - pfSense Hangout October 2015Remote Access VPNs Part 2 - pfSense Hangout October 2015
Remote Access VPNs Part 2 - pfSense Hangout October 2015Netgate
 

More from Netgate (12)

Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...
Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...
Using Google Cloud Identity Secure LDAP with pfSense - Netgate Hangout Octobe...
 
pfSense 2.4.4 Short Topic Miscellany - pfSense Hangout August 2018
pfSense 2.4.4 Short Topic Miscellany - pfSense Hangout August 2018pfSense 2.4.4 Short Topic Miscellany - pfSense Hangout August 2018
pfSense 2.4.4 Short Topic Miscellany - pfSense Hangout August 2018
 
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018
RADIUS and LDAP on pfSense 2.4 - pfSense Hangout February 2018
 
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018
User Management and Privileges on pfSense 2.4 - pfSense Hangout January 2018
 
Dynamic Routing with FRR - pfSense Hangout December 2017
Dynamic Routing with FRR - pfSense Hangout December 2017Dynamic Routing with FRR - pfSense Hangout December 2017
Dynamic Routing with FRR - pfSense Hangout December 2017
 
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
 
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
 
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
 
Console Menu - pfSense Hangout December 2016
Console Menu - pfSense Hangout December 2016Console Menu - pfSense Hangout December 2016
Console Menu - pfSense Hangout December 2016
 
Providing Local DNS with pfSense - pfSense Hangout August 2016
Providing Local DNS with pfSense - pfSense Hangout August 2016Providing Local DNS with pfSense - pfSense Hangout August 2016
Providing Local DNS with pfSense - pfSense Hangout August 2016
 
pfSense 2.3 Preview - pfSense Hangout December 2015
pfSense 2.3 Preview - pfSense Hangout December 2015pfSense 2.3 Preview - pfSense Hangout December 2015
pfSense 2.3 Preview - pfSense Hangout December 2015
 
Remote Access VPNs Part 2 - pfSense Hangout October 2015
Remote Access VPNs Part 2 - pfSense Hangout October 2015Remote Access VPNs Part 2 - pfSense Hangout October 2015
Remote Access VPNs Part 2 - pfSense Hangout October 2015
 

Recently uploaded

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 

Recently uploaded (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 

Creating a DMZ - pfSense Hangout January 2016

  • 1. Creating a DMZ January 2016 Hangout Jim Pingle
  • 2. Creating a DMZ ● Project News ● What is a DMZ? ● DMZ Diagram ● Designing the DMZ ● Protecting Servers ● Preparing for the DMZ ● Creating the DMZ Interface ● Services for the DMZ ● Firewall Aliases ● NAT Considerations ● Firewall Rules for the DMZ ● Firewall Rules for LANs ● VPN Concerns ● Q&A
  • 3. Project News ● 2.2.6 is out ● 2.3 is now BETA! – Release timeline will roughly parallel FreeBSD 10.3-RELEASE – Snapshots at https://snapshots.pfsense.org/ – Most popular packages have been converted/updated for Bootstrap – Less than 50 open new bugs to go ● Keep an eye on the blog
  • 4. What is a DMZ? ● Co-opted military term meaning Demilitarized Zone ● Used to house public services, away from sensitive internal systems ● It is considered LESS secure than LANs or internal networks ● It is considered MORE secure than the Internet at-large ● DMZ is protected from the LAN(s), LAN(s) protected from DMZ ● Must be on a separate layer 2, not just a separate subnet ● If a server is compromised in a properly isolated DMZ, the LAN is not at significant risk ● Examples of items in the DMZ: Web, E-Mail, PBX, Proxy, etc ● Can utilize separate firewalls, but more often is an additional interface ● SOHO gear uses the term “DMZ” incorrectly, typically they mean 1:1 NAT on the WAN IP address to an internal host, that is not an actual DMZ in the correct sense and it is not secure
  • 6. Designing the DMZ ● Public IP addresses or private IP addresses? – Neither is inherently more secure, both can be made insecure by rules – Public: ● Less overhead and headaches! ● Easier routing and DNS ● No need for port forwards, 1:1 NAT, or NAT reflection ● No need for outbound NAT for the subnet ● Firewall rules only ● Requires a routed subnet from ISP, different from the WAN subnet ● Some services such as a PBX do better without NAT involved – Private: ● Will still need outbound NAT ● Will need port forwards, 1:1 NAT, or other means of forwarding in traffic (e.g. proxy or load balancer) ● More complicated when allowing traffic between LAN and DMZ (NAT reflection or split DNS) ● Will need to pick a private non-overlapping subnet, preferably one that summarizes w/LAN ● Can work using VIPs in the WAN subnet, or depending on the services, just the WAN IP address ● Separate VLAN or switch? – Separate physical switches are more secure – VLAN on the switches, vmware vswitch, etc ● How many separate DMZ interfaces will there be?
  • 7. Protecting Servers ● The firewall can only protect traffic between networks ● Servers also need protection from other servers ● A few tactics are possible: – Host-based firewalls on the servers themselves – Multiple DMZ interfaces (web, client proxy, mail, VoIP, etc) ● DB servers should be in an even more secure style DMZ and monitored, or isolated behind another system – Service config, limit # of listening daemons – Switch port isolation ● Only viable if the servers do not need to reach each other
  • 8. Preparing for the DMZ ● Create isolated L2 (switch or VLAN) ● Prepare the physical NIC or interface for use by pfSense – Install a NIC if possible or necessary – Add VLAN tag if VLANs are required ● Do not multi-home servers in DMZ and LAN! – Servers should not have NICs in both networks – Weakens security – Defeats the point of the DMZ, if the server is compromised it has access to both networks – Creates asymmetric routing problems
  • 9. Creating the DMZ Interface ● In pfSense... ● Interfaces > (assign) ● Choose the interface ● Click + to add it as an OPT interface ● It will show in the list, note its name ● Interfaces > OPTx ● Check Enable ● Give it a name (e.g. DMZ or DMZ_Web) ● Select and configure IPv4 and IPv6 addresses chosen earlier ● Save, Apply
  • 10. Services for the DMZ ● Optionally enable DHCP Server – Servers are usually static, but you could use static mappings or use DHCP for temporary access while bringing up new systems – Services > DHCP Server, DMZ tab – Enable, set a range, save, etc. ● If other local services had strict bindings (e.g. DNS Resolver, NTP), adjust accordingly
  • 11. Aliases to Make Things Easier ● Firewall > Aliases ● Make aliases for servers and groups of ports for services – Example: web_servers alias with IP addresses of servers – Example: web_ports alias with 80 and 443 – Similar for mail, db, whatever is needed and requires public exposure. ● Make an RFC1918 alias with private networks (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)
  • 12. NAT Considerations ● Private IP Addresses on DMZ: – Add port forwards or 1:1 NAT as needed to direct traffic inbound – Port forwards get rules automatically – 1:1 NAT needs manual firewall rules, use the private IP address as target – If LAN clients must contact servers by NAME, consider split DNS (local DNS resolves to local IP address of the server) – If split DNS is not possible and LAN must reach the DMZ, enable NAT reflection (System > Advanced, Networking tab) ● Public IP Addresses on DMZ: – Switch to Hybrid Outbound NAT and add a rule to “not” NAT the public subnet source – OR – – Switch to Manual Outbound NAT and remove rules referencing the subnet
  • 13. Firewall Rules for the DMZ ● Rules on WAN to allow access to public services inbound ● DMZ hosts should NOT have access to the LAN unless absolutely necessary – If unavoidable, it should be heavily restricted ● It is usually OK to allow access from the DMZ to the Internet, but it could also be restricted – Example: To allow OS/software updates, remote queries, active FTP from remote clients, etc ● Utilize the RFC1918 alias to prevent the servers from reaching local private networks and VPN networks
  • 14. Firewall Rules for LANs ● The LAN should not have unrestricted access to the DMZ either, but it is not as important as restrictions in the other direction – Ideally, only allow access to the same IP addresses and ports accessible from the WAN, though managing rules for that case can be complex – Consider rougue or compromised clients on the LAN and what they could do to servers in the DMZ (e.g. virus infected clients) ● Unsecure LANs, such as guest networks, should be more strictly isolated from the DMZ ● With Multi-WAN, add rules to pass traffic to DMZ without a gateway set ● Don't rely on policy routing to isolate, it can be OK at times but not a perfect means of security.
  • 15. VPN Concerns ● Consider what systems must communicate across the VPN ● If the servers must reach remote VPN systems, be strict with rules passing the traffic out that direction – Could be DR replication, backups, etc ● If remote VPN systems must reach servers in the DMZ, use rules on the VPN interface tab(s) appropriate for the role of the VPN – Example: A remote access admin VPN for ops employees should have more access than a site-to-site VPN with untrusted clients
  • 16. Expand from here... ● Add more servers, ports, additional DMZs, additional LANs, and so on ● Keep the rule styles similar, isolating each segment from all the others ● Interface groups can help with rules, but be careful of rule ordering when using them. ● Consider monitoring DMZ traffic with an IDS (Suricata, Snort, etc)
  • 17. Conclusion ● Questions? ● Ideas for hangout topics? Post on forum, comment on the blog posts, Reddit, etc