SlideShare a Scribd company logo
OPNsense:
the “open” firewall for your
datacenter
@tk_tniedermeier
Thomas Niedermeier, Thomas-Krenn.AG
Open Source Data Center Conference, 2018/06/12
Have you already tested a Open Source firewall?
If yes, which?
OPNsense
_ History and architecture
_ FreeBSD / HardenedBSD
_ Initial configuration and secure system
_ Mobile WAN / WAN failover
_ High availability
_ Plugins
_ pfSense or OPNsense?
OPNsense started as a fork of pfSense® (Copyright © 2004-2014 Electric Sheep Fencing, LLC. All rights reserved.)
a fork from m0n0wall® (Copyright © 2002-2013 Manuel Kasper).
IPFire 2.19 pfSense®
2.4 OPNsense®
18.1
Based on Linux®
Kernel 3.14 FreeBSD®
11.1 FreeBSD®
11.1
Stateful firewall ✔ ✔ ✔
Proxy cache ✔ ✔ ✔
VPN ✔ ✔ ✔
IDS ✔ ✔ ✔
HA cluster ✔ ✔
Multi-WAN ✔ ✔
Layer 2 (transparent) ✔ ✔
Two-factor auth. ( )✔ ✔
IPFire 2.19 pfSense®
2.4 OPNsense®
18.1
Based on Linux®
Kernel 3.14 FreeBSD®
11.1 FreeBSD®
11.1
Stateful firewall ✔ ✔ ✔
Proxy cache ✔ ✔ ✔
VPN ✔ ✔ ✔
IDS ✔ ✔ ✔
HA cluster ✔ ✔
Multi-WAN ✔ ✔
Layer 2 (transparent) ✔ ✔
Two-factor auth. ( )✔ ✔
Also for mobile
LTE backup
with 4G modem
Also for VPN
roadwarrior
(eg. Google Auth.)
Comparison OPNsense and pfSense
OPNsense pfSense
License BSD Clause-2 Apache License 2.0
IPS Native via Suricata
best performance
Snort
no real inline mode
available
2FA Native integrated via TOTP mOTP available via plugin
AES-NI CPU feature
required
No, never Yes, beginning with
version 2.5 in community
edition
Source: https://techcorner.max-it.de/wiki/OPNsense_vs._pfSense_-_Im_Vergleich
OPNsense
_ History and architecture
_ FreeBSD / HardenedBSD
_ Initial configuration and secure system
_ Mobile WAN / WAN failover
_ High availability
_ Plugins
_ pfSense or OPNsense?
OpenServer
6.x
UnixWare
7.x
(System V
R5)
HP-UX
11i+
1969
1971 to 1973
1974 to 1975
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001 to 2004
2006 to 2007
2008
2005
2009
2010
2011
2012 to 2015
2016
2017
Open source
Mixed/shared source
Closed source
HP-UX
1.0 to 1.2
OpenSolaris
& derivatives
(illumos, etc.)
System III
System V
R1 to R2
OpenServer
5.0.5 to 5.0.7
OpenServer
5.0 to 5.04
SCO UNIX
3.2.4
SCO Xenix
V/386
SCO Xenix
V/386
SCO Xenix
V/286
SCO Xenix
Xenix
3.0
Xenix
1.0 to 2.3
PWB/Unix
AIX
1.0
AIX
3.0-7.2
OpenBSD
2.3-6.1
OpenBSD
1.0 to 2.2
SunOS
1.2 to 3.0
SunOS
1 to 1.1
Unix/32V
Unix
Version 1 to 4
Unix
Version 5 to 6
Unix
Version 7
Unnamed PDP-7 operating system
BSD
1.0 to 2.0
BSD
3.0 to 4.1
BSD 4.2
Unix
Version 8
Unix
9 and 10
(last versions
from
Bell Labs)
NexTSTEP/
OPENSTEP
1.0 to 4.0
Mac OS X
Server
Mac OS X,
OS X,
macOS
10.0 to 10.12
(Darwin
1.2.1 to 17)
Minix
1.x
Minix
2.x
Minix
3.1.0-3.4.0
Linux
2.x
Linux
0.95 to 1.2.x
Linux 0.0.1
BSD
4.4-Lite
&
Lite Release 2
NetBSD
0.8 to 1.0
NetBSD
1.1 to 1.2
NetBSD 1.3
NetBSD
1.3-7.1
FreeBSD
1.0 to
2.2.x
386BSD
BSD Net/2
Solaris
10
Solaris
11.0-11.3
System V
R4
Solaris
2.1 to 9
BSD 4.3
SunOS
4
HP-UX
2.0 to 3.0
HP-UX
6 to 11
System V
R3
UnixWare
1.x to 2.x
(System V
R4.2)
BSD 4.3
Tahoe
BSD 4.3
Reno
FreeBSD
3.0 to 3.2
FreeBSD
3.3-11.x
Linux
3.x
Linux
4.x OpenServer
10.x
1969
1971 to 1973
1974 to 1975
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001 to 2004
2006 to 2007
2008
2005
2009
2010
2011
2012 to 2015
2016
2017
DragonFly
BSD
1.0 to 4.8
BSD Net/1
Unix-like systems
OpenServer
6.x
UnixWare
7.x
(System V
R5)
HP-UX
11i+
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001 to 2004
2006 to 2007
2008
2005
2009
2010
2011
2012 to 2015
2016
2017
OpenSolaris
& derivatives
(illumos, etc.)
OpenServer
5.0.5 to 5.0.7
OpenServer
5.0 to 5.04
SCO UNIX
3.2.4
V/386
AIX
3.0-7.2
OpenBSD
2.3-6.1
OpenBSD
1.0 to 2.2
NexTSTEP/
OPENSTEP
1.0 to 4.0
Mac OS X
Server
Mac OS X,
OS X,
macOS
10.0 to 10.12
(Darwin
1.2.1 to 17)
Minix
1.x
Minix
2.x
Minix
3.1.0-3.4.0
Linux
2.x
Linux
0.95 to 1.2.x
Linux 0.0.1
BSD
4.4-Lite
&
Lite Release 2
NetBSD
0.8 to 1.0
NetBSD
1.1 to 1.2
NetBSD 1.3
NetBSD
1.3-7.1
FreeBSD
1.0 to
2.2.x
386BSD
BSD Net/2
Solaris
10
Solaris
11.0-11.3
Solaris
2.1 to 9
SunOS
4
HP-UX
6 to 11
UnixWare
1.x to 2.x
(System V
R4.2)
BSD 4.3
Reno
FreeBSD
3.0 to 3.2
FreeBSD
3.3-11.x
Linux
3.x
Linux
4.x OpenServer
10.x
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001 to 2004
2006 to 2007
2008
2005
2009
2010
2011
2012 to 2015
2016
2017
DragonFly
BSD
1.0 to 4.8
BSD Net/1
m0n0wall
pfSense
OPNsense
FreeBSD
_ Originally a fork from 386BSD
_ Originated in 1993
_ Since version 2.0 a fork from BSD 4.4-Lite
_ Free software, open source
_ Under BSD license (Berkeley Software Distribution)
FreeBSD
_ Relies on two development branches
_ CURRENT
_ „bleeding edge“ code
_ For developers and testers
_ Code probably contains lots of bugs
_ STABLE
_ Major-releases are built from this branch
_ After successful tests in the CURRENT branch
_ But also a development branch
_ Not suitable for general use
FreeBSD
_ Supported (current) versions
_ 10.4 (Legacy Release) → EOL: 31.10.2018
_ 11.1 (Production Release) → EOL: 11.2-RELEASE + 3 months (about August 2018)
_ Future versions
_ 11.2
_ Release in the end of June 2018 planned
_ 12.0
_ Release in November 2018 planned
FreeBSD
_ New support model
_ New since FreeBSD 11.0
_ Major versions now supported 5 years
_ Minor versions supported 3 months onlymore (if next minor version is released)
_ Released in February 2015
_ Previous support model (up to FreeBSD 10.*)
_ Normal
_ At least 12 months maintenance
_ Extended
_ At least 24 months maintenance
_ Every second and the last release of a STABLE version
Link: https://www.freebsd.org/de/security/security.html#model
HardenedBSD
_ Focus on higher security with layers
_ Fork from FreeBSD
_ Since 2014
_ Function ASLR implemented with project start
_ Address Space Layout Randomization
_ Goal: Mitigation of exploits
Link: https://hardenedbsd.org/content/freebsd-and-hardenedbsd-feature-comparisons
ASLR
_ Address Space Layout Randomization (ASLR)
_ Address space randomly allocated for programs, no longer predictable
_ Increases protection against buffer overflows
SEGVGUARD
_ Blind Return Oriented Programming (BROP)
_ ASLR can be leveraged under certain circumstances
_ BROP can generate ROP malicious code
_ Needs several attempts
_ Application crashes if BROP is not successful and then restarts
_ SEGVGUARD
_ Fixes the above mentioned brute force method of BROP
_ Prevents the restart of the attacked application
_ Inspired by the Linux PaX patch
Link: https://hardenedbsd.org/content/projects
OPNsense
_ History and architecture
_ FreeBSD / HardenedBSD
_ Initial configuration and secure system
_ Mobile WAN / WAN failover
_ High availability
_ Plugins
_ pfSense or OPNsense?
Initial configuration and secure system
_ Default firewall rule settings
_ LAN→WAN: all allowed
_ WAN→LAN: all denied
_ Create firewall aliases (for IP lists)
_ FireHOL list
_ Spamhaus
_ Threat from inside
_ Restrict LAN→WAN
_ Enable FireHOL list or Spamhaus
STEP 1
Default settings
all allowed
LAN→ WAN
Initial configuration and secure system
_ Create firewall aliases
_ Placeholders for real hosts, networks or ports
_ FireHOL list
_ level1: Includes fullbogons, Spamhaus DROP & EDROP, dshield, malware lists
_ level2: Addition to level1
_ level3: Addition to level1+2
_ level4: Addition to level1+2+3
_ Spamhaus
_ DROP: Don't route or peer, includes direct allocated networks
_ EDROP: Extension to DROP, includes also suballocated networks
STEP 2
The more
levels applied
= higher risk of
false positives
click
STEP 3
First rule match
Move rules up
Initial configuration and secure system
_ Intrusion Prevention System (IPS) Suricata
_ Multi-threaded (Snort is single-threaded)
_ Performance impact
_ at least 2 GB RAM
_ at least 10 GB disk for logging
_ Disable offloading → then Suricata can inspect packets
_ Impact on the throughput performance
_ Benchmarks RI1102D
STEP 4
Disable offloading
Only for CPUs with
SSE3 support
(Intel only)
Scan on WAN or LAN
IPS Suricata
_ Additional filtering examples
_ Allow only DACH traffic
_ Block specific SSL fingerprints
(for „fake certs“ from mal. CAs)
Only if IPS mode
is activated
SHA1 sum
Schedule via cron
update and reload
rules
Initial configuration and secure system
_ Proxy
_ Virus scanner via ICAP (Internet Content Adaption Protocol – RFC 3507)
_ Remote Access Control Lists (similar to IP lists, for domains)
STEP 5
OPNsense
_ History and architecture
_ FreeBSD / HardenedBSD
_ Initial configuration and secure system
_ Mobile WAN / WAN failover
_ High availability
_ Plugins
_ pfSense or OPNsense?
Mobile WAN (LTE/4G modem)
_ Example Huawei ME909u-521 (device cuaUx.0)
How-to: https://www.thomas-krenn.com/de/wiki/OPNsense_LTE_Verbindung
MultiWAN, WAN failover and load balancing
_ eg. Ethernet and LTE uplinks
Occasion when
the backup WAN
steps in
Select Tier 1 for both
if you want
load balancing
OPNsense
_ History and architecture
_ FreeBSD / HardenedBSD
_ Initial configuration and secure system
_ Mobile WAN / WAN failover
_ High availability
_ Plugins
_ pfSense or OPNsense?
High availability
_ Based on the CARP protocol
„Common Address Redundancy Protocol“
_ Active-passive configuration
_ Advantages
_ If the active firewall fails, the passive one takes over
_ No intervention by users needed
_ Minimal interruption of services
_ Tip: Configure HA beforehand, configure the system, rules and
plugins afterwards
High availability
_ Components
_ CARP
_ IP protocol 112
_ Multicast packets for status updates
_ OR: Direct to a specific IP
_ Unique Virtual Host ID (vhid) for every virtual interface
_ pfSync
_ Dedicated interface
_ Direct cabling between the two firewalls
_ Increases security and performance
_ XMLRPC sync
_ Ensures that the configuration of the backup server is in sync
High availability
_ Setup and configuration
_ System → High Availability → Settings
_ Master
_ Setup WAN, LAN and pfSync IP
_ Virtual IPs
– Type carp
– For LAN and WAN
_ Slave
_ Setup WAN, LAN and pfSync IP (different IPs to the master!)
_ Outbound NAT → Use virtual IP
_ Config samples: OPNsense Wiki - Configure CARP
High availability - Sample configuration
Source: https://wiki.opnsense.org/_images/900px-Carp_setup_example.png
OPNsense
_ History and architecture
_ FreeBSD / HardenedBSD
_ Initial configuration and secure system
_ Mobile WAN / WAN failover
_ High availability
_ Plugins
_ pfSense or OPNsense?
Plugins
_ A vast variety of plugins
_ Easy to install
_ Path: System → Firmware → Plugins
Modularity!
OPNsense
_ History and architecture
_ FreeBSD / HardenedBSD
_ Initial configuration and secure system
_ Mobile WAN / WAN failover
_ High availability
_ Plugins
_ pfSense or OPNsense?
Open source
No license fee
Development in NL + DE
Modern design
Hands on webinar (runtime 75 minutes,
german language)
_ www.thomas-krenn.com/opnsense-webinar
_ Speaker Michael Münz
Senior Network Engineer
m.a.x. Informationstechnologie AG
OPNsense Plugin-Developer
Have fun with OPNsense!
“Real” Open Source rocks ;-)

More Related Content

What's hot

Putting Firepower Into The Next Generation Firewall
Putting Firepower Into The Next Generation FirewallPutting Firepower Into The Next Generation Firewall
Putting Firepower Into The Next Generation Firewall
Cisco Canada
 
Alphorm.com Formation Microsoft Azure : Azure Active Directory 2021
Alphorm.com Formation Microsoft Azure : Azure Active Directory 2021Alphorm.com Formation Microsoft Azure : Azure Active Directory 2021
Alphorm.com Formation Microsoft Azure : Azure Active Directory 2021
Alphorm
 
Microsoft Defender and Azure Sentinel
Microsoft Defender and Azure SentinelMicrosoft Defender and Azure Sentinel
Microsoft Defender and Azure Sentinel
David J Rosenthal
 
11 palo alto user-id concepts
11 palo alto user-id concepts11 palo alto user-id concepts
11 palo alto user-id concepts
Mostafa El Lathy
 
Palo Alto Networks 28.5.2013
Palo Alto Networks 28.5.2013Palo Alto Networks 28.5.2013
Palo Alto Networks 28.5.2013
Belsoft
 
Aryaka Bringing SASE to Life with a Zero Trust WAN.pdf
Aryaka Bringing SASE to Life with a Zero Trust WAN.pdfAryaka Bringing SASE to Life with a Zero Trust WAN.pdf
Aryaka Bringing SASE to Life with a Zero Trust WAN.pdf
KlausSchwegler
 
Microsoft Windows Server 2022 Overview
Microsoft Windows Server 2022 OverviewMicrosoft Windows Server 2022 Overview
Microsoft Windows Server 2022 Overview
David J Rosenthal
 
10 palo alto nat policy concepts
10 palo alto nat policy concepts10 palo alto nat policy concepts
10 palo alto nat policy concepts
Mostafa El Lathy
 
Introduction - Trend Micro Deep Security
Introduction - Trend Micro Deep SecurityIntroduction - Trend Micro Deep Security
Introduction - Trend Micro Deep Security
Andrew Wong
 
13 palo alto url web filtering concept
13 palo alto url web filtering concept13 palo alto url web filtering concept
13 palo alto url web filtering concept
Mostafa El Lathy
 
Palo Alto U turn NAT for inside user's to access Web Server in a different Zo...
Palo Alto U turn NAT for inside user's to access Web Server in a different Zo...Palo Alto U turn NAT for inside user's to access Web Server in a different Zo...
Palo Alto U turn NAT for inside user's to access Web Server in a different Zo...
David kankam
 
Deep Packet Inspection (DPI) Test Methodology
Deep Packet Inspection (DPI) Test MethodologyDeep Packet Inspection (DPI) Test Methodology
Deep Packet Inspection (DPI) Test Methodology
Ixia
 
Kubernetes networking in AWS
Kubernetes networking in AWSKubernetes networking in AWS
Kubernetes networking in AWS
Zvika Gazit
 
Secure Access – Anywhere by Prisma, PaloAlto
Secure Access – Anywhere by Prisma, PaloAltoSecure Access – Anywhere by Prisma, PaloAlto
Secure Access – Anywhere by Prisma, PaloAlto
Prime Infoserv
 
Palo alto NGfw2023.pptx
Palo alto  NGfw2023.pptxPalo alto  NGfw2023.pptx
Palo alto NGfw2023.pptx
ahmad661583
 
Active Directory
Active Directory Active Directory
Active Directory
Sandeep Kapadane
 
CloudStack Networking
CloudStack NetworkingCloudStack Networking
17 palo alto threat prevention concept
17 palo alto threat prevention concept17 palo alto threat prevention concept
17 palo alto threat prevention concept
Mostafa El Lathy
 
Zero trust deck 2020
Zero trust deck 2020Zero trust deck 2020
Zero trust deck 2020
Guido Marchetti
 
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
Netgate
 

What's hot (20)

Putting Firepower Into The Next Generation Firewall
Putting Firepower Into The Next Generation FirewallPutting Firepower Into The Next Generation Firewall
Putting Firepower Into The Next Generation Firewall
 
Alphorm.com Formation Microsoft Azure : Azure Active Directory 2021
Alphorm.com Formation Microsoft Azure : Azure Active Directory 2021Alphorm.com Formation Microsoft Azure : Azure Active Directory 2021
Alphorm.com Formation Microsoft Azure : Azure Active Directory 2021
 
Microsoft Defender and Azure Sentinel
Microsoft Defender and Azure SentinelMicrosoft Defender and Azure Sentinel
Microsoft Defender and Azure Sentinel
 
11 palo alto user-id concepts
11 palo alto user-id concepts11 palo alto user-id concepts
11 palo alto user-id concepts
 
Palo Alto Networks 28.5.2013
Palo Alto Networks 28.5.2013Palo Alto Networks 28.5.2013
Palo Alto Networks 28.5.2013
 
Aryaka Bringing SASE to Life with a Zero Trust WAN.pdf
Aryaka Bringing SASE to Life with a Zero Trust WAN.pdfAryaka Bringing SASE to Life with a Zero Trust WAN.pdf
Aryaka Bringing SASE to Life with a Zero Trust WAN.pdf
 
Microsoft Windows Server 2022 Overview
Microsoft Windows Server 2022 OverviewMicrosoft Windows Server 2022 Overview
Microsoft Windows Server 2022 Overview
 
10 palo alto nat policy concepts
10 palo alto nat policy concepts10 palo alto nat policy concepts
10 palo alto nat policy concepts
 
Introduction - Trend Micro Deep Security
Introduction - Trend Micro Deep SecurityIntroduction - Trend Micro Deep Security
Introduction - Trend Micro Deep Security
 
13 palo alto url web filtering concept
13 palo alto url web filtering concept13 palo alto url web filtering concept
13 palo alto url web filtering concept
 
Palo Alto U turn NAT for inside user's to access Web Server in a different Zo...
Palo Alto U turn NAT for inside user's to access Web Server in a different Zo...Palo Alto U turn NAT for inside user's to access Web Server in a different Zo...
Palo Alto U turn NAT for inside user's to access Web Server in a different Zo...
 
Deep Packet Inspection (DPI) Test Methodology
Deep Packet Inspection (DPI) Test MethodologyDeep Packet Inspection (DPI) Test Methodology
Deep Packet Inspection (DPI) Test Methodology
 
Kubernetes networking in AWS
Kubernetes networking in AWSKubernetes networking in AWS
Kubernetes networking in AWS
 
Secure Access – Anywhere by Prisma, PaloAlto
Secure Access – Anywhere by Prisma, PaloAltoSecure Access – Anywhere by Prisma, PaloAlto
Secure Access – Anywhere by Prisma, PaloAlto
 
Palo alto NGfw2023.pptx
Palo alto  NGfw2023.pptxPalo alto  NGfw2023.pptx
Palo alto NGfw2023.pptx
 
Active Directory
Active Directory Active Directory
Active Directory
 
CloudStack Networking
CloudStack NetworkingCloudStack Networking
CloudStack Networking
 
17 palo alto threat prevention concept
17 palo alto threat prevention concept17 palo alto threat prevention concept
17 palo alto threat prevention concept
 
Zero trust deck 2020
Zero trust deck 2020Zero trust deck 2020
Zero trust deck 2020
 
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
 

Similar to OSDC 2018 | OPNsense: the “open” firewall for your datacenter by Thomas Niedermeier

Fusioninventory rmll-2011
Fusioninventory rmll-2011Fusioninventory rmll-2011
Fusioninventory rmll-2011
Gonéri Le Bouder
 
Fusioninventory openworldforum-paris-2011-september
Fusioninventory openworldforum-paris-2011-septemberFusioninventory openworldforum-paris-2011-september
Fusioninventory openworldforum-paris-2011-september
Gonéri Le Bouder
 
Sweden11
Sweden11Sweden11
Sweden11
Dru Lavigne
 
High performance content hosting
High performance content hosting High performance content hosting
High performance content hosting
Aleksey Korzun
 
Basic Linux Internals
Basic Linux InternalsBasic Linux Internals
Basic Linux Internals
mukul bhardwaj
 
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Simon Boulet
 
SOUG - Experiences with Oracle Solaris 11.4
SOUG - Experiences with Oracle Solaris 11.4SOUG - Experiences with Oracle Solaris 11.4
SOUG - Experiences with Oracle Solaris 11.4
JomaSoft
 
BSDCan2006.pdf
BSDCan2006.pdfBSDCan2006.pdf
BSDCan2006.pdf
JoseRamirez260192
 
Presentation linux on power
Presentation   linux on powerPresentation   linux on power
Presentation linux on power
solarisyougood
 
visagie_freebsd
visagie_freebsdvisagie_freebsd
visagie_freebsd
webuploader
 
Red Hat Linux 5 Hardening Tips - National Security Agency
Red Hat Linux 5 Hardening Tips - National Security AgencyRed Hat Linux 5 Hardening Tips - National Security Agency
Red Hat Linux 5 Hardening Tips - National Security Agency
sanchetanparmar
 
Big data with hadoop Setup on Ubuntu 12.04
Big data with hadoop Setup on Ubuntu 12.04Big data with hadoop Setup on Ubuntu 12.04
Big data with hadoop Setup on Ubuntu 12.04
Mandakini Kumari
 
Piattaforma Web Linux completa dai sorgenti
Piattaforma Web Linux completa dai sorgentiPiattaforma Web Linux completa dai sorgenti
Piattaforma Web Linux completa dai sorgenti
Giulio Destri
 
Rac on NFS
Rac on NFSRac on NFS
Rac on NFS
mengjiagou
 
Practical Introduction To Linux
Practical Introduction To LinuxPractical Introduction To Linux
Practical Introduction To Linux
Zeeshan Rizvi
 
IDNOG 4 Lightning Talks - Documenting your Network in 3 Simple Steps
IDNOG 4 Lightning Talks - Documenting your Network in 3 Simple StepsIDNOG 4 Lightning Talks - Documenting your Network in 3 Simple Steps
IDNOG 4 Lightning Talks - Documenting your Network in 3 Simple Steps
Affan Basalamah
 
LT04 IDNOG04 - Affan Basalamah (ITB) - Documenting your network
LT04 IDNOG04 - Affan Basalamah (ITB) - Documenting your networkLT04 IDNOG04 - Affan Basalamah (ITB) - Documenting your network
LT04 IDNOG04 - Affan Basalamah (ITB) - Documenting your network
Indonesia Network Operators Group
 
Writing & Sharing Great Modules - Puppet Camp Boston
Writing & Sharing Great Modules - Puppet Camp BostonWriting & Sharing Great Modules - Puppet Camp Boston
Writing & Sharing Great Modules - Puppet Camp Boston
Puppet
 
Unix Security
Unix SecurityUnix Security
Unix Security
replay21
 
RESUME_SYS_ADMIN
RESUME_SYS_ADMINRESUME_SYS_ADMIN
RESUME_SYS_ADMIN
(As)hok kumar
 

Similar to OSDC 2018 | OPNsense: the “open” firewall for your datacenter by Thomas Niedermeier (20)

Fusioninventory rmll-2011
Fusioninventory rmll-2011Fusioninventory rmll-2011
Fusioninventory rmll-2011
 
Fusioninventory openworldforum-paris-2011-september
Fusioninventory openworldforum-paris-2011-septemberFusioninventory openworldforum-paris-2011-september
Fusioninventory openworldforum-paris-2011-september
 
Sweden11
Sweden11Sweden11
Sweden11
 
High performance content hosting
High performance content hosting High performance content hosting
High performance content hosting
 
Basic Linux Internals
Basic Linux InternalsBasic Linux Internals
Basic Linux Internals
 
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
Deploying with Super Cow Powers (Hosting your own APT repository with reprepro)
 
SOUG - Experiences with Oracle Solaris 11.4
SOUG - Experiences with Oracle Solaris 11.4SOUG - Experiences with Oracle Solaris 11.4
SOUG - Experiences with Oracle Solaris 11.4
 
BSDCan2006.pdf
BSDCan2006.pdfBSDCan2006.pdf
BSDCan2006.pdf
 
Presentation linux on power
Presentation   linux on powerPresentation   linux on power
Presentation linux on power
 
visagie_freebsd
visagie_freebsdvisagie_freebsd
visagie_freebsd
 
Red Hat Linux 5 Hardening Tips - National Security Agency
Red Hat Linux 5 Hardening Tips - National Security AgencyRed Hat Linux 5 Hardening Tips - National Security Agency
Red Hat Linux 5 Hardening Tips - National Security Agency
 
Big data with hadoop Setup on Ubuntu 12.04
Big data with hadoop Setup on Ubuntu 12.04Big data with hadoop Setup on Ubuntu 12.04
Big data with hadoop Setup on Ubuntu 12.04
 
Piattaforma Web Linux completa dai sorgenti
Piattaforma Web Linux completa dai sorgentiPiattaforma Web Linux completa dai sorgenti
Piattaforma Web Linux completa dai sorgenti
 
Rac on NFS
Rac on NFSRac on NFS
Rac on NFS
 
Practical Introduction To Linux
Practical Introduction To LinuxPractical Introduction To Linux
Practical Introduction To Linux
 
IDNOG 4 Lightning Talks - Documenting your Network in 3 Simple Steps
IDNOG 4 Lightning Talks - Documenting your Network in 3 Simple StepsIDNOG 4 Lightning Talks - Documenting your Network in 3 Simple Steps
IDNOG 4 Lightning Talks - Documenting your Network in 3 Simple Steps
 
LT04 IDNOG04 - Affan Basalamah (ITB) - Documenting your network
LT04 IDNOG04 - Affan Basalamah (ITB) - Documenting your networkLT04 IDNOG04 - Affan Basalamah (ITB) - Documenting your network
LT04 IDNOG04 - Affan Basalamah (ITB) - Documenting your network
 
Writing & Sharing Great Modules - Puppet Camp Boston
Writing & Sharing Great Modules - Puppet Camp BostonWriting & Sharing Great Modules - Puppet Camp Boston
Writing & Sharing Great Modules - Puppet Camp Boston
 
Unix Security
Unix SecurityUnix Security
Unix Security
 
RESUME_SYS_ADMIN
RESUME_SYS_ADMINRESUME_SYS_ADMIN
RESUME_SYS_ADMIN
 

Recently uploaded

Photoshop Tutorial for Beginners (2024 Edition)
Photoshop Tutorial for Beginners (2024 Edition)Photoshop Tutorial for Beginners (2024 Edition)
Photoshop Tutorial for Beginners (2024 Edition)
alowpalsadig
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
Patrick Weigel
 
Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
sjcobrien
 
Upturn India Technologies - Web development company in Nashik
Upturn India Technologies - Web development company in NashikUpturn India Technologies - Web development company in Nashik
Upturn India Technologies - Web development company in Nashik
Upturn India Technologies
 
Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...
Paul Brebner
 
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
The Third Creative Media
 
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Paul Brebner
 
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSISDECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
Tier1 app
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
dakas1
 
DevOps Consulting Company | Hire DevOps Services
DevOps Consulting Company | Hire DevOps ServicesDevOps Consulting Company | Hire DevOps Services
DevOps Consulting Company | Hire DevOps Services
seospiralmantra
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
gapen1
 
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom KittEnhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Peter Caitens
 
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
kalichargn70th171
 
Kubernetes at Scale: Going Multi-Cluster with Istio
Kubernetes at Scale:  Going Multi-Cluster  with IstioKubernetes at Scale:  Going Multi-Cluster  with Istio
Kubernetes at Scale: Going Multi-Cluster with Istio
Severalnines
 
Manyata Tech Park Bangalore_ Infrastructure, Facilities and More
Manyata Tech Park Bangalore_ Infrastructure, Facilities and MoreManyata Tech Park Bangalore_ Infrastructure, Facilities and More
Manyata Tech Park Bangalore_ Infrastructure, Facilities and More
narinav14
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
Alberto Brandolini
 
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
kgyxske
 
ACE - Team 24 Wrapup event at ahmedabad.
ACE - Team 24 Wrapup event at ahmedabad.ACE - Team 24 Wrapup event at ahmedabad.
ACE - Team 24 Wrapup event at ahmedabad.
Maitrey Patel
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
Yara Milbes
 
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
OnePlan Solutions
 

Recently uploaded (20)

Photoshop Tutorial for Beginners (2024 Edition)
Photoshop Tutorial for Beginners (2024 Edition)Photoshop Tutorial for Beginners (2024 Edition)
Photoshop Tutorial for Beginners (2024 Edition)
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
 
Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
 
Upturn India Technologies - Web development company in Nashik
Upturn India Technologies - Web development company in NashikUpturn India Technologies - Web development company in Nashik
Upturn India Technologies - Web development company in Nashik
 
Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...
 
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
Unlock the Secrets to Effortless Video Creation with Invideo: Your Ultimate G...
 
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
 
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSISDECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
 
DevOps Consulting Company | Hire DevOps Services
DevOps Consulting Company | Hire DevOps ServicesDevOps Consulting Company | Hire DevOps Services
DevOps Consulting Company | Hire DevOps Services
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
 
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom KittEnhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
 
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
 
Kubernetes at Scale: Going Multi-Cluster with Istio
Kubernetes at Scale:  Going Multi-Cluster  with IstioKubernetes at Scale:  Going Multi-Cluster  with Istio
Kubernetes at Scale: Going Multi-Cluster with Istio
 
Manyata Tech Park Bangalore_ Infrastructure, Facilities and More
Manyata Tech Park Bangalore_ Infrastructure, Facilities and MoreManyata Tech Park Bangalore_ Infrastructure, Facilities and More
Manyata Tech Park Bangalore_ Infrastructure, Facilities and More
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
 
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
 
ACE - Team 24 Wrapup event at ahmedabad.
ACE - Team 24 Wrapup event at ahmedabad.ACE - Team 24 Wrapup event at ahmedabad.
ACE - Team 24 Wrapup event at ahmedabad.
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
 
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
 

OSDC 2018 | OPNsense: the “open” firewall for your datacenter by Thomas Niedermeier

  • 1. OPNsense: the “open” firewall for your datacenter @tk_tniedermeier Thomas Niedermeier, Thomas-Krenn.AG Open Source Data Center Conference, 2018/06/12
  • 2. Have you already tested a Open Source firewall?
  • 4. OPNsense _ History and architecture _ FreeBSD / HardenedBSD _ Initial configuration and secure system _ Mobile WAN / WAN failover _ High availability _ Plugins _ pfSense or OPNsense?
  • 5. OPNsense started as a fork of pfSense® (Copyright © 2004-2014 Electric Sheep Fencing, LLC. All rights reserved.) a fork from m0n0wall® (Copyright © 2002-2013 Manuel Kasper).
  • 6.
  • 7. IPFire 2.19 pfSense® 2.4 OPNsense® 18.1 Based on Linux® Kernel 3.14 FreeBSD® 11.1 FreeBSD® 11.1 Stateful firewall ✔ ✔ ✔ Proxy cache ✔ ✔ ✔ VPN ✔ ✔ ✔ IDS ✔ ✔ ✔ HA cluster ✔ ✔ Multi-WAN ✔ ✔ Layer 2 (transparent) ✔ ✔ Two-factor auth. ( )✔ ✔
  • 8. IPFire 2.19 pfSense® 2.4 OPNsense® 18.1 Based on Linux® Kernel 3.14 FreeBSD® 11.1 FreeBSD® 11.1 Stateful firewall ✔ ✔ ✔ Proxy cache ✔ ✔ ✔ VPN ✔ ✔ ✔ IDS ✔ ✔ ✔ HA cluster ✔ ✔ Multi-WAN ✔ ✔ Layer 2 (transparent) ✔ ✔ Two-factor auth. ( )✔ ✔ Also for mobile LTE backup with 4G modem Also for VPN roadwarrior (eg. Google Auth.)
  • 9. Comparison OPNsense and pfSense OPNsense pfSense License BSD Clause-2 Apache License 2.0 IPS Native via Suricata best performance Snort no real inline mode available 2FA Native integrated via TOTP mOTP available via plugin AES-NI CPU feature required No, never Yes, beginning with version 2.5 in community edition Source: https://techcorner.max-it.de/wiki/OPNsense_vs._pfSense_-_Im_Vergleich
  • 10.
  • 11. OPNsense _ History and architecture _ FreeBSD / HardenedBSD _ Initial configuration and secure system _ Mobile WAN / WAN failover _ High availability _ Plugins _ pfSense or OPNsense?
  • 12.
  • 13. OpenServer 6.x UnixWare 7.x (System V R5) HP-UX 11i+ 1969 1971 to 1973 1974 to 1975 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 to 2004 2006 to 2007 2008 2005 2009 2010 2011 2012 to 2015 2016 2017 Open source Mixed/shared source Closed source HP-UX 1.0 to 1.2 OpenSolaris & derivatives (illumos, etc.) System III System V R1 to R2 OpenServer 5.0.5 to 5.0.7 OpenServer 5.0 to 5.04 SCO UNIX 3.2.4 SCO Xenix V/386 SCO Xenix V/386 SCO Xenix V/286 SCO Xenix Xenix 3.0 Xenix 1.0 to 2.3 PWB/Unix AIX 1.0 AIX 3.0-7.2 OpenBSD 2.3-6.1 OpenBSD 1.0 to 2.2 SunOS 1.2 to 3.0 SunOS 1 to 1.1 Unix/32V Unix Version 1 to 4 Unix Version 5 to 6 Unix Version 7 Unnamed PDP-7 operating system BSD 1.0 to 2.0 BSD 3.0 to 4.1 BSD 4.2 Unix Version 8 Unix 9 and 10 (last versions from Bell Labs) NexTSTEP/ OPENSTEP 1.0 to 4.0 Mac OS X Server Mac OS X, OS X, macOS 10.0 to 10.12 (Darwin 1.2.1 to 17) Minix 1.x Minix 2.x Minix 3.1.0-3.4.0 Linux 2.x Linux 0.95 to 1.2.x Linux 0.0.1 BSD 4.4-Lite & Lite Release 2 NetBSD 0.8 to 1.0 NetBSD 1.1 to 1.2 NetBSD 1.3 NetBSD 1.3-7.1 FreeBSD 1.0 to 2.2.x 386BSD BSD Net/2 Solaris 10 Solaris 11.0-11.3 System V R4 Solaris 2.1 to 9 BSD 4.3 SunOS 4 HP-UX 2.0 to 3.0 HP-UX 6 to 11 System V R3 UnixWare 1.x to 2.x (System V R4.2) BSD 4.3 Tahoe BSD 4.3 Reno FreeBSD 3.0 to 3.2 FreeBSD 3.3-11.x Linux 3.x Linux 4.x OpenServer 10.x 1969 1971 to 1973 1974 to 1975 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 to 2004 2006 to 2007 2008 2005 2009 2010 2011 2012 to 2015 2016 2017 DragonFly BSD 1.0 to 4.8 BSD Net/1 Unix-like systems
  • 14. OpenServer 6.x UnixWare 7.x (System V R5) HP-UX 11i+ 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 to 2004 2006 to 2007 2008 2005 2009 2010 2011 2012 to 2015 2016 2017 OpenSolaris & derivatives (illumos, etc.) OpenServer 5.0.5 to 5.0.7 OpenServer 5.0 to 5.04 SCO UNIX 3.2.4 V/386 AIX 3.0-7.2 OpenBSD 2.3-6.1 OpenBSD 1.0 to 2.2 NexTSTEP/ OPENSTEP 1.0 to 4.0 Mac OS X Server Mac OS X, OS X, macOS 10.0 to 10.12 (Darwin 1.2.1 to 17) Minix 1.x Minix 2.x Minix 3.1.0-3.4.0 Linux 2.x Linux 0.95 to 1.2.x Linux 0.0.1 BSD 4.4-Lite & Lite Release 2 NetBSD 0.8 to 1.0 NetBSD 1.1 to 1.2 NetBSD 1.3 NetBSD 1.3-7.1 FreeBSD 1.0 to 2.2.x 386BSD BSD Net/2 Solaris 10 Solaris 11.0-11.3 Solaris 2.1 to 9 SunOS 4 HP-UX 6 to 11 UnixWare 1.x to 2.x (System V R4.2) BSD 4.3 Reno FreeBSD 3.0 to 3.2 FreeBSD 3.3-11.x Linux 3.x Linux 4.x OpenServer 10.x 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 to 2004 2006 to 2007 2008 2005 2009 2010 2011 2012 to 2015 2016 2017 DragonFly BSD 1.0 to 4.8 BSD Net/1 m0n0wall pfSense OPNsense
  • 15. FreeBSD _ Originally a fork from 386BSD _ Originated in 1993 _ Since version 2.0 a fork from BSD 4.4-Lite _ Free software, open source _ Under BSD license (Berkeley Software Distribution)
  • 16. FreeBSD _ Relies on two development branches _ CURRENT _ „bleeding edge“ code _ For developers and testers _ Code probably contains lots of bugs _ STABLE _ Major-releases are built from this branch _ After successful tests in the CURRENT branch _ But also a development branch _ Not suitable for general use
  • 17. FreeBSD _ Supported (current) versions _ 10.4 (Legacy Release) → EOL: 31.10.2018 _ 11.1 (Production Release) → EOL: 11.2-RELEASE + 3 months (about August 2018) _ Future versions _ 11.2 _ Release in the end of June 2018 planned _ 12.0 _ Release in November 2018 planned
  • 18. FreeBSD _ New support model _ New since FreeBSD 11.0 _ Major versions now supported 5 years _ Minor versions supported 3 months onlymore (if next minor version is released) _ Released in February 2015 _ Previous support model (up to FreeBSD 10.*) _ Normal _ At least 12 months maintenance _ Extended _ At least 24 months maintenance _ Every second and the last release of a STABLE version Link: https://www.freebsd.org/de/security/security.html#model
  • 19. HardenedBSD _ Focus on higher security with layers _ Fork from FreeBSD _ Since 2014 _ Function ASLR implemented with project start _ Address Space Layout Randomization _ Goal: Mitigation of exploits Link: https://hardenedbsd.org/content/freebsd-and-hardenedbsd-feature-comparisons
  • 20. ASLR _ Address Space Layout Randomization (ASLR) _ Address space randomly allocated for programs, no longer predictable _ Increases protection against buffer overflows
  • 21. SEGVGUARD _ Blind Return Oriented Programming (BROP) _ ASLR can be leveraged under certain circumstances _ BROP can generate ROP malicious code _ Needs several attempts _ Application crashes if BROP is not successful and then restarts _ SEGVGUARD _ Fixes the above mentioned brute force method of BROP _ Prevents the restart of the attacked application _ Inspired by the Linux PaX patch Link: https://hardenedbsd.org/content/projects
  • 22. OPNsense _ History and architecture _ FreeBSD / HardenedBSD _ Initial configuration and secure system _ Mobile WAN / WAN failover _ High availability _ Plugins _ pfSense or OPNsense?
  • 23. Initial configuration and secure system _ Default firewall rule settings _ LAN→WAN: all allowed _ WAN→LAN: all denied _ Create firewall aliases (for IP lists) _ FireHOL list _ Spamhaus _ Threat from inside _ Restrict LAN→WAN _ Enable FireHOL list or Spamhaus
  • 24. STEP 1 Default settings all allowed LAN→ WAN
  • 25. Initial configuration and secure system _ Create firewall aliases _ Placeholders for real hosts, networks or ports _ FireHOL list _ level1: Includes fullbogons, Spamhaus DROP & EDROP, dshield, malware lists _ level2: Addition to level1 _ level3: Addition to level1+2 _ level4: Addition to level1+2+3 _ Spamhaus _ DROP: Don't route or peer, includes direct allocated networks _ EDROP: Extension to DROP, includes also suballocated networks STEP 2 The more levels applied = higher risk of false positives
  • 26. click
  • 27.
  • 30. Initial configuration and secure system _ Intrusion Prevention System (IPS) Suricata _ Multi-threaded (Snort is single-threaded) _ Performance impact _ at least 2 GB RAM _ at least 10 GB disk for logging _ Disable offloading → then Suricata can inspect packets _ Impact on the throughput performance _ Benchmarks RI1102D STEP 4
  • 32.
  • 33. Only for CPUs with SSE3 support (Intel only)
  • 34. Scan on WAN or LAN
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41. IPS Suricata _ Additional filtering examples _ Allow only DACH traffic _ Block specific SSL fingerprints (for „fake certs“ from mal. CAs)
  • 42.
  • 43. Only if IPS mode is activated SHA1 sum
  • 44.
  • 45.
  • 46. Schedule via cron update and reload rules
  • 47.
  • 48.
  • 49. Initial configuration and secure system _ Proxy _ Virus scanner via ICAP (Internet Content Adaption Protocol – RFC 3507) _ Remote Access Control Lists (similar to IP lists, for domains) STEP 5
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61. OPNsense _ History and architecture _ FreeBSD / HardenedBSD _ Initial configuration and secure system _ Mobile WAN / WAN failover _ High availability _ Plugins _ pfSense or OPNsense?
  • 62. Mobile WAN (LTE/4G modem) _ Example Huawei ME909u-521 (device cuaUx.0)
  • 64. MultiWAN, WAN failover and load balancing _ eg. Ethernet and LTE uplinks
  • 65.
  • 66. Occasion when the backup WAN steps in
  • 67. Select Tier 1 for both if you want load balancing
  • 68.
  • 69.
  • 70. OPNsense _ History and architecture _ FreeBSD / HardenedBSD _ Initial configuration and secure system _ Mobile WAN / WAN failover _ High availability _ Plugins _ pfSense or OPNsense?
  • 71. High availability _ Based on the CARP protocol „Common Address Redundancy Protocol“ _ Active-passive configuration _ Advantages _ If the active firewall fails, the passive one takes over _ No intervention by users needed _ Minimal interruption of services _ Tip: Configure HA beforehand, configure the system, rules and plugins afterwards
  • 72. High availability _ Components _ CARP _ IP protocol 112 _ Multicast packets for status updates _ OR: Direct to a specific IP _ Unique Virtual Host ID (vhid) for every virtual interface _ pfSync _ Dedicated interface _ Direct cabling between the two firewalls _ Increases security and performance _ XMLRPC sync _ Ensures that the configuration of the backup server is in sync
  • 73. High availability _ Setup and configuration _ System → High Availability → Settings _ Master _ Setup WAN, LAN and pfSync IP _ Virtual IPs – Type carp – For LAN and WAN _ Slave _ Setup WAN, LAN and pfSync IP (different IPs to the master!) _ Outbound NAT → Use virtual IP _ Config samples: OPNsense Wiki - Configure CARP
  • 74. High availability - Sample configuration Source: https://wiki.opnsense.org/_images/900px-Carp_setup_example.png
  • 75.
  • 76. OPNsense _ History and architecture _ FreeBSD / HardenedBSD _ Initial configuration and secure system _ Mobile WAN / WAN failover _ High availability _ Plugins _ pfSense or OPNsense?
  • 77. Plugins _ A vast variety of plugins _ Easy to install _ Path: System → Firmware → Plugins
  • 78.
  • 79.
  • 81. OPNsense _ History and architecture _ FreeBSD / HardenedBSD _ Initial configuration and secure system _ Mobile WAN / WAN failover _ High availability _ Plugins _ pfSense or OPNsense?
  • 82.
  • 83.
  • 84.
  • 85. Open source No license fee Development in NL + DE Modern design
  • 86. Hands on webinar (runtime 75 minutes, german language) _ www.thomas-krenn.com/opnsense-webinar _ Speaker Michael Münz Senior Network Engineer m.a.x. Informationstechnologie AG OPNsense Plugin-Developer
  • 87.
  • 88. Have fun with OPNsense! “Real” Open Source rocks ;-)