Introduction to Labeled Networking on Linux



Similar documents
Netfilter. GNU/Linux Kernel version 2.4+ Setting up firewall to allow NIS and NFS traffic. January 2008

CSCI 454/554 Computer and Network Security. Topic 8.1 IPsec

+ iptables. packet filtering && firewall

Firewalls. Chien-Chung Shen

CS Computer and Network Security: Firewalls

CSC574 - Computer and Network Security Module: Firewalls

CSE543 - Computer and Network Security Module: Firewalls

Creating a Gateway to Gateway VPN between Sidewinder G2 and Linux

Intro to Linux Kernel Firewall

How To Set Up An Ip Firewall On Linux With Iptables (For Ubuntu) And Iptable (For Windows)

Protocol Security Where?

Linux MDS Firewall Supplement

Michal Ludvig, SUSE Labs, 01/30/2004, Secure networking, 1

CS Computer and Network Security: Firewalls

Track 2 Workshop PacNOG 7 American Samoa. Firewalling and NAT

1:1 NAT in ZeroShell. Requirements. Overview. Network Setup

Linux Firewall Wizardry. By Nemus

PowerLink Bandwidth Aggregation Redundant WAN Link and VPN Fail-Over Solutions

TECHNICAL NOTES. Security Firewall IP Tables

APNIC elearning: IPSec Basics. Contact: esec03_v1.0

Matthew Rossmiller 11/25/03

Advanced routing scenarios POLICY BASED ROUTING: CONCEPTS AND LINUX IMPLEMENTATION

Appendix A: Configuring Firewalls for a VPN Server Running Windows Server 2003

Chapter 7. Firewalls

Networking in NSA Security-Enhanced Linux

Virtual Private Network VPN IPSec Testing: Functionality Interoperability and Performance

Main functions of Linux Netfilter

Module: Firewalls. Professor Patrick McDaniel Spring CMPSC443 - Introduction to Computer and Network Security

Virtual Private Network (VPN)

Optimisacion del ancho de banda (Introduccion al Firewall de Linux)

How To Industrial Networking

Firewall Troubleshooting

This section provides a summary of using network location profiles to identify network connection types. Details include:

Linux firewall. Need of firewall Single connection between network Allows restricted traffic between networks Denies un authorized users

Managing Multiple Internet Connections with Shorewall

Configuring Personal Firewalls and Understanding IDS. Securing Networks Chapter 3 Part 2 of 4 CA M S Mehta, FCA

Configuring an IPsec VPN to provide ios devices with secure, remote access to the network

Configuring Switch Ports and VLAN Interfaces for the Cisco ASA 5505 Adaptive Security Appliance

Network Security Management

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering

HP Load Balancing Module

Leveraging IPsec for Mandatory Per-Packet Access Control

Firewalls, NAT and Intrusion Detection and Prevention Systems (IDS)

Definition of firewall

Chapter 4 Virtual Private Networking

CIS 433/533 - Computer and Network Security Firewalls

IP Address: the per-network unique identifier used to find you on a network

ipchains and iptables for Firewalling and Routing

Network Security. Chapter 3. Cornelius Diekmann. Version: October 21, Lehrstuhl für Netzarchitekturen und Netzdienste Institut für Informatik

Virtual Private Networks

Firewall. IPTables and its use in a realistic scenario. José Bateira ei10133 Pedro Cunha ei05064 Pedro Grilo ei09137 FEUP MIEIC SSIN

Assignment 3 Firewalls

Open Source Bandwidth Management: Introduction to Linux Traffic Control

Skywire TCP Socket Examples

How To Understand A Firewall

Linux MPS Firewall Supplement

Policy Based Network Management of a Differentiated Services domain using the Common Open Policy Service protocol

Firewall Examples. Using a firewall to control traffic in networks

PktFilter A Win32 service to control the IPv4 filtering driver of Windows 2000/XP/Server

Chapter 32 Internet Security

UNIVERSITY OF BOLTON CREATIVE TECHNOLOGIES COMPUTING AND NETWORK SECURITY SEMESTER TWO EXAMINATIONS 2014/2015 NETWORK SECURITY MODULE NO: CPU6004

Manuale Turtle Firewall

Internet Protocol Security (IPSec)

Firewalls P+S Linux Router & Firewall 2013

Load Balancing SIP Quick Reference Guide v1.3.1

Stateful Firewalls. Hank and Foo

Firewalls N E T W O R K ( A N D D ATA ) S E C U R I T Y / P E D R O B R A N D Ã O M A N U E L E D U A R D O C O R R E I A

Network Security Exercise 10 How to build a wall of fire

Lab Configure a PIX Firewall VPN

Worksheet 9. Linux as a router, packet filtering, traffic shaping

Configuring IPsec VPN with a FortiGate and a Cisco ASA

Access Control Lists: Overview and Guidelines

ICS 351: Today's plan. IP addresses Network Address Translation Dynamic Host Configuration Protocol Small Office / Home Office configuration

Lecture Objectives. Lecture 6 Mobile Networks: Nomadic Services, DHCP, NAT, and VPNs. Agenda. Nomadic Services. Agenda. Nomadic Services Functions

DEVICE DRIVERS AND TERRUPTS SERVICE MECHANISM Lesson-14: Device types, Physical and Virtual device functions

OS/390 Firewall Technology Overview

TLS and SRTP for Skype Connect. Technical Datasheet

Configure an IPSec Tunnel between a Firebox Vclass & a Check Point FireWall-1

TECHNICAL NOTE. Technical Note P/N REV 03. EMC NetWorker Simplifying firewall port requirements with NSR tunnel Release 8.

Dr. Arjan Durresi. Baton Rouge, LA These slides are available at:

Protecting and controlling Virtual LANs by Linux router-firewall

Ulogd2, Advanced firewall logging

Introduction to Firewalls

Approaches to Multicast over Firewalls: an Analysis

BorderWare Firewall Server 7.1. Release Notes

Catalyst 6500/6000 Switches NetFlow Configuration and Troubleshooting

Network Defense Tools

Case Study for Layer 3 Authentication and Encryption

Cisco Which VPN Solution is Right for You?

Secure use of iptables and connection tracking helpers

CIT 480: Securing Computer Systems. Firewalls


Network Security Part II: Standards

Chapter 9. IP Secure

Transcription:

Introduction to Labeled Networking on Linux Paul Moore paul.moore@hp.com 2008 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice

Agenda Labeled Networking Basics Types of Labeled Networking Secmark NetLabel Labeled IPsec Linux Security Modules and Labeled Networking SELinux Smack Labeled Networking Development 2 July 2008

Labeled Networking Basics 3 July 2008

Labeled Networking Introduction Labeled networking is a form of network access control based on security labels Security labels assigned to network traffic Labels represent both network and security attributes Network traffic identified by its security label Security policy applied to network traffic Defines access rights for network traffic and applications Integrates network access controls into the Linux Security Module (LSM) mechanism Requires a labeled security implementation SELinux Smack 4 July 2008

Labeled Networking on Linux Linux supports two different network label types Secmark labels represent network attributes Netfilter/iptables used to assign labels to packets based on Netfilter matching rules Peer labels represent sender's security attributes Labeling protocols convey the sender's security label across the network Labeled networking support varies by LSM SELinux Supports both secmark and peer network labels Smack Supports Peer network labels 5 July 2008

Secmark Network Labels Secmark labels are locally assigned based on network attributes Netfilter/iptable rule matching is used to assign secmark labels to network packets Flexible assignment of labels using existing Netfilter packet matching and connection tracking Single secmark packet labeling mechanism can be shared across multiple LSMs Does not require any external infrastructure Secmark labels are assigned locally, no labeling protocol needed Integrates traditional Linux firewall functionality with the LSM security model 6 July 2008

Peer Network Labels Peer labels are assigned based on the security attributes of the sender Labeling protocols convey security attributes Commercial IP Security Option (CIPSO) Labeled IPsec Protocol support is required for full functionality Fallback peer label support for unlabeled networks Two peer labeling mechanisms available NetLabel framework Labeled IPsec Extends the LSMs labeled security model across the network 7 July 2008

Secmark 8 July 2008

Secmark Labeling Labeling individual packets Command format iptables -t mangle -A <CHAIN> <RULES> -j SECMARK \ --selctx <SECMARK_LABEL> CHAIN : Netfilter/iptables chain RULES : Netfilter/iptables traffic matching rules SECMARK_LABEL : Secmark label Example iptables -t mangle -A INPUT -p tcp --dport 22 \ -j SECMARK --selctx system_u:object_r:ssh_packet_t:s0 Label an entire connection Traditional Netfilter connection marking using CONNSECMARK 9 July 2008

NetLabel 10 July 2008

NetLabel Framework NetLabel is a labeled networking framework Designed for multiple LSMs and protocols Provides interoperable labeled networking CIPSO protocol provides labeled networking interoperability with other Trusted OSs Trusted Solaris, HP-UX CMW, and others Limited to Multi-Level Security (MLS) attributes Provides fallback network peer labels Peer labels for systems without protocol support Allows peer labels to be assigned to both single hosts and entire networks Supports the full LSM security label 11 July 2008

CIPSO Configuration Define a CIPSO Domain of Interpretation (DOI) Command format netlabelctl cipsov4 add pass doi:<doi> tags:<tag_list> DOI : CIPSO DOI number TAG_LIST : Comma delimited list of CIPSO tag numbers Example netlabelctl cipsov4 add pass doi:8 tags:1,5,2 Map a CIPSO DOI configuration to a LSM domain Command format netlabelctl map domain:<domain> protocol:cipsov4,<doi> DOMAIN : LSM domain string DOI : CIPSO DOI number Example netlabelctl map domain:ping_t protocol:cipsov4,8 12 July 2008

Fallback Peer Label Configuration Define a CIPSO Domain of Interpretation (DOI) Command format netlabelctl unlbl add interface:<iface> address:<addr> \ label:<peer_label> IFACE : Network interface ADDR: Network address with optional mask PEER_LABEL: Fallback peer label Example netlabelctl unlbl add interface:eth0 \ address:192.168.0.0/16 \ label:system_u:object_r:netlabel_peer_t:s0 13 July 2008

Labeled IPsec 14 July 2008

Labeled IPsec IPsec Security Associations (SA) assign peer labels to network traffic Peer labels transfered between systems during IKE exchange Network traffic is implicitly labeled by matching SAs Provides peer labeling with packet level encryption and authentication Interoperability limited to SELinux systems Requires SELinux specific IKE extensions Conflicts with Explicit Congestion Notification (ECN) Supports the full SELinux security label 15 July 2008

Labeled IPsec Configuration Create a Labeled IPsec policy Command format echo spdadd <SOURCE> <DEST> any -ctx 1 1 \ system_u:object_r:ipsec_spd_t:s0-s15:c0.c1023 -P <POLICY> setkey -c SOURCE : Source IP address DEST : Destination IP address POLICY : IPsec policy Example echo spdadd 192.168.0.10 192.168.0.11 any -ctx 1 1 \ system_u:object_r:ipsec_spd_t:s0-s15:c0.c1023 -P in esp/transport//require setkey -c Labeled SAs created on demand by the IKE daemon 16 July 2008

SELinux Labeled Networking 17 July 2008

Labeled Networking in SELinux SELinux supports all of the Linux labeled networking mechanisms Secmark NetLabel CIPSO support for IPv4 Fallback peer label support for IPv4 and IPv6 Labeled IPsec support for IPv4 and IPv6 Consolidated NetLabel and Labeled IPsec labels Peer labels must be equivalent to be allowed Dynamic labeled network access controls Access checks only enabled when needed by configuration 18 July 2008

Inbound Locally Destined Traffic Network labeling points NetLabel or Labeled IPsec provides peer label Netfilter configuration provides secmark label Network traffic access control points 1.Traffic with peer label allowed to enter the system via the inbound interface? 2.Traffic with peer label allowed to enter the system from the traffic's source address? 3.Socket allowed to receive traffic with peer label? 4.Socket allowed to receive traffic with secmark label? 19 July 2008

Outbound Locally Generated Traffic Network labeling points Peer label taken from the sending socket Netfilter configuration provides secmark label Network traffic access control points 1.Socket allowed to send traffic with secmark label? 2.Traffic with peer label allowed to exit the system via the outbound interface? 3.Traffic with peer label allowed to exit the system with the traffic's destination address? 20 July 2008

Inbound Forwarded Traffic Network labeling points NetLabel or Labeled IPsec provides peer label Netfilter configuration provides secmark label based on inbound packet Inbound traffic access control points 1.Traffic with peer label allowed to enter the system via the inbound interface? 2.Traffic with peer label allowed to enter the system from the traffic's source address? 3.Traffic with peer label allowed to be forwarded with (inbound) secmark label? 21 July 2008

Outbound Forwarded Traffic Network labeling points NetLabel or Labeled IPsec provides peer label Netfilter configuration provides secmark label based on outbound packet Outbound traffic access control points 1.Traffic with peer label allowed to be forwarded with (outbound) secmark label? 2.Traffic with peer label allowed to exit the system via the outbound interface? 3.Traffic with peer label allowed to exit the system with the traffic's destination address? 22 July 2008

Smack Labeled Networking 23 July 2008

Labeled Networking in Smack Smack currently provides limited labeled networking support NetLabel CIPSO support for IPv4 Fallback label support for IPv4 and IPv6 Not configurable using native Smack tools Smack network access control points limited to local network traffic Smack labeled networking functionality is expected to improve as Smack matures Smack first included in kernel 2.6.25 24 July 2008

Traffic Control Points Local network traffic Inbound network traffic access checks Network labeling points NetLabel provides peer label Inbound traffic access control point Traffic with peer label allowed to write to the receiving socket? Outbound network traffic access checks Traffic is labeled based on originating socket No access control is applied to outbound traffic Forwarded network traffic No labeling or access control 25 July 2008

Labeled Networking Development 26 July 2008

Recent Labeled Networking Work NetLabel and Labeled IPsec consolidation Unified network peer label and access controls Easier SELinux policy development New network ingress and egress controls Access control for local and forwarded traffic Access control for physical network interfaces, subnetworks, and individual hosts New fallback peer labels for unlabeled traffic Peer labels when protocol support is missing Assign a single peer label to an entire network or a single host 27 July 2008

Planned Labeled Networking Work NetLabel traffic labeling based on sender's LSM domain and destination address Currently based only on sender's LSM domain Improved loopback peer labeling Extend NetLabel/CIPSO to support native LSM labels for loopback traffic Labeled IPsec is slow and problematic over loopback Standards body efforts IETF CALIPSO specification Multi-Level Security (MLS) labeling protocol for IPv6 Starting point for a generic peer labeling protocol IETF Labeled IPsec specification 28 July 2008

More Information NetLabel Website http://netlabel.sourceforge.net SELinux Wiki http://selinuxproject.org Smack Website http://www.schaufler-ca.com Presenter's Email paul.moore@hp.com 29 July 2008

30 July 2008